15

我在我的应用程序中做了一个 Clickonce deployemnt 将安装文件夹和发布文件夹设置为相同的网络共享,然后它非常适合我的开发机器然后当我去客户端机器上打开网络共享并尝试安装使用该设置文件的应用程序我收到如下消息

在此处输入图像描述

详细信息我收到以下消息

LATFORM VERSION INFO
Windows             : 6.1.7601.65536 (Win32NT)
Common Language Runtime     : 4.0.30319.586
System.Deployment.dll       : 4.0.30319.1 (RTMRel.030319-0100)
clr.dll             : 4.0.30319.586 (RTMLDR.030319-5800)
dfdll.dll           : 4.0.30319.1 (RTMRel.030319-0100)
dfshim.dll          : 4.0.31106.0 (Main.031106-0000)

SOURCES
    Deployment url          : file://it-dept/Project/mycutorderlast/CutorderFresh.application
    Deployment Provider url     : http://it-dept/CutorderFresh/CutorderFresh.application

ERROR SUMMARY
    Below is a summary of the errors, details of these errors are listed later in the log.
    * Activation of \\it-dept\Project\mycutorderlast\CutorderFresh.application resulted in exception. Following failure messages were detected:
        + Downloading http://it-dept/CutorderFresh/CutorderFresh.application did not succeed.
        + The remote server returned an error: (404) Not Found.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
    No transaction error was detected.

WARNINGS
    There were no warnings during this operation.

OPERATION PROGRESS STATUS
    * [08/10/2013 14:03:25] : Activation of \\it-dept\Project\mycutorderlast\CutorderFresh.application has started.

ERROR DETAILS
    Following errors were detected during this operation.
    * [08/10/2013 14:03:30] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
        - Downloading http://it-dept/CutorderFresh/CutorderFresh.application did not succeed.
        - Source: System.Deployment
        - Stack trace:
            at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
            at System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
            at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)
            at System.Deployment.Application.DownloadManager.DownloadManifestAsRawFile(Uri& sourceUri, String targetPath, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
            at System.Deployment.Application.DownloadManager.DownloadManifest(Uri& sourceUri, String targetPath, IDownloadNotification notification, DownloadOptions options, ManifestType manifestType, ServerInformation& serverInformation)
            at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestDirect(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
            at System.Deployment.Application.DownloadManager.FollowDeploymentProviderUri(SubscriptionStore subStore, AssemblyManifest& deployment, Uri& sourceUri, TempFile& tempFile, IDownloadNotification notification, DownloadOptions options)
            at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options)
            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)
        --- Inner Exception ---
        System.Net.WebException
        - The remote server returned an error: (404) Not Found.
        - Source: System
        - Stack trace:
            at System.Net.HttpWebRequest.GetResponse()
            at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)

COMPONENT STORE TRANSACTION DETAILS
    No transaction information is available.

任何人都可以建议我第一次使用 clickonce 的问题是什么

4

4 回答 4

5

在属性的发布选项卡上检查“发布位置”或“安装 URL”的值。根据您当前的设置,您应该已经发布了可通过此路径访问的文件:http://it-dept/CutorderFresh/CutorderFresh.application并且看起来它们无法通过此路径获得。

在这里您可以阅读如何设置正确的“发布位置”和“安装 URL”值

于 2013-10-17T21:59:44.030 回答
2

我有同样的问题,它让我发疯。我知道我在网络的共享文件夹上设置了适当的权限。我什至无法通过网络共享从我自己的机器上安装我的应用程序。经过漫长而艰苦的寻找答案后,我自己弄清楚了。

在属性的发布选项卡上,我只填写了“发布文件夹位置”:

\servername\share\Application 文件夹

我将“安装文件夹 URL”部分留空。

不知何故,“应用程序更新”部分中的一个字段(通过单击“发布”选项卡上的“更新”按钮)填充了与我的网络共享不同的值。不知道是我自己做的还是默认设置的。我清除了“更新位置(如果与发布位置不同)”字段,并为我解决了这个问题。这是我更改字段的屏幕截图:

我会发布一张给我带来麻烦的表格的屏幕截图,但出于某种原因,我需要 10 个声望点才能发布一张图片。

于 2014-10-15T15:33:10.030 回答
0

我像你一样解决了我的问题。

我不知道我的应用程序(在“formtest”应用程序下方)的“发布文件夹位置”与“安装文件夹 URL”不同。

其实之前的WEB服务器的两个文件夹点击一次部署并没有什么不同。所以,更改WEB服务器后我很困惑。

  1. 发布文件夹位置:\12.39.526.272\root\formtest\

  2. 安装文件夹网址: http: //12.39.526.272 :8080/formtest/

  3. 应用程序更新部分“更新位置(如果与发布位置不同)”字段:http: //12.39.526.272 :8080/formtest/

很抱歉,我的母语不是英语。

于 2016-02-10T01:11:31.723 回答
0

我有同样的错误,但以不同的方式解决了它。不知何故,我不小心取消了选项中的某些内容。

在发布选项卡上,选择“选项”。在部署下,确保选中“使用 .deploy 文件扩展名”。一旦我检查并重新发布,错误就消失了。

于 2018-01-24T19:05:01.280 回答