2013-03-02 90 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是什麼?

相關問題