[英]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标头是由
maxRequestLength
和MaxFieldLength
决定的,还请增加MaxFieldLength
的值,并让我们知道它是否有帮助。 (Refer this KB for the same error message) (有关相同的错误消息,请参考此KB )
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.