2017-10-20 1 views
0
나는 윈도우 10 v1607 나를 위해 잘 작동하지만 윈도우 10 v1703에서 동일한 웹 서비스를하려고 할 때, 그것은 나에게이 오류 제공에 웹 서비스 호출 오전

:요청이 HTTP 상태 401 : Unauthorized로 실패했습니다.

The request failed with HTTP status 401: Unauthorized. 
    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.Net.WebException: The request failed with HTTP status 401: Unauthorized. 

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: 



[WebException: The request failed with HTTP status 401: Unauthorized.] 
    System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +237136 
    System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +267 
    CPR.Apps.CPMS.ServiceWrapper.CPMSProxy.CPMSService.GetUserGroupTasks(User& user) +138 
    CPR.Apps.CPMS.ServiceWrapper.WebAppServiceWrapper.GetUserGroupTasks(User& cpmsUser) +111 
    CCPS.App.Web.UI.Global.Session_Start(Object sender, EventArgs e) +145 
    System.Web.SessionState.SessionStateModule.CompleteAcquireState() +380 
    System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) +1250 
    System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +631 
    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +134 

작동하는지주의를 익명으로 웹 서비스 인증을 설정했지만 보안 측면에서는 허용되지 않습니다. 현재 보안 설정은 asp.net 인격 및 Windows 인증입니다.

또한 webService.UseDefaultCredentials = true입니다.

누구에게 의견이 있습니까? >Servers - - 비주얼 스튜디오 솔루션은 웹 앱 속성 Web에 대한 한 -

답변

1

OK, 문제를 발견 디버깅을 위해 잘 작동 http://localhost:51243 같은 값>IIS Express,하지만 난 게시 할 때 그것은 있도록 이러한 설정을 유지 프로덕션 서버에서 작동하지 않습니다.

문제를 해결하기 위해 제작 URL로 External Host으로 전환했습니다.

여전히 Windows 10 v1607은이 문제에 관심이 없지만 v1703은 401 오류를 제공합니다.

관련 문제