2013-03-02 91 views
0

我在visual studio 2008中开发了我的应用程序,并将它部署在多台装有windows平台的计算机上。它的工作正常,但有一个mac书上有虚拟的Windows 7。我的clickonce appliaction在安装时第一次在这台机器上正常工作。但是当用户再次启动它时关闭它会导致以下错误。我用Google搜索了它,但找不到正确的答案。谁能帮忙?基于mac的windows平台上的Clickonce应用程序错误

PLATFORM VERSION INFO 
    Windows    : 6.1.7601.65536 (Win32NT) 
    Common Language Runtime  : 4.0.30319.296 
    System.Deployment.dll  : 4.0.30319.1 (RTMRel.030319-0100) 
    clr.dll    : 4.0.30319.296 (RTMGDR.030319-2900) 
    dfdll.dll   : 4.0.30319.1 (RTMRel.030319-0100) 

ERROR SUMMARY 
    Below is a summary of the errors, details of these errors are listed later in the log. 
    * Activation of \\.psf\Home\Desktop\MyApplication.appref-ms| resulted in exception. Following failure messages were detected: 
     + Invalid URI: The hostname could not be parsed. 

COMPONENT STORE TRANSACTION FAILURE SUMMARY 
    No transaction error was detected. 

WARNINGS 
    There were no warnings during this operation. 

OPERATION PROGRESS STATUS 
    No phase information is available. 

ERROR DETAILS 
    Following errors were detected during this operation. 
    * [01/03/2013 10:58:47] System.UriFormatException 
     - Invalid URI: The hostname could not be parsed. 
     - Source: System 
     - Stack trace: 
      at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind) 
      at System.Uri..ctor(String uriString) 
      at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state) 

COMPONENT STORE TRANSACTION DETAILS 
    No transaction information is available. 

回答

0

答案在错误:“\ .psf \ Home \ Desktop \ MyApplication.appref-ms |导致异常”中解释。它无法将其解析为URL或网络共享。

那么你如何安装你的应用程序?您是将它托管在网络服务器还是文件共享上,还是将它放在光盘上并将其复制到机器并进行安装?项目属性的“发布”窗口中的安装URL是什么?

相关问题