.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

IIdentity within Xbap

Posted By:      Posted Date: September 07, 2010    Points: 0   Category :WPF
I am trying to get a custom IIdentity to run under xbap but get the following error: System.Runtime.Serialization.SerializationException was unhandled Message: Type is not resolved for member 'xxx.AppIdentity,xxx.Data.DomainModel, Version=, Culture=neutral, PublicKeyToken=null'. [   Serializable] public class AppIdentity : IIdentity {...}

View Complete Post

More Related Resource Links

XBAP Security


We have a small XBAP file upload app that we are having trouble deploying. We were getting security errors when we were pushing this application that we don't get when running in our development environments on our machines. We gave the XBAP app full permissions and still got errors. Then we created a personal certificate and were able to get this to work. But that means we have to load a client side certificate for each and every machine that wants to run this which is ridiculous. Does anyone have a solution for this?

XBAP causing IE crash?

Our application is a C# XBAP.  Near as I can tell, the problem we are running into seems to be within IE rather than our code, so I tried looking for an appropriate IE forum, but the best I could find was "Internet Explorer Extension Development" and I got no response there, so trying here instead. Our application consists of a main IE instance (which contains the XBAP).  From the C# code in this XBAP, we obtain a reference to the IHtmlWindow2 object.  From that, we periodically call .open(...) to launch various other dialogs of interest to the user.  These dialogs typically contain a fair amount of Javascript as well. Our users began reporting random crashes, some with IE7, some with IE8.  I have been able to recreate a similar crash on my development system (Windows 7, IE8, Visual Studio 2010). Upon crashing, no information is sent to Event Viewer, and nothing is caught by our C# Exception handling either - IE simply exits.  I had to attach a native debugger (rather than managed) to get anything on this.  The debugger gave me the following error: Unhandled exception at 0x61755473 (mshtml.dll) in iexplore.exe: 0xC0000005: Access violation reading location 0xfeeefeee.   The error is apparently occuring in a native thread with the following callstack:      mshtml.dll!CRunPtrBase::SetRun()  + 0x3a b

WPF Security + Certificate HELP - xbap

Hello everyone,   I got a problem with my current XBAP application. Everyone had no problem running my application until on person had the following error: <!-- [if gte mso 10]> <mce:style> * An exception occurred while determining trust. Following failure messages were detected:                         + User has refused to grant required permissions to the application.   Then I researched and found out I needed to set up a certificate and have them put it IE. However now the people that once had no problem need to install the certificate.   I was wondering how to revert the project so EVERYONE can run my application WithOut a certificate.   *This application requires full trust.   Can anyone please help me?  

XBAP loading UI

we've got an XBAP hosted in an IFrame.   our customers are complaining about the white background when its loading.   i've tried setting allowTransparency="true" on the IFrame and setting the background on the <body> as well as the <iFrame> ... but it still renders white.   is there anyway to get a background color / image to render while the XBAP is loading?   Thanks, casey

UserPrincipal, IIdentity and WCF authorization

We are developing a client-service WPF application which consume various WCF services.For authentications of the WPF desktop app, we are trying to use System.DirectoryServices.AccountManagement against the AD DS in Server2008.The overall intended security flow:1. User enter user name and password2. Application authenticate against AD DS in Server2008 using System.DirectoryServices.AccountManagement, and obtain UserPricipal.Now, should we set the UserPrincipal using AppDomain.Current.SetThreadPrincipal? So that the WCF client can pick the Principal up and use it for transport and messaging clientCredential?My questions are:1. UserPrincipal is not System.Security.Principal.IPrincipal, so I can't set as current AppDomain ThreadPrincipal. Is this correct?2. Does System.DirectoryServices offers API to acquire Kerberos token that I can pass to WCF client? Tried looking at System.DirectoryServices.ActiveDirectory but can't seem to find any.3. How should the WPF disable/hide certain UI controls/views based on user's role? Should we use AzMan?3. How should the WCF authorized based on user role? AzMan?Thank you in advance!Best regards,KhoonSeang

HTTP POST in WPF/XBAP with partial trust

Hi, Is it possible to do a HTTP POST in XAML browser app with partial trust? I've tried to search for a solution, but I can't find any. I want to send a HTTP POST request to a website, within the same domain, that return a downloadable report (in a new window, _blank). I've earlier used hyperlink with GET parameters, but I have to use POST due to large amount parameter data. Is this possible? Edit: I'm using .Net Framework 3.5

.XBAP site cannot be displayed - Faulting application PresentationHost.exe, version 3.0.6920.1427

Hi all Firstly let me start by saying I am not a developer/.net/xbap or any other type of programmer so please excuse my ignorance to anything related. I have an application installed on a w2k3 std 32bit SP2 server with terminal services and Citrix Presentation Server 4.5. This applicaiton accesses the vendors website over the internet through a .xbap page. When accessing this .xbap approximately half the users get "Internet Explorer Cannot Display This Webpage" while the other half have no issue at all. The version of IE is v7.0.5730.13. When IE returns "Internet Explorer Cannot Display This Webpage" the following error is logged in the application log: Event Type: Error Event Source: Application Error Event Category: (100) Event ID: 1000 Date:  9/10/2010 Time:  11:28:27 AM User:  N/A Computer: <server> Description: Faulting application PresentationHost.exe, version 3.0.6920.1427, faulting module kernel32.dll, version 5.2.3790.3959, fault address 0x0000bee7. For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. Data: 0000: 41 70 70 6c 69 63 61 74   Applicat 0008: 69 6f 6e 20 46 61 69 6c   ion Fail 0010: 75 72 65 20 20 50 72 65   ure  Pre 0018: 73 65 6e 74 61 74 69 6f   sentatio 0020: 6e 48 6f 73 74 2e 65

Deploy XBAP application with WCF Service Reference into multiple environments

Hi, we have a multiple environment setup (local, Development servers, QA servers, prod servers, etc.) and we are building an XBAP application that uses WCF Services to connect to databases.  We code and unit test everything locally and then deploy to our Development servers for more thorough unit testing.  The issue that we are having is that we don't see how to update the deployed XBAP application to use the Development server deployed WCF Service.  The only way we've been able to do this is by having to change the reference on my local machine, complie, and redeploy the XBAP.Question:  How do we configure a deployed XBAP's Service Reference to point to the same service on a different server than what it was originally compiled/deployed with?  (Like in some configuration file...NOTE: but we also don't see a config file after deploying the XBAP.)  We don't want to have to update the Service Reference for QA, Prod, Training, Stage, etc. on our local machines, compile and redeploy every time we need to migrate the application to a new environment.Thanks!

Update XBAp application

I just changed my app.config file in my clickonce internet only deployment. Then i tried accesin my weblink, so it obviosuly gave me a application deployment error, then i went to mageUI.exe and opened the application.manifest and saved with the signature certificate. then opened the xbap and saved with the signature file. And also referenced the application manifest in the xbap. Below is the error when the try to access my xbap from the IE 7 Note : one thing to note is i am signing with a different certification file than the original because i see the public key token being different. UNKNOW ERROR : the applicatin cannot be deployed because of an unknown error. Contact the application publisher for more information. To use an InpacehostingManager object created with launchINprocess parameter set to true, the application must be browser- hosted or custom-hosted. When i click on the OpenError log button, i see the following but has no error or exception in the file PLATFORM VERSION INFO  Windows    : 6.1.7600.0 (Win32NT)  Common Language Runtime  : 2.0.50727.4952  System.Deployment.dll   : 2.0.50727.4927 (NetFXspW7.050727-4900)  mscorwks.dll    : 2.0.50727.4952 (win7RTMGDR.050727-4900)  dfshim.dll    : 4.0.31106.0 (Main.031106-0000) SOURCES  Deployment url   : somethin

How to pass parameters to a xbap when xbap is deployed to a file system with file://

it seems that it is easy to do if xbap is deployed using http. But it seems no possible when xbap is launch with file://. 

Performance of XBAP in .NET 4 degrades after a long idle time.


A few of my clients are using XBAP application running over .net 4 client profile in IE8. The operating system they use is windows XP (service pack 2 or 3) on all their machines. We've had no issues during install of the .net framework or our XBAP application but many of them are complaining that after keeping the xbap open for a long time their computer begins to slow down considerably. This specially happens when program is left open without using it for some time. On my own development system which is a windows 7 machine with full .net framework installed i haven't experienced such issue.

I checked for resource usage of the application but there is no significant increase in memory usage. The CPU consumption however becomes quite high, which I suspect is the reason for degradation of performance during these episodes. If this was a single case i would have ignored it for some glitch on their system but this is happening on many machines and I suspect this has got something to do with .net framework on xp machines.

I don't see any reason for why this should be happening. Is there any documented bug, report related to this ? Are there any compatibility issues of .net 4 with other common programs running in xp?  Do you have any idea on why this could be happening ? What kind of data should i provide you s

Publishing xbap with partial trust, using WCF service for data backend, getting System.Net.WebPermis


It looks like these are very picky when it comes to how and where everything is setup. I've only got this to work when launching from visual studio. If I publish, I keep getting the System.Net.WebPermission exception. I am using .Net 4.0


IIS 7.5 (on my local machine)
Default Website
  --- QuoteTest (Application, ASP.net hosted website)
             ---Xbap(Was virtual directory, turned it into an application)

I'm thinking it's some magical order of settings in the publish tab that I need to do right.

  • Should I use localhost or my ip in the publishing location?
  • For the WCF service, is publishing to a File System Acceptable?
  • Any other security settings that I should set/be aware of?

Remote Debug an XBAP application in VS 2010



I have an XBAP application that I created in VS 2010.  On my local machine I browse to the XBAP on the hosting server, via the folder structure [UNC] and run it.  The application does load and start.  I then go to "Attach to Process" in VS 2010 and browse to the server [which has msvsmon.exe running], but I cannot see the process to attach to.  I can debug ASP.NET applications remotely with no issues.  What am I doing wrong?

Thanks in advance

XAML to XBAP Conversion


I have already created a project using WPF Application and it is running smoothly but now i am requested to change it into Browser based project. For this i consulted the web and developed the WCF service for the data communication. Currently my WPF Project is running under WCF data communication using LINQ. But the real thing is, i am not able to convert it into Web Based project. I tried to follow many tutorials but i could not convert my XAML based project to XBAP based project. I am using Visual Studio 10 Professional. Please can anyone guide me to solve this issue as soon as possible.

System.Deployment.Application.DeploymentDownloadException on PDB in XBAP



I am trying to include the pdb for an xbap application in VS 2010 and I am getting download errors when running my xbap.  I check the directory where the files are and the pdb file exists there.  Here is the error output:

 Windows    : 6.1.7600.0 (Win32NT)
 Common Language Runtime  : 4.0.30319.1
 System.Deployment.dll   : 4.0.30319.1 (RTMRel.030319-0100)
 clr.dll    : 4.0.30319.1 (RTMRel.030319-0100)
 dfdll.dll    : 4.0.30319.1 (RTMRel.030319-0100)
 dfshim.dll    : 4.0.31106.0 (Main.031106-0000)

 Deployment url   : http://localhost:10000/EEAdmin.xbap
 Application url   : http://localhost:10000/Application%20Files/EEAdmin_1_0_0_0/EEAdmin.exe.manifest

 Deployment Identity  : EEAdmin.xbap, Version=, Culture=neutral, PublicKeyToken=c79b6a703d3f35af, processorArchitecture=msil
 Application Identity  : EEAdmin.exe, Version=, Culture=neutral, PublicKeyToken=c79b6a703d3f35af, processorArchitecture=msil, type=win32


Change WPF XBAP cache location



Is it possible to change the location of XBAP cache.  Automaticaly a XBAP application download to C:\Documents and Settings\user1\Local Settings\Apps\2.0 for user1,  I need to download the app to another path.  How can I change the XBAP cache location?

My problem is that XBAP app is called on a server and the user profile is not in this server, Citrix configuration redirect it to a file server.  I think that IE cannot find the app PresentationHost or something like that. So If I could change the XBAP download location it would solve the problem. Is it possible?



How to Hide browser address bar in XBAP applications




How to Hide browser address bar in XBAP applications?




Many Thanks Deepak
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend