3

I am doing ADFS authentication, and when I click the Sign In button from Microsoft Teams, I will be redirected to my URL, and I am getting the following error after the pages gets redirected:

AADSTS90015: Requested query string is too long.

I have tried the following solutions:

HTTP Error 414. The request URL is too long. asp.net and Query string is too long

But i couldn't resolve the problem, help me to figure out this problem.

Daniel
  • 2,355
  • 9
  • 23
  • 30
Harish Varun
  • 31
  • 1
  • 2

1 Answers1

0

The solutions in the two questions you linked are not complete. Try adding the following to your web.config:

<system.webServer>
  <security>
    <requestFiltering>
      <requestLimits maxQueryString="32768"/>
    </requestFiltering>
  </security>
</system.webServer>

See:

http://www.iis.net/ConfigReference/system.webServer/security/requestFiltering/requestLimits

You may have to add the following in your web.config as well:

<httpRuntime maxQueryStringLength="32768" maxUrlLength="65536"/>

Of course these numbers are just examples and you don't have to use these exact values in these settings.

Marilee Turscak - MSFT
  • 7,367
  • 3
  • 18
  • 28