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


Post New Web Links

Publishing new version of XBAP causes System.Deployment.Application.DeploymentException

Posted By:      Posted Date: October 08, 2010    Points: 0   Category :WPF
 

Hello all, I'm currently developing a full trust XBAP. I'm hosting the published release version of the XBAP on my Windows Azure storage account. 

Recently, when I publish a new release version of the XBAP, some users receive a System.Deployment.Application.DeploymentException when trying to access the new version of the XBAP. The previous version of the XBAP worked on their computers no problem.

I did some research that suggest this exception may be caused if the version number of the XBAP is not incremented upon release. (I double checked, the release number IS automatically incremented). I also read I should use mage -cc to clear the cache before building and publishing. I tried both of these solutions to no avail.

If a user receives this error I can get the XBAP to run on their computer if I manually delete the appdata/Local/Apps/2.0/Data...  folder where the XBAP is cached. 

So my question is, how can publishing a new version of the XBAP (with a properly incremented version number) cause the XBAP to stop working on a computer where the previous version ran without error? What could cause the need to delete the appdata/Local/Apps/2.0/Data... folder where the XBAP is stored to fix the problem? And is there any way to ensure that this problem won't happen in the future?

Thanks for your help. The gory exception det


View Complete Post


More Related Resource Links

System.Deployment.Application.DeploymentDownloadException on PDB in XBAP

  

Hi.

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:

PLATFORM VERSION INFO
 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)

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

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

APPLICATION SUMMARY

.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

System.Deployment.Application.ApplicationDeployment.IsNetworkDeployed is returning false sometimes

  
Hi,I have a WPF browser application. I am showing the current application version information whenever client click on a help button.for that i am writing the code as follows.void CreateAboutPopUp(object sender, EventArgs e)        {                        string StringVersion = "Info not available";                       if (System.Deployment.Application.ApplicationDeployment.IsNetworkDeployed)            {                System.Version Version = System.Deployment.Application.ApplicationDeployment.CurrentDeployment.CurrentVersion;                if (Version != null)                    StringVersion = Version.ToString();             }                       string InfoString = "Version: " + StringVersion +  " ;            MessageBox.Show(App.Current.MainWindow, InfoString, "Passiar version information", MessageBoxButton.OK, MessageBoxImage.Information);                    }Works fine in Dev and Test servers and shows tthe vesrion information correctly.But in production server, the vesrion information is not showing up. its showing 'Version: Info not available '. Eventhough all manifest information is lates and available. and is also ClickOnce application.It is happening rarely.Please anybody can help me on this?Thanks in advance.Karuna.PS: My application is FullTrust and it is Checked as ClickOnce Application.

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

Setup:

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

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?

Deployment error system.data.sqlserverce version 3.5.1.0 glabal assembly cache

  

I have upgraded my development environment from Visual C# 2008 Express on Windows XP to Visual C# 2010 Express running on Windows 7 that uses SQLCE SP2.  I use a private deployment of the SQLCE 32-bit and 64-bit libaries and for the past year has wworked fine deploying to all systems.  Since upgrading I have been unable to produce a successful deployment.  I get an error almost immediately when my program attempts to update

system.data.sqlserverce version 3.5.1.0 glabal assembly cache

I have been attempting to do the deployment on a Windows 7 64 bit machine.  Does anybody have any ideas what I can do to eliminate this issue.  I have ensure that my build is targeting .NET 3.5

Dave


David Allen

Team System: Team Foundation Server Version Control

  

In this new column, Brian Randell begins his long look at how to extend and enhance Visual Studio Team System.

Brian A. Randell

MSDN Magazine January 2007


unable to find a version of the runtime to run this application

  
I have an application written using Visual studio 2005 (in VB.Net). When I run it on any machine I get "unable to find a version of the runtime to run this application” and this same application successfully some other PCs   And these following processes I have already done: Repair and reinstall .net framework2.0 I also rebuild my application setup. Scan my PC with antivirus and install new updated antivirus I have format my pc and reinstall dotnet framwork2.0 and my project. And also download .net framework cleanup tool install it.     So if any one has solution excluding the above then plz give me as soon as possible.      

IIS Crash with Faulting application w3wp.exe, faulting module mscorwks.dll, version 2.0.50727.42

  
The scenario is that, a .Net Webservice is making calls to C++ DLL (made from VC6 studio) This app works perfectly well for sometimes or over a period or for a high volume of hits and suddenly you see IIS crash along with service crash with the following error "Faulting application w3wp.exe, faulting module mscorwks.dll, version 2.0.50727.42" There is no pattern for this problem. The work around is to restart the IIS.    Can anybody tell me what could be the issue here?

'System OutOfMemory Exception' while using rdlc in Windows application

  
hi Everyone , I am Using Reporting Service (.rdlc) in my Windows application , i am getting Error System OutOfMemory Exception Like "an error occured during local report processing An Unexpected error occured in Report Processing Exception of type 'System OutOfMemory Exception'Was Thrown " what to do Please anyone help me ... Advance Thanks Anilmarnal

Problem with precompiling web application for deployment

  
Hi,I'm developing a web application consisting of several DLLs. I have no problem whatsoever compiling en building the application from within Visual Studio 2008 itself. But when I try to precompile the application (for deployment) from the VS command prompt, I get compilation errors.One of the errors is: "Could not load file or assembly 'wsCore' or one of its dependecies. The system cannot find the file specified".How can it be that VS2008 is perfectly capable of compiling the application from within the IDE and that same application can't be compiled from the command prompt?What am I missing here?

Visual Studio asp C#.NEt web application publishing tweet/status on Twitter/Facebook

  
Hi guysIf you could give me some guidelines It would mean a lot to me. what type of authentication I use, how to do  id from localhost, how to modify web.config file etc 

File System Deployment from DEVelopment to PRODuction

  
Looking for best practices for doing an SSIS File System deployment from a DEV environment to a PROD environment using either Team System or strictly file based.

Imports System.Data.SqlServerCE on Web application

  
Hi everybody, Can we import System.Data.SqlServerCe namesapce to web application? I tried to add The SqlServerCe namespace from AddReference dialog but it didnt show. And I have tried to install compact framework 3.5 but it still the same not show. My requirements are Login to the website and then create a database[.sdf] on the mobile device. Then connect to the .sdf file to retrieve info and display on my webpage. The window mobile device is running on Window CE 5.0 OS. And I'm using MS Visual Studio 2005.   HELP!!!!!!HELP!!!!!!     LEENO

"System.ArgumentException: Font '?' cannot be found" during application start up. Any ideas?

  
We have couple of users that get this error when they run our application.  I have never seen this problem before. Client says fonts are installed and Microsoft Sans Serif font is there as well. Also he states that user has Read permissions to %SytemRoot%Fonts folder. Any suggestions or ideas how to fix this problem will be appreciated. Thank you.  Here is the stack:   Exception: System.ArgumentException: Font '?' cannot be found.   at System.Drawing.FontFamily.GetGdipGenericSansSerif()    at System.Drawing.FontFamily.get_GenericSansSerif()    at System.Drawing.SystemFonts.get_DefaultFont()    at System.Windows.Forms.Control.get_DefaultFont()    at System.Windows.Forms.Control.get_Font()    at System.Windows.Forms.Control.AssignParent(Control value)    at System.Windows.Forms.Control.ControlCollection.Add(Control value)    at Bloomberg.SmartClient.Hosting.ErrorControl.InitializeComponent() in C:\Projects\Source\Client\ApplicationHosting\ErrorControl.cs:line 218    at Bloomberg.SmartClient.Hosting.ErrorControl..ctor(String appTitle, Boolean inPanel, Exception exception) in C:\Projects\Source\Client\ApplicationHosting\ErrorControl.cs:line 119    at Bloomberg.SmartClient.Hosting.ApplicationHost.OnDisplayError(ApplicationDescription appDescription, Excepti

"System.ArgumentException: Font '?' cannot be found" during application start up. Any ideas?

  
We have couple of users that get this error when they run our application.  I have never seen this problem before. Client says fonts are installed and Microsoft Sans Serif font is there as well. Also he states that user has Read permissions to %SytemRoot%Fonts folder. Any suggestions or ideas how to fix this problem will be appreciated. Thank you.  Here is the stack: Exception: System.ArgumentException: Font '?' cannot be found.   at System.Drawing.FontFamily.GetGdipGenericSansSerif()    at System.Drawing.FontFamily.get_GenericSansSerif()    at System.Drawing.SystemFonts.get_DefaultFont()    at System.Windows.Forms.Control.get_DefaultFont()    at System.Windows.Forms.Control.get_Font()    at System.Windows.Forms.Control.AssignParent(Control value)    at System.Windows.Forms.Control.ControlCollection.Add(Control value)    at Bloomberg.SmartClient.Hosting.ErrorControl.InitializeComponent() in C:\Projects\Source\Client\ApplicationHosting\ErrorControl.cs:line 218    at Bloomberg.SmartClient.Hosting.ErrorControl..ctor(String appTitle, Boolean inPanel, Exception exception) in C:\Projects\Source\Client\ApplicationHosting\ErrorControl.cs:line 119    at Bloomberg.SmartClient.Hosting.ApplicationHost.OnDisplayError(ApplicationDescription appDescription, Exception err

Reporting queued error: Faulting application w3wp.exe, version 6.03790.3959, Faulting module kernel3

  
Reporting queued error: faulting application w3wp.exe version 6.0.3790.3959, faulting module kernel32.dll, version 5.2.3790.3959,fault address 0x0000bee7 Please some one through some inputs on it.. how could it be fixed? Thanks and Regards, altaf_css  

Import Error: Could not process the file Documents/Application Deployment.mht as a Single File Web P

  
Hi there everyone, Version: Windows Sharepoint Services 3.0 with Cumulative Update June 29, 2010 applied. I am having issues importing an exported site into a different domain. I've overcome most of the issues and actually got most of the site to import, however, the import process get's stuck on import a Single File Web Page document from a document library. I believe the original cause of this error is http://support.microsoft.com/kb/980079 The issue I face now is, I already have a large number of .mht files in my document library which I do need to import into the test environment (or that I might need to restore in a DR scenario). Does anyone have any information on either: forcing the import commmand to "on error resume next" (ie. not stop processing when it encounters an error) fixing the already corrupt .mht files in the database easily The error text from the import command is: Error: Could not process the file Documents/Application Deployment.mht as a Single File Web Page document. at Microsoft.SharePoint.Library.SPRequest.CreateOrUpdateFileAndItem(String bstrUrl, String bstrWebRelativeUrl, Guid& docId, Object varDoc, Int32 docLength, Int32 exists, String bstrCreatedBy, String bstrModifiedBy, Int32 iCreatedByID, Int32 iModifiedByID, Int32 iVersion, Object varTimeCreated, Object varTimeLastModified, Object varProperties, String checkInComment, Int3
Categories: 
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