gpt4 book ai didi

c# - clickonce安装下载失败

转载 作者:可可西里 更新时间:2023-11-01 07:47:07 24 4
gpt4 key购买 nike

我已经对我的应用程序进行了 Clickonce 部署,将安装文件夹和发布文件夹设置为网络共享,然后它非常适合我的开发机器然后,当我在客户端计算机上打开网络共享并尝试使用该安装文件安装应用程序时,我收到如下消息

enter image description here

详细信息我收到以下消息

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 时出现的问题

最佳答案

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

Here you can read how to set proper 'Publish Location' and 'Installation URL' values

关于c# - clickonce安装下载失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19245020/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com