2013-10-08 196 views
14

我已經做了一個Clickonce deployemnt我的應用程序設置安裝文件夾和發佈文件夾相同,這是一個網絡共享,然後它對我的開發機器完美工作 然後,當我去客戶端機器上打開網絡共享,我嘗試使用該安裝文件,我得到像下面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. 
THT消息安裝應用程序0

任何人都可以提出什麼問題因爲Iam第一次使用clickonce

+0

另請參閱http://stackoverflow.com/questions/7082410/clickonce-setup-exe-fails-but-the-application-file-works-fine-when-using-a-wind –

回答

2

我有同樣的問題,這是快把我逼瘋了。我知道我在網絡的共享文件夾上設置了適當的權限。我甚至無法通過網絡共享從我自己的機器安裝我的應用程序。經過漫長而艱難的尋找答案之後,我自己想出了答案。

上的屬性,我只用填寫「發佈文件夾位置」的發佈選項卡:

\服務器名\共享\應用程序文件夾

我離開了「安裝文件夾URL」部分留空。

不知何故,「應用程序更新」部分中的某個字段(通過單擊「發佈」選項卡上的「更新」按鈕)填寫的值與我的網絡共享值不同。不知道是我自己做了這個還是默認設置了。我清除了「更新位置(如果不同於發佈位置)」字段,併爲我解決了這個問題。這裏是我改變場地的屏幕截圖:

我會張貼造成麻煩的形式的屏幕截圖,但由於某種原因,我需要10個聲望點才能張貼圖片。

+2

在我清除了該字段後我必須檢查「應用程序應檢查更新」,然後取消選中它以考慮它。 – Korangar

1

我解決了我的問題,像你的問題。

我不知道我的應用程序(下面的「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/

我好對不起,我的母語不是英語。

1

我有同樣的錯誤,但解決了它不同的方式。不知何故,我偶然在選項中取消選中了一些東西。

在發佈選項卡上,選擇「選項」。在部署下,確保選中「使用.deploy文件擴展名」。一旦我檢查並重新發布,錯誤就消失了。