从网络共享安装时,ClickOnce应用程序安装失败

时间:2014-07-22 13:03:01

标签: winforms clickonce installation network-share

当我将安装文件复制到本地文件夹并从那里运行安装程序时 - 一切正常,但是当我尝试从网络共享运行安装程序时,我遇到了这种类型的错误:

以下错误信息:

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。我发现了很多关于这类问题的问题,但我找不到能帮到我的答案......

1 个答案:

答案 0 :(得分:0)

希望您在部署应用程序时犯了一些错误:请注意您已从组件wender的网站中选择了下载先决条件,如图所示,此时选择下载先决条件从与我的应用程序相同的位置然后按确定继续。picture

了解更多说明和部署指南https://documentation.devexpress.com/#Xaf/CustomDocument3234