单击一次问题 - 此 XML 文档中禁止使用 DTD

Sao*_*rse 6 wpf clickonce

我正在尝试使用单击一次部署 WPF 应用程序。当我使用本地文件夹(发布和安装)时,一切正常。当我尝试从共享 Dropbox 文件夹进行部署时,我在尝试安装时收到以下错误:

清单可能无效或无法打开文件。+ 此 XML 文档中禁止使用 DTD

任何帮助将不胜感激。

PLATFORM VERSION INFO
    Windows             : 10.0.14393.0 (Win32NT)
    Common Language Runtime     : 4.0.30319.42000
    System.Deployment.dll       : 4.6.1586.0 built by: NETFXREL2
    clr.dll             : 4.6.1586.0 built by: NETFXREL2
    dfdll.dll           : 4.6.1586.0 built by: NETFXREL2
    dfshim.dll          : 10.0.14393.0 (rs1_release.160715-1616)

SOURCES
    Deployment url          : https://www.dropbox.com/sh/nrz5q2ybvf3xdpa/AFD3Ynd5F4rFc2KGQI4Y7WGpa?dl=0/Nouvem.application

ERROR SUMMARY
    Below is a summary of the errors, details of these errors are listed later in the log.
    * Activation of https://www.dropbox.com/sh/nrz5q2ybvf3xdpa/AFD3Ynd5F4rFc2KGQI4Y7WGpa?dl=0/Nouvem.application resulted in exception. Following failure messages were detected:
        + Exception reading manifest from https://www.dropbox.com/sh/nrz5q2ybvf3xdpa/AFD3Ynd5F4rFc2KGQI4Y7WGpa?dl=0/Nouvem.application: the manifest may not be valid or the file could not be opened.
        + DTD is prohibited in this XML document.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
    No transaction error was detected.

WARNINGS
    There were no warnings during this operation.

OPERATION PROGRESS STATUS
    * [27/11/2016 15:03:53] : Activation of https://www.dropbox.com/sh/nrz5q2ybvf3xdpa/AF3Ynd5F4rFc2KGQI4Y7WGpa?dl=0/Nouvem.application has started.

ERROR DETAILS
    Following errors were detected during this operation.
    * [27/11/2016 15:03:55] System.Deployment.Application.InvalidDeploymentException (ManifestParse)
        - Exception reading manifest from https://www.dropbox.com/sh/nrz5q2ybvf3xdpa/AFD3Ynd5F4rFc2KGQI4Y7WGpa?dl=0/Nouvem.application: the manifest may not be valid or the file could not be opened.
        - Source: System.Deployment
        - Stack trace:
            at System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri)
            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)
            at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
        --- Inner Exception ---
        System.Xml.XmlException
        - DTD is prohibited in this XML document.
        - Source: System.Xml
        - Stack trace:
            at System.Xml.XmlTextReaderImpl.Throw(Exception e)
            at System.Xml.XmlTextReaderImpl.ParseDoctypeDecl()
            at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
            at System.Deployment.Application.ManifestValidatingReader.XmlFilteredReader.Read()
            at System.Xml.XsdValidatingReader.Read()
            at System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri)

COMPONENT STORE TRANSACTION DETAILS
    No transaction information is available.
Run Code Online (Sandbox Code Playgroud)