0

我在 Visual Studio 2008 中开发了我的应用程序,并将其部署在许多带有 Windows paltform 的计算机上。它工作正常,但有一本 mac book 上面有虚拟 Windows 7。我的 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.
4

1 回答 1

0

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

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

于 2013-03-04T06:48:50.700 回答