简体   繁体   English

AD Microsoft登录400错误的请求标头太长ASP.net MVC

[英]AD Microsoft Login 400 bad request headers too long ASP.net MVC

My asp.net mvc application works as expected on localhost and logs in on every browser with ease. 我的asp.net mvc应用程序可以在localhost上正常运行,并可以轻松登录每个浏览器。 I am using Azure Active directory to log in to the application, I published my application to a web server and now I get a 400 bad request from every browser. 我使用Azure Active Directory登录应用程序,将应用程序发布到Web服务器,现在每个浏览器都收到400错误请求。

I have tried clearing the cache with no luck. 我试图清除缓存没有运气。 I increased the maxRequest and time. 我增加了maxRequest和时间。

<httpRuntime targetFramework="4.6.1" maxRequestLength="2097151" executionTimeout="2097151"/>

I noticed that the browser is attempting to log in but the request is sent over 40 times. 我注意到浏览器正在尝试登录,但请求已发送40次以上。 I managed to get it working sometimes but once the request is sent to microsoft.login I get the same error. 有时我设法使其正常工作,但是一旦将请求发送到microsoft.login,我就会收到相同的错误。

Does anyone know of a solution to my problem? 有人知道我的问题的解决方案吗?

Thanks in advance, Adam. 预先感谢亚当。

Based on my understanding, the HTTP headers is determined by both maxRequestLength and MaxFieldLength , please also increase the value of MaxFieldLength and let us know whether it helps. 根据我的理解,HTTP标头是由maxRequestLengthMaxFieldLength决定的,还请增加MaxFieldLength的值,并让我们知道它是否有帮助。 (Refer this KB for the same error message) (有关相同的错误消息,请参考此KB

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

相关问题 Facebook登录asp.net 400错误的请求 - facebook login in asp.net 400 bad request IIS Express Asp.Net 长 URL 返回 400 Bad Request - IIS Express Asp.Net long URL returns 400 Bad Request 尝试在ASP.NET MVC中对控制器进行Ajax调用时出现400错误的请求 - 400 Bad Request when trying Ajax call to Controller in ASP.NET MVC "ASP.net MVC 客户端使用补丁 API 获取错误请求 400 返回" - ASP.net MVC clients consume patch API get Bad request 400 returns ASP.NET OpenIdConnectAuthenticationOptions - MVC 响应状态码不表示成功:400(错误请求) - ASP.NET OpenIdConnectAuthenticationOptions - MVC Response status code does not indicate success: 400 (Bad Request) IIS部署的ASP.NET Core应用程序出现间歇性431请求标头过长的错误 - IIS Deployed ASP.NET Core application giving intermittent 431 Request headers too long error ASP.NET HttpHandler可以处理http 400 - 错误请求吗? - Can an ASP.NET HttpHandler handle an http 400 - Bad Request? ASP.NET Web 服务 - 400 错误请求 - ASP.NET Web service - 400 bad request ASP.NET Web API HTTP 400错误请求 - ASP.NET Web API HTTP 400 Bad Request 在 ASP.NET 核心 Web 应用程序中使用存储在应用程序中的单个用户帐户模拟登录时出现 400 错误请求错误 - 400 Bad Request error when simulating login with Postman on ASP.NET Core Web Application with individual user accounts stored in-app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM