因此,我們有一個小應用程序指向2008 SSRS服務器上的報告。「目標主體名稱不正確」401錯誤
這個程序能正常工作正常,但由於我們增加了更多的網站服務器,我們已經改變了Web應用程序綁定到的東西,是不是服務器的名稱。
這使我們得到如下:
The target principal name is incorrect Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ComponentModel.Win32Exception: The target principal name is incorrect
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[Win32Exception (0x80004005): The target principal name is incorrect] System.Net.NTAuthentication.GetOutgoingBlob(Byte[] incomingBlob, Boolean throwOnError, SecurityStatus& statusCode) +2622099
System.Net.NTAuthentication.GetOutgoingBlob(String incomingBlob) +99
System.Net.NegotiateClient.DoAuthenticate(String challenge, WebRequest webRequest, ICredentials credentials, Boolean preAuthenticate) +767
System.Net.NegotiateClient.Authenticate(String challenge, WebRequest webRequest, ICredentials credentials) +18
System.Net.AuthenticationManager.Authenticate(String challenge, WebRequest request, ICredentials credentials) +146
System.Net.AuthenticationState.AttemptAuthenticate(HttpWebRequest httpWebRequest, ICredentials authInfo) +2279623
System.Net.HttpWebRequest.CheckResubmitForAuth() +3031261
System.Net.HttpWebRequest.CheckResubmit(Exception& e) +169[WebException: The remote server returned an error: (401) Unauthorized.]
我們增加了一個SPN爲新的綁定名字到SSRS服務器運行應用程序,但沒有任何標識。
我看到很多人誰擁有SSPI問題,這樣做的人,但沒有一個401錯誤。
,我們正在使用的ID已全面進入兩個框,如果你可以從Web服務器到SSRS沒有問題直接去。它只有當它包裝在應用程序中,我們得到一個錯誤。
有沒有人遇到過這個問題?
感謝
任何運氣與我的答案。如果你能讓我知道你的發現會有所幫助。 –