VS2013 ClickOnce安装 - 无法启动应用程序

时间:2014-09-26 15:13:26

标签: visual-studio-2013 .net-3.5 windows-7-x64

我为我公司的各种小任务开发了小型.net应用程序。我使用Visual Studio 2013在Windows 7 64位环境中工作,并且已经开发了至少十几个没有任何问题。我有一个新的在VS中的调试和发布模式下都能正常工作。发布并尝试运行ClickOnce后,出现错误:“无法启动应用程序。请联系应用程序供应商。”然后它退出安装。这很奇怪,因为我为我的旧应用程序运行了所有其他ClickOnce文件,并且它们正在做同样的事情。直到昨天我才一直遇到问题。

我经常发布到我们的服务器,但这次我在C:驱动器上测试了它,以确保它不是网络或共享问题。也尝试以管理员身份运行。

我有一台运行安装的Windows XP虚拟机。所以,我不确定到底发生了什么。有人有任何想法吗?

以下是错误的详细信息:

PLATFORM VERSION INFO
    Windows             : 6.1.7601.65536 (Win32NT)
    Common Language Runtime     : 4.0.30319.18444
    System.Deployment.dll       : 4.0.30319.18408 built by: FX451RTMGREL
    clr.dll             : 4.0.30319.18444 built by: FX451RTMGDR
    dfdll.dll           : 4.0.30319.18408 built by: FX451RTMGREL
    dfshim.dll          : 4.0.41209.0 (Main.041209-0000)

SOURCES
    Deployment url          : file:///C:/Temp/Medline%20Invoice%20Split.application

ERROR SUMMARY
    Below is a summary of the errors, details of these errors are listed later in the log.
    * Activation of C:\Temp\Medline Invoice Split.application resulted in exception. Following failure messages were detected:
        + The system cannot find the file specified. (Exception from HRESULT: 0x80070002)

COMPONENT STORE TRANSACTION FAILURE SUMMARY
    No transaction error was detected.

WARNINGS
    There were no warnings during this operation.

OPERATION PROGRESS STATUS
    * [9/26/2014 9:40:03 AM] : Activation of C:\Temp\Medline Invoice Split.application has started.

ERROR DETAILS
    Following errors were detected during this operation.
    * [9/26/2014 9:40:03 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)

COMPONENT STORE TRANSACTION DETAILS
    No transaction information is available.

0 个答案:

没有答案
相关问题