2016-12-24 5 views
0

私は自分のサーバーで使用しているC#.netアプリケーションを持っていますが、アプリケーションを自分のftpに更新したいので、通常使用(ftpからのアップデートも可能)。wpfアプリケーションをWebからダウンロードする

私は何をしたのですか?自分のアプリケーションを私のftp ftp://ftp.siteaddress.extension.rs/public_html/siteaddress.rs/Menadzment/に公開し、インストールフォルダをhttp://siteaddress.rs/Menadzment/に設定しました。問題は私がsiteaddress.rs/Menadzment/publish.htmに行って、セットアップをダウンロードしたときに始まります。Cannot download application. The application is missing required files.これらのアドレスを変更しようとしましたが、ダウンロードできないし、VSもsomeotheraddressでファイルを見つけることができないという警告を出しています。ここで私の問題は何ですか?

  • 私はsiteaddress.rs/Menadzment/publish.htm
  • のVisual Studioを経由してファイルをダウンロードすることができ、私のftp
  • 上のファイルを見ることができますパブリッシングは、エラーの詳細です。ここ

を良く行きましたと言う:

PLATFORM VERSION INFO 
    Windows    : 6.1.7600.0 (Win32NT) 
    Common Language Runtime  : 4.0.30319.17929 
    System.Deployment.dll  : 4.0.30319.17929 built by: FX45RTMREL 
    clr.dll    : 4.0.30319.17929 built by: FX45RTMREL 
    dfdll.dll   : 4.0.30319.17929 built by: FX45RTMREL 
    dfshim.dll   : 4.0.41209.0 (Main.041209-0000) 

SOURCES 
    Deployment url   : http://siteaddress.rs/Menadzment/Menadzment.application 
         Server  : Apache 
    Deployment Provider url  : http://ftp.siteaddress.extension.rs/Menadzment/Menadzment.application 

ERROR SUMMARY 
    Below is a summary of the errors, details of these errors are listed later in the log. 
    * Activation of http://siteaddress.rs/Menadzment/Menadzment.application resulted in exception. Following failure messages were detected: 
     + Downloading http://ftp.siteaddress.extension.rs/Menadzment/Menadzment.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 
    * [24.12.2016 17:52:08] : Activation of http://siteaddress.rs/Menadzment/Menadzment.application has started. 

ERROR DETAILS 
    Following errors were detected during this operation. 
    * [24.12.2016 17:52:08] System.Deployment.Application.DeploymentDownloadException (Unknown subtype) 
     - Downloading http://ftp.siteaddress.extension.rs/Menadzment/Menadzment.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

ブラウザからhttp://ftp.siteaddress.extension.rs/Menadzment/Menadzment.applicationに手動でアクセスできますか?また、ファイルをダウンロードする代わりに404ページも返されますか? – Sander

+0

私の前のコメントは編集できませんが、次のように書いています:あなたのブラウザからhttp://siteaddress.rs/Menadzment/Menadzment.applicatiに手動でアクセスできるか、または404ページを返しますか?ファイルをダウンロードしてください)? – Sander

+0

@Sander私はsiteaddress.rs/Menadzment/Menadzment.applicationに行くときにそれをダウンロードします – Parpil

答えて

0

ファイルのファイルアクセス許可(http://siteaddress.rs/Menadzment/Menadzment.applicationとのファイル)は、少なくともパブリック読み取りアクセス許可を持つように設定されています。これは、ssh(http://www.computerhope.com/unix/uchmod.htm)を介してchmodで行うことができます。 FileZillaを使用します。

httpですべてのファイルに自由にアクセスできることを確認してください。

また、(Visual Studioの)インストールフォルダURLがhttp://siteaddress.rs/Menadzment/に設定されていることを確認してください。

また、ClickOnceアプリケーションがコード署名証明書で正しく署名されていることを確認してください。 ClickOnceアプリケーションはそれなしでは動作しません。アクティベーションエラーは不正なcodesignを指します。これは、アプリケーションが全く署名されていない場合、または署名後にファイルが変更された場合に発生します。署名する前にファイルを変更するか、署名情報を更新する必要があります。

+0

コメントは議論の延長ではありません。この会話は[チャットに移動]されています(http://chat.stackoverflow.com/rooms/132215/discussion-on-answer-by-sander-downloading-wpf-application-from-web-clickonce)。 –

関連する問題