我一直在搜索SO和谷歌,但空手而归。
这是我的问题: 我最近在VS2013中设置了Clickonce应用程序。 (C#WPF,空白解决方案)。
当我最初尝试部署应用程序时,它可以很好地下载,但不会安装没有问题。然后我开始排除先决条件中的文件,这导致了这个堆栈跟踪:
PLATFORM VERSION INFO
Windows : 10.0.10586.0 (Win32NT)
Common Language Runtime : 4.0.30319.42000
System.Deployment.dll : 4.6.1078.0 built by: NETFXREL3STAGE
clr.dll : 4.6.1080.0 built by: NETFXREL3STAGE
dfdll.dll : 4.6.1038.0 built by: NETFXREL2
dfshim.dll : 10.0.10586.0 (th2_release.151029-1700)
SOURCES
Deployment url : http://jabero05/WPFTest/Co_test.application
Server : Microsoft-IIS/10.0
X-Powered-By : ASP.NET
Deployment Provider url : http://jabero05/Co_test/Co_test.application
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of http://jabero05/WPFTest/Co_test.application resulted in exception. Following failure messages were detected:
+ Downloading http://jabero05/Co_test/Co_test.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
* [03/06/2016 09:58:56] : Activation of http://jabero05/WPFTest/Co_test.application has started.
ERROR DETAILS
Following errors were detected during this operation.
* [03/06/2016 09:58:56] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
- Downloading http://jabero05/Co_test/Co_test.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.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.
我收到错误后试图通过重新添加先决条件来追溯自己,但无济于事 - 我一直收到上述错误。
正如您所看到的那样,在我的本地主机上使用IIS时会抛出404错误。
有谁能告诉我可能会缺少什么?
编辑: