How to configure IIS 7.5 to allow special chars in Url for ASP.NET 3.5?

12,139

Happened to me, after doing all the modifications to the Windows Registry I was stuck as you were. Problem was fixed once I changed the Application Pool mode into Classic.

Share:
12,139

Related videos on Youtube

Sebastian P.R. Gingter
Author by

Sebastian P.R. Gingter

Updated on September 18, 2022

Comments

  • Sebastian P.R. Gingter
    Sebastian P.R. Gingter over 1 year

    I'm trying to configure my IIS 7.5 to allow specials chars in the url for ASP.NET. This is important to support wide-spread legacy url's on a new system.

    Sample url: http://mydomain.com/FileWith%inTheName.html This would be encoded in the url and requested as http://mydomain.com/FileWith25%inTheName.html

    This simply works, when creating a new web in IIS 7.5, placing a file with the percentage sign in the file name in the web root and pointing the browser to it.

    This does not work, however, when the web site is an ASP.NET application. ASP.NET always returns a 400.0 - Bad Request error in the WindowsAuthentication module from the StaticFile handler, when pointing to that url. It however displays the requested url correctly and also resolves correctly to the correct physical file (the information from the field 'Physical Path' from the Server error page points to the physically available file).

    There are hints on how to enable this, so I followed the instructions on these websites step by step:

    The second one actually sums up the information from the first post and adds some more information about x64 systems (we're running x64) and on an additional web.config change for this. I tried all that, and still can't get this running from an asp.net web application. And yes: I rebooted after applying the registry changes.

    So, what do I have to do in addition to the settings described in above posts, to support the legacy url's which contain percentage characters?

    Additional info: Application Pool mode is integrated.

    Push after some days. No idea anyone?

    • Greg Askew
      Greg Askew about 12 years
      Is the AppPool Managed Pipeline Mode Classic or Integrated?
    • Sebastian P.R. Gingter
      Sebastian P.R. Gingter about 12 years
      AppPool is integrated. Also added above.
  • Sebastian P.R. Gingter
    Sebastian P.R. Gingter over 11 years
    You say 'ASP.NET supports full state coverage in the API.' My problem is that the IIS does not even pass the request to ASP.NET. I am totally unable to try to handle it in my code. I still did not find any solution to this problem.