none
Exception from HRESULT: 0x80070002

    Question

  • I am new here and hope this is the correct forum for my post.  There are so many different forum that it is difficult to distinguish which is correct for my particular question.

    I keep getting this error andd would like to know how to resolve it:

    PLATFORM VERSION INFO
    Windows : 6.1.7601.65536 (Win32NT)
    Common Language
    Runtime : 4.0.30319.261
    System.Deployment.dll : 4.0.30319.1
    (RTMRel.030319-0100)
    clr.dll : 4.0.30319.261
    (RTMGDR.030319-2600)
    dfdll.dll : 4.0.30319.1
    (RTMRel.030319-0100)
    dfshim.dll : 4.0.31106.0 (Main.031106-0000)

    ERROR DETAILS
    Following errors were detected during this operation.
    *
    [3/9/2012 5:27:01 AM] System.IO.FileNotFoundException
    - The system cannot
    find the file specified. (Exception from HRESULT: 0x80070002)
    - Source:
    System.Deployment
    - Stack trace:
    at
    System.Deployment.Internal.Isolation.IsolationInterop.GetUserStore(UInt32 Flags,
    IntPtr hToken, Guid& riid)
    at System.Deployment.Application.ComponentStore..ctor(ComponentStoreType storeType, SubscriptionStore subStore)
    at
    System.Deployment.Application.SubscriptionStore..ctor(String deployPath, String
    tempPath, ComponentStoreType storeType)
    at
    System.Deployment.Application.SubscriptionStore.get_CurrentUser()
    at
    System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri
    activationUri, Boolean isShortcut, String textualSubId, String
    deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String&
    errorPageUrl)
    at
    System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object
    state)

    Friday, March 09, 2012 11:09 AM

Answers

All replies

  • I must admit that I am a little confused... What kind of application is that? And what are you trying to do when you get this error? The underlying error message is a "File Not Found" message, which could have many reasons. And I am still missing the connection to SQL Server as well...

    Please be so kind to give us some more insight, so we can help (or at least redirect you to the appropriate group.)

    Friday, March 09, 2012 8:20 PM
  • Hi Purrington,

    Referring to FileNotFoundException, it is thrown when an attempt to access a file that does not exist on disk fails. For more information, please check: http://msdn.microsoft.com/en-us/library/system.io.filenotfoundexception.aspx.

    Also check that the target .NET Framework has been installed on this machine.

    Please refer to a similar thread: http://social.msdn.microsoft.com/Forums/en-US/vssetup/thread/f63ed0da-e5e3-44c9-9310-efe9a35c61d7/.

    In addition, please post the thread in ClickOnce and Setup & Deployment Projects forum, you will get better and quicker support.

    Thanks,
    Maggie
     


    Please remember to mark the replies as answers if they help and unmark them if they provide no help. This can be beneficial to other community members reading the thread.


    Tuesday, March 27, 2012 9:50 AM
    Moderator
  • that was bad idea to mark prev post as answer, it doesnt provide solution, only possibility to find same problem somewhere. for example i receive this exception while installing cortana on my wp8.1 emulator, but i'm not sad, may be it cannot work in vm. who knows..


    if (Thread.Was == HelpFul) Mark.As(HelpFul); else if (Thread.Was == Answered) Mark.As(Answered); else Provide(More.Details);


    Monday, June 02, 2014 4:23 AM