ASP.NET 4.0 URL Routing HTTP Error 404.0 - Not Found on server

Posted by SheoNarayan under Error and Solution on 9/5/2011 | Points: 10 | Views : 3559 | Status : [Administrator] | Replies : 0

Problem

If you have implemented ASP.NET 4.0 URL Routing in your application when you deploy on the server it may not work.

Solution

Keep following config after </system.web> (make sure that it is not inside system.web).

<system.webServer>
<modules runAllManagedModulesForAllRequests="true" />
</system.webServer>


And ASP.NET 4.0 URL Routing starts working !

Hope this helps, Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com



Responses

(No response found.)

Login to post response