Help and Support
 

powered byLive Search

Error message when you try to run an updated version of an application that was created by using Visual Studio 2005 application and the ClickOnce feature: "System.IO.DirectoryNotFoundException"

Article ID:911792
Last Review:March 14, 2006
Revision:1.0

SYMPTOMS

When you try to run an application that was created by using Microsoft Visual Studio 2005 and the ClickOnce feature, you receive the following error message:
System.IO.DirectoryNotFoundException

The system cannot find the path specified. (Exception from HRESULT: 0x80070003)

at System.Deployment.Internal.Isolation.IActContext.SetApplicationRunningState(UInt32 dwFlags, UInt32 ulState, UInt32& ulDisposition)
at System.ActivationContext.SetApplicationState(ApplicationState s)
at System.AppDomain.SetupDomainForApplication(ActivationContext activationContext, String[] activationData)
at System.AppDomain.SetupApplicationHelper(Evidence providedSecurityInfo, Evidence creatorsSecurityInfo, ApplicationIdentity appIdentity, ActivationContext activationContext, String[] activationData)
at System.AppDomain.SetDomainManager(Evidence providedSecurityInfo, Evidence creatorsSecurityInfo, IntPtr parentSecurityDescriptor, Boolean publishAppDomain)
at System.AppDomain.SetDefaultDomainManager(String fullName, String[] manifestPaths, String[] activationData)
This issue occurs after you deploy an updated version of the application.

Back to the top

CAUSE

This issue can occur when the folder structure in the updated version of the application does not match the folder structure in the original version of the application. The data files from the first version of the application are not copied correctly into the folders that are created when you install the updated version of the application.

Back to the top

WORKAROUND

To work around this issue, change the folder structure in the updated version of the application to match the folder structure in the original version of the application. Then, re-deploy the application.

Note To avoid this problem, do not change the folder structure of a ClickOnce application.

Back to the top

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.

Back to the top


APPLIES TO
Microsoft Visual Studio 2005 Express Edition
Microsoft Visual Studio 2005 Professional Edition
Microsoft Visual Studio 2005 Standard Edition
Microsoft Visual Studio 2005 Team Foundation

Back to the top

Keywords: 
kbtshoot kbbug kbappdev kbprb KB911792

Back to the top

Article Translations

 

Other Support Options

  • Need More Help?
    Contact a Support professional by E-mail, Online or Phone.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.