2014-07-22 272 views
0

當我將安裝文件複製到本地文件夾並從那裏運行安裝程序 - 一切工作正常,但是當我嘗試從網絡共享運行安裝程序時,我得到這種類型的錯誤:從網絡共享安裝ClickOnce應用程序安裝失敗

下面

錯誤信息:

LATFORM VERSION INFO 
Windows: 6.1.7601.65536 (Win32NT) 
Common Language Runtime: 4.0.30319.18444 
System.Deployment.dll: 4.0.30319.18408 built by: FX451RTMGREL 
clr.dll: 4.0.30319.18444 built by: FX451RTMGDR 
dfdll.dll: 4.0.30319.18408 built by: FX451RTMGREL 
dfshim.dll: 4.0.41209.0 (Main.041209-0000) 

SOURCES  
Deployment url: file:///C:/(path../AppName).application 
Deployment Provider url: file://(server/path/AppName).application 

ERROR SUMMARY 
Below is a summary of the errors, details of these errors are listed later in the log. 
* Activation of C:/(path../AppName).application resulted in exception. Following failure messages were detected: 

+ Downloading file://(server/path/AppName).application did not succeed. 

+ The network name cannot be found. 

+ The network name cannot be found. 

+ The network name cannot be found. 


COMPONENT STORE TRANSACTION FAILURE SUMMARY 
No transaction error was detected. 

WARNINGS 
There were no warnings during this operation. 

OPERATION PROGRESS STATUS 
* [22-07-2014 08:37:35] : Activation of C:/(path../AppName).application has started. 

ERROR DETAILS 
Following errors were detected during this operation. 
* [22-07-2014 08:37:35] System.Deployment.Application.DeploymentDownloadException (Unknown subtype) 
- Downloading file://(server/path/AppName).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 network name cannot be found. 

- Source: System 
- Stack trace: 
    at System.Net.FileWebRequest.EndGetResponse(IAsyncResult asyncResult) 
    at System.Net.FileWebRequest.GetResponse() 
    at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next) 

--- Inner Exception --- 
System.Net.WebException 
- The network name cannot be found. 

- Source: System 
- Stack trace: 
    at System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint) 
    at System.Net.FileWebRequest.GetResponseCallback(Object state) 

--- Inner Exception --- 
System.IO.IOException 
- The network name cannot be found. 

- Source: mscorlib 
- Stack trace: 
    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) 
    at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) 
    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) 
    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync) 
    at System.Net.FileWebStream..ctor(FileWebRequest request, String path, FileMode mode, FileAccess access, FileShare sharing, Int32 length, Boolean async) 
    at System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint) 

COMPONENT STORE TRANSACTION DETAILS 
No transaction information is available. 

(..)

爲什麼會這樣,我能做些什麼,使之可以安裝從網絡共享ClickOnce應用程序(我不能用這個網址)?

我需要多個用戶才能訪問此安裝並使其中的每個人在安裝之前下載安裝並不會以用戶友好的方式發聲。

P.S.我發現了很多關於這種類型的問題的問題,但是我找不到可以幫助我的答案...

+0

刪除此錯誤信息的最重要的部分是不是非常有幫助...請添加完整的錯誤消息,只是模糊的東西像服務器名稱,應用程序名稱,用戶名稱或密碼。 – Herdo

+0

@Herdo嗨,添加完整的錯誤文本到帖子 – Prokurors

+0

謝謝。 「無法找到網絡名稱。」看起來像ClickOnce的部署設置中的拼寫錯誤。請檢查客戶端是否可以訪問在發佈頁面上定義的「安裝文件夾URL」。 – Herdo

回答

0

希望在部署應用程序時出錯:請注意,您已選擇從組件wender的網站下載先決條件,如圖中所示,此時選擇從與我的應用程序相同的位置下載先決條件,然後按確定繼續。 picture

更多的澄清和部署指南https://documentation.devexpress.com/#Xaf/CustomDocument3234

+1

他甚至沒有使用bootstraper。爲什麼前提條件成爲問題? – Herdo

+0

當您選擇* *從組件wender的網站下載先決條件** @此時它需要從互聯網下載.net Frame工作,mysql/sql server和其他支持的軟件@安裝時,**從相同位置下載先決條件我的應用程序**將幫助你從本地機器自己附上這些必需品。 – Suji

+2

那沒有回答我的問題。 – Herdo