Search code examples
c#asp.netiis-6routes

ASP.NET routes not working in IIS6


I have built a small web application in asp.net c# in VS 2010 using Framework 3.5. I need to deploy it on Windows 2003 server with IIS6.

Its using routes ( System.Web.Routing ) which are working fine when I run though Visual Studio. But now after deploying to IIS6 server, it gives 404 error. If I type exact path of page, it works fine.

like http://localhost.local/forms/user/login.aspx works but my custom route http://localhost.local/user/login gives 404 error

I have goggled found this Installing Wildcard Application Mappings & Running ASP.NET MVC Under IIS 6.0 and IIS 7.0 Classic Mode : Solution to Routing Problem

Any clue how to fix this?


Solution

  • I Goggled and found...

    ...but it was still not working.

    Worked out the problem; I was not restarting the IIS6 properly. I was only restarting the website.

    The above links were showing correct info on how to fix this.