简体   繁体   English

请求失败,HTTP状态为401:未授权 - IIS升级 - WebService和Web应用程序

[英]The request failed with HTTP status 401: Unauthorized - IIS Upgrade - WebService & Web Application

I know there were few questions has already on this topic. 我知道关于这个话题的问题已经很少了。 Please note that this question and situation is different compared to others. 请注意,与其他人相比,这个问题和情况有所不同。 Ofcourse, I have tried all other directions gave in previous questions. 当然,我已经尝试过以前的问题中给出的所有其他指示。

Previous Scenario: My current server is 2003 and its having a web application hosted in it. 上一个场景:我当前的服务器是2003,其中托管了一个Web应用程序。 And a web service hosted in 2008 server. 以及2008服务器托管的Web服务。 Both are working in Windows Authentication. 两者都在Windows身份验证中工作。 Still now, its working fine without any issues. 现在,它的工作正常没有任何问题。

Upgradation Scenario: We are planning to upgrade the server from 2003 to 2008 for web application hosted box. 升级方案:我们计划将服务器从2003升级到2008,以用于Web应用程序托管框。

Issue: After we upgraded, we are getting below error. 问题:我们升级后,我们遇到了错误。

The request failed with HTTP status 401: Unauthorized 请求失败,HTTP状态为401:未授权

When we set Anonymous Authentication its working as expected. 当我们设置匿名身份验证时,它按预期工作。

Code has already set up with defaultcredential as True . 代码已经设置为defaultcredential为True

One tough part is : We are unable to change the code as its build in .Net Framework 2.0 as its having lot of internal DLLs missing/not working/not in proper condition to take and fix it. 一个棘手的部分是: 我们无法更改代码作为其内置的.Net Framework 2.0,因为它有许多内部DLL丢失/不工作/不适合采取和修复它。 Its almost having 116 project linked together so we dont have enough time to fix and rebuild all the things. 它几乎有116个项目链接在一起所以我们没有足够的时间来修复和重建所有的东西。

Below are the snippets: 以下是片段:

Language: C# .Net Framework: 2.0 Authentication : Windows 语言:C#.Net Framework:2.0身份验证:Windows

I have tried all authorization, modifying web config files, roles setting in IIS etc., nothing has helped me. 我已尝试所有授权,修改Web配置文件,IIS中的角色设置等,没有任何帮助我。 And also i have tried all tricks given in this site but nothing helps out. 而且我也试过这个网站给出的所有技巧,但没有任何帮助。 Please let me know if there is anything I can do. 如果有什么我能做的,请告诉我。

TA VIRA TA VIRA

Well, you didn't provide enougth information, but I'll try to help. 好吧,你没有提供enougth信息,但我会尽力帮助。

Enable the failed-request tracing module: 启用失败请求跟踪模块:

http://www.iis.net/learn/troubleshoot/using-failed-request-tracing/troubleshooting-failed-requests-using-tracing-in-iis-85 http://www.iis.net/learn/troubleshoot/using-failed-request-tracing/troubleshooting-failed-requests-using-tracing-in-iis-85

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 请求失败,HTTP 状态为 401:调用 Web 服务时未经授权 - The request failed with HTTP status 401: Unauthorized while calling web service 请求失败,HTTP状态为401:未经授权 - The request failed with HTTP status 401: Unauthorized 错误请求失败,HTTP状态为401:未经授权 - Error The request failed with HTTP status 401: Unauthorized 请求失败,HTTP 状态为 401:未授权 IN SSRS - The request failed with HTTP status 401: Unauthorized IN SSRS 请求失败,HTTP状态为401:未授权。 - The request failed with HTTP status 401: Unauthorized. 在C#窗口应用程序中SSRS报告呈现中出现错误:请求失败,HTTP状态为401:未经授权 - Getting Error in SSRS report rendering in C# window application: The request failed with HTTP status 401: Unauthorized 请求失败,HTTP状态为401:再次尝试未授权 - Request failed with HTTP status 401: Unauthorized on second try 服务器无法处理请求。 --->请求失败,HTTP状态为401:未经授权 - Server was unable to process request. ---> The request failed with HTTP status 401: Unauthorized .NET Core-在IIS上通过Windows身份验证从MVC应用程序调用Web API会导致HttpRequestException 401(未经授权)状态代码 - .NET Core - Calling Web API from MVC Application with Windows Authentication on IIS Results In HttpRequestException 401 (Unauthorized) Status Code 通过iis调用服务时,请求失败,http状态被禁止403 -Webservice- - Request failed with http status 403 forbidden -Webservice-while calling the service via iis
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM