我已将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.
任何人都可以提出问题是什么问题因为Iam第一次使用clickonce
答案 0 :(得分:6)
检查属性的“发布”标签上的“发布位置”或“安装网址”的值。根据您当前的设置,您应该已发布可通过此路径访问的文件:http://it-dept/CutorderFresh/CutorderFresh.application
,看起来这条路径无法使用这些文件。
Here you can read how to set proper 'Publish Location' and 'Installation URL' values
答案 1 :(得分:2)
我有同样的问题,这让我很生气。我知道我在网络共享文件夹上设置了适当的权限。我甚至无法通过网络共享从我自己的机器上安装我的应用程序。经过长时间的努力寻找答案,我自己想出来了。
在属性的发布标签上,我只填写了"发布文件夹位置"用:
\ servername \ share \ Application Folder
我离开了#34;安装文件夹网址"部分空白。
以某种方式在"应用程序更新"部分(通过单击"更新"发布选项卡上的按钮)填入的值不同于我的网络共享。不确定我是自己做的还是默认设置的。我清除了"更新位置(如果与发布位置不同)"领域,并为我解决了这个问题。这是我改变字段的屏幕截图:
我会发布导致我麻烦的表格的屏幕截图但由于某种原因我需要10个声望点才能发布图片。
答案 2 :(得分:1)
我像你一样解决了我的问题。
我不知道我的应用程序的“发布文件夹位置”(在“formtest”应用程序下面)与“安装文件夹URL”不同。
实际上,用于点击一次部署的前WEB服务器的两个文件夹没有不同。所以,在WEB服务器更改后我感到困惑。
发布文件夹位置:\ 12.39.526.272 \ root \ formtest \
“应用程序更新”部分“更新位置(如果与发布位置不同)”字段:http://12.39.526.272:8080/formtest/
我很抱歉我的母语不是英语。
答案 3 :(得分:1)
我有同样的错误,但以不同的方式解决了它。不知怎的,我在选项中意外取消选中了一些东西。
在“发布”标签上,选择“"选项"”。在“部署”下,确保"使用.deploy文件扩展名"检查。一旦我检查并重新发布,错误就消失了。