尝试安装ClickOnce应用程序时出现以下异常:

Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of C:\Users\user\Downloads\appname.application resulted in exception. Following failure messages were detected:
    + Downloading file://192.168.2.9/appdir/appname.application did not succeed.
    + The network name cannot be found.

    + The network name cannot be found.

    + The network name cannot be found.


我还没弄清楚。我尝试在网上四处张望,似乎没有任何资源可以解决这个问题。有人知道如何解决这个问题吗?

最佳答案

原来这是发布设置中安装URL的问题。我没有使用网络路径,而是使用共享路径。实际位置是在IIS中设置的,因此,当然在共享位置找不到该文件。

将字段“安装文件夹URL”从以下位置更改:

\\\server-name\path



http://server-name/path

解决了问题。愚蠢的错误。

10-08 09:45
查看更多