启用Windows身份验证后,XBAP应用程序下载失败

时间:2019-08-20 14:08:05

标签: iis clickonce windows-authentication windows-server-2016 xbap

奇怪的是,Windows身份验证的工作原理是允许访问应用程序的URL而无需给出401(并且可以与服务器上的所有其他Web应用程序一起使用),但是当XBAP应用程序尝试下载时,它将失败并给出身份验证错误。

MIME类型均已添加。并且下载使用匿名身份验证。只是没有Windows。看着这个已经好几个小时了,变得很沮丧。发布错误日志:

Error SUMMARY
Below Is a summary Of the errors, details of these errors are listed later in the log.
    * An exception occurred while downloading the manifest. Following failure messages were detected:
        + Downloading http//myserver/myapp/ did Not succeed.
        + The remote server returned an error: (401) Unauthorized.
        + The target principal name Is incorrect

COMPONENT STORE TRANSACTION FAILURE SUMMARY
    No transaction Error was detected.

WARNINGS
    There were no warnings during this operation.

OPERATION PROGRESS STATUS
    No phase information Is available.

Error DETAILS
    Following errors were detected during this operation.
    * [8/20/2019 10:06:22 AM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
        - Downloading http://myserver/myapp/ 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.DownloadDeploymentManifestDirect(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
            at System.Deployment.Application.DownloadManager.DownloadDeploymentManifest(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, IDownloadNotification notification, DownloadOptions options)
            at System.Deployment.Application.DeploymentManager.BindCore(Boolean blocking, TempFile& tempDeploy, TempDirectory& tempAppDir, FileStream& refTransaction, String& productName)
            at System.Deployment.Application.DeploymentManager.BindAsyncWorker()
        --- Inner Exception ---
        System.Net.WebException
        - The remote server returned an error: (401) Unauthorized.
        - Source: System
        - Stack trace:
            at System.Net.HttpWebRequest.GetResponse()
            at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem Next)
        --- Inner Exception ---
        System.ComponentModel.Win32Exception
        - The target principal name Is incorrect
        - Source: System
        - Stack trace:
            at System.Net.NTAuthentication.GetOutgoingBlob(Byte[] incomingBlob, Boolean throwOnError, SecurityStatus& statusCode)
            at System.Net.NTAuthentication.GetOutgoingBlob(String incomingBlob)
            at System.Net.NegotiateClient.DoAuthenticate(String challenge, WebRequest webRequest, ICredentials credentials, Boolean preAuthenticate)
            at System.Net.NegotiateClient.Authenticate(String challenge, WebRequest webRequest, ICredentials credentials)
            at System.Net.AuthenticationManagerDefault.Authenticate(String challenge, WebRequest request, ICredentials credentials)
            at System.Net.AuthenticationState.AttemptAuthenticate(HttpWebRequest httpWebRequest, ICredentials authInfo)
            at System.Net.HttpWebRequest.CheckResubmitForAuth()
            at System.Net.HttpWebRequest.CheckResubmit(Exception& e, Boolean& disableUpload)

COMPONENT STORE TRANSACTION DETAILS
    No transaction information Is available.

0 个答案:

没有答案