Visual studio 无法下载应用程序。应用程序缺少必需的文件

Visual studio 无法下载应用程序。应用程序缺少必需的文件,visual-studio,deployment,clickonce,Visual Studio,Deployment,Clickonce,使用Visual Studio ClickOnce发布应用程序。我有一个应用程序发布到的NAS。该文件夹对所有人都具有只读权限。我们得到以下错误: PLATFORM VERSION INFO Windows : 10.0.17134.0 (Win32NT) Common Language Runtime : 4.0.30319.42000 System.Deployment.dll : 4.7.3056.0 built by: NET472REL1 c

使用Visual Studio ClickOnce发布应用程序。我有一个应用程序发布到的NAS。该文件夹对所有人都具有只读权限。我们得到以下错误:

PLATFORM VERSION INFO
Windows             : 10.0.17134.0 (Win32NT)
Common Language Runtime     : 4.0.30319.42000
System.Deployment.dll       : 4.7.3056.0 built by: NET472REL1
clr.dll             : 4.7.3394.0 built by: NET472REL1LAST_C
dfdll.dll           : 4.7.3056.0 built by: NET472REL1
dfshim.dll          : 10.0.17134.1 (WinBuild.160101.0800)

SOURCES
Deployment url          : file:///C:/Users/erics/Downloads/xxxxxxxx.application

ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of C:\Users\erics\Downloads\xxxxxxxx.application resulted in exception. Following failure messages were detected:
    + Downloading file:///C:/Users/erics/Downloads/xxxxxxxx.application did not succeed.
    + Could not find file 'C:\Users\erics\Downloads\xxxxxxxx.application'.
    + Could not find file 'C:\Users\erics\Downloads\xxxxxxxx.application'.
    + Could not find file 'C:\Users\erics\Downloads\xxxxxxxx.application'.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.

WARNINGS
There were no warnings during this operation.

OPERATION PROGRESS STATUS
* [5/6/2019 8:53:47 AM] : Activation of C:\Users\erics\Downloads\xxxxxxxx.application has started.

ERROR DETAILS
Following errors were detected during this operation.
* [5/6/2019 8:53:48 AM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
    - Downloading file:///C:/Users/erics/Downloads/xxxxxxxx.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, X509Certificate2 clientCertificate)
        at System.Deployment.Application.DownloadManager.DownloadManifestAsRawFile(Uri& sourceUri, String targetPath, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
        at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestDirectBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
        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, Uri& deploymentUri)
        at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
--- End of stack trace from previous location where exception was thrown ---
        at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
        at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry(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
    - Could not find file 'C:\Users\erics\Downloads\xxxxxxxx.application'.
    - Source: System
    - Stack trace:
        at System.Net.FileWebRequest.EndGetResponse(IAsyncResult asyncResult)
        at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
    --- Inner Exception ---
    System.Net.WebException
    - Could not find file 'C:\Users\erics\Downloads\xxxxxxxx.application'.
    - 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.FileNotFoundException
    - Could not find file 'C:\Users\erics\Downloads\xxxxxxxx.application'.
    - 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.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.
我已经检查了我所有的部署路径,它们是正确的和可访问的

我已将文件夹权限更改为读/写,但这并没有解决问题

我已经检查了xxxxxxxx.application是否存在,它存在于版本文件夹中

我已经检查了清单上没有任何文件。它们都在版本文件夹中


有什么建议吗?

你能分享你的清单文件吗?更多信息。如果用户直接浏览setup.exe文件并运行该文件,它将正确安装。单击并从ClickOnce自动生成的网页下载时,使用Chrome浏览器无法正确安装。使用边缘浏览器时可能安装正常-还不确定-在不同的计算机上没有足够的尝试。能否共享清单文件?详细信息。如果用户直接浏览setup.exe文件并运行该文件,它将正确安装。单击并从ClickOnce自动生成的网页下载时,使用Chrome浏览器无法正确安装。使用Edge browser时可能安装正常-还不确定-在不同的计算机上没有足够的尝试。