IIS 7 and Above
ASP.NET 2.0 maximum URL length?
Last post May 10, 2010 12:08 PM by moredotnet
May 01, 2007 03:13 PM|vgribok|LINK
I originally posted this question in
microsoft.public.dotnet.framework.aspnet but after kicking it around for a couple of days, one of the MVPs there suggested to post it here. Please click the link above to see what was already tried. Here is the original post:
Using IIS7, Vista x64, ASP.NET 2.0.
I am getting HTTP 400 "Bad Request" for the following URL:
Here's what makes difference:
- URL length: As soon as I make this URL two chars shorter - HTTP 400 error
goes away. Note that length of the first URL segment - the application name
(HTTPVPNWebPortal) - is irrelevant. App name's length makes no different -
only the rest of the URL does. Also splitting URL into more segments by
adding '/' to it makes no difference either.
- Changing URL resource extension from .AXD to .HTM makes 400 go away, so looks
like it's an ASP.NET thing. Changing the extension to .ASPX brings error back.
My question is this: is it possible to configure ASP.NET to allow longer
URLs for .ASPX and .AXD resources?
May 01, 2007 04:22 PM|anilr|LINK
Apr 21, 2010 03:12 PM|joellister|LINK
Do you know if this is fixed in the .NET 4.0 framework? If so I could fix this problem by upgrading my app to .net 4.0 rather than spend time working out a hack to handle the long URLs I have in my MVC 2.0 app.
May 10, 2010 12:08 PM|moredotnet|LINK
Yes, this issue is now fixed in ASP.NET 4.0. Read this link for more:
Vishal K Khanna