当我将安装文件复制到本地文件夹并从那里运行安装程序 - 一切工作正常,但是当我尝试从网络共享运行安装程序时,我得到这种类型的错误:从网络共享安装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.我发现了很多关于这种类型的问题的问题,但是我找不到可以帮助我的答案...
删除此错误信息的最重要的部分是不是非常有帮助...请添加完整的错误消息,只是模糊的东西像服务器名称,应用程序名称,用户名称或密码。 – Herdo
@Herdo嗨,添加完整的错误文本到帖子 – Prokurors
谢谢。 “无法找到网络名称。”看起来像ClickOnce的部署设置中的拼写错误。请检查客户端是否可以访问在发布页面上定义的“安装文件夹URL”。 – Herdo