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?
I Goggled and found…
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/5c5ae5e0-f4f9-44b0-a743-f4c3a5ff68ec.mspx?mfr=true
http://www.tugberkugurlu.com/archive/running-asp-net-mvc-under-iis-6-0-and-iis-7-0-classic-mode—solution-to-routing-problem
…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.