2011-01-13 1 views
1

ここで私がやっていることがあります。私はシンプルで空白のWPFアプリケーションをVisual Studio 2010の下に作成しました。 ClickOnceの展開を有効にし、署名、セキュリティなどを設定し、ローカルIISインスタンスに公開します。私はブラウザを起動し、publish.htmページをヒットし、正しくインストールされます。「Check for Updates」が選択されている場合、ClickOnceアプリケーションが失敗します。

次に、すべてを吹き飛ばし、プロジェクトを再作成し、ClickOnceを有効にして署名するなどですが、今度は[プロパティ] - > [更新]公開ページ。 「アプリケーションはアップデートを確認する」のチェックボックスをクリックし、「アプリケーションが起動する前に」のラジオボタンを選択します。 [OK]をクリックしてローカルのIISに再度公開し、publish.htmページを表示します。 「インストール」をクリックすると、「アプリケーションをダウンロードできません。アプリケーションに必要なファイルがありません。アプリケーションベンダーに問い合わせてください。 '

唯一の参考資料は、application.manifestファイルに記載されているファイルが見つからないことですが、それが何であるかはわかりません。もし誰かが私にこの方向性を向けることさえできたら、それを感謝します。

これは間違いなく404 Not Foundエラーですが、どのファイルが参照されているのかわかりません。ここに「詳細」ページがあります。

PLATFORM VERSION INFO 
    Windows    : 6.1.7600.0 (Win32NT) 
    Common Language Runtime  : 4.0.30319.1 
    System.Deployment.dll  : 4.0.30319.1 (RTMRel.030319-0100) 
    clr.dll    : 4.0.30319.1 (RTMRel.030319-0100) 
    dfdll.dll   : 4.0.30319.1 (RTMRel.030319-0100) 
    dfshim.dll   : 4.0.31106.0 (Main.031106-0000) 

SOURCES 
    Deployment url   : http://localhost/WpfApplication1/WpfApplication1.application 
         Server  : Microsoft-IIS/7.5 
         X-Powered-By : ASP.NET 
    Deployment Provider url  : http://jerrydev/WpfApplication1/WpfApplication1.application 

ERROR SUMMARY 
    Below is a summary of the errors, details of these errors are listed later in the log. 
    * Activation of http://localhost/WpfApplication1/WpfApplication1.application resulted in exception. Following failure messages were detected: 
     + Downloading http://jerrydev/WpfApplication1/WpfApplication1.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 
    * [1/13/2011 11:05:50 AM] : Activation of http://localhost/WpfApplication1/WpfApplication1.application has started. 

ERROR DETAILS 
    Following errors were detected during this operation. 
    * [1/13/2011 11:05:50 AM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype) 
     - Downloading http://jerrydev/WpfApplication1/WpfApplication1.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. 

答えて

0

あなたはlocalhostに公開し、同じマシンにインストールしていますか?私はそれがURLにlocalhostを持っているので頼んでいる。更新ダイアログでUpdateURLを記入したか、または空白のままにしましたか?インストールURLと同じ場所にする必要がある場合は、空白のままにします。

インストールURLはどのように見えますか?

0

私はすべてのURL(publish、install、update)でlocalhostを使用していました。私が見つけたのは、発行プロセスが 'localhost'の場合のマニフェストでマシン名を使用するということです。私の問題は実際には私のマシン名を 'localhost'にマップするためにHosts.etcファイルを更新していないことが原因です。これを修正することで、私のClickonceアプリケーションをインストールするだけでなく、一度インストールした後にアップデートすることができるようになりました。

関連する問題