我在我的服務器上使用了c#.net應用程序,但每當我進行一些更改時都很痛苦,因此我想將我的應用程序更新到我的ftp,因此將其下載並正常使用(也可以從ftp更新)。從網上下載wpf應用程序ClickOnce
那麼我做了什麼是我的應用程序發佈到我的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
。這裏有什麼問題。
- 我可以看到文件在我的FTP
- 我可以通過下載文件
siteaddress.rs/Menadzment/publish.htm
- Visual Studio中說,出版走到錯誤的好
下面是詳細介紹:
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.
你可以通過瀏覽器手動訪問http://ftp.siteaddress.extension.rs/Menadzment/Menadzment.application,還是返回404頁面(而不是開始下載文件)? – Sander
無法編輯我以前的評論,但我打算說:你可以通過瀏覽器手動訪問http://siteaddress.rs/Menadzment/Menadzment.applicati,還是返回404頁面(而不是開始下載文件)? – Sander
@Sander它確實下載它時,我去siteaddress.rs/Menadzment/Menadzment.application – Parpil