Last post Jul 01, 2011 06:04 AM by mihir.mone
Jul 01, 2011 05:17 AM|emagine|LINK
When using ASP.NET on Framework 4, Windows Server 2008 64-bit, IIS 7.5, we have found following problem on some systems :
Our cms uses url's like http://mysite/aaaaa/bbbbb/page.aspx/100. The url does not correspond to a physical file, but in the application_beginrequest event, we extract the pathinfo value of the url (i.e.
for example the value 100). This value is the page ID we need. Once we have the page ID, we build the internal url and execute a HttpContext.Current.RewritePath.
This worked fine for years using IIS6, framework 3.5, but now on some systems with the configuration mentioned above the pathinfo returns an empty string (i.e. our page id is lost).
Does anybody else has a similar problem ? Why is the pathinfo value empty ? How can this be solved ?
Is there something missing in the handler mappings configurations ?
Jul 01, 2011 05:41 AM|mihir.mone|LINK
It seems like Handler Mapping problem.
Delete the exesting mapping and create again.
Trust this helps !!
Jul 01, 2011 05:53 AM|emagine|LINK
Thanks for your fast response.
Do you know which mapping interferes and has to be recreated, modified or removed ?
Jul 01, 2011 06:04 AM|mihir.mone|LINK
You can go to IIS -> your application -> Handler mappings
Locate the mapping created by your application to catch the requests and process.
It must be catching *.*
Or you can look for it in your web.config.
I suppose, for IIS 7.0 and above the handler mapping section has been changed.
It falls under <system.webserver>
You can check the following article on mappings and configuration,
Trust this helps !