I'm trying to deploy a MVC application to a news Server, I have .net framework 4 and ASP.net MVC2 installed. My app pool is assigned to .net 4, integrated mode. But for some reason, the routing is not happening properly. I am getting a 404 error on links and not properly routed to the controller. What am i missing here? Is it might be order of installation of .net framework and IIS?
+1
A:
Your app is probably compiled against .Net Framework Version 2.0. Change your app pool to 2.0 and see if it helps.
RedFilter
2010-10-25 14:17:44
no, its complied against .net framework version 4.0
Joe
2010-10-25 14:21:55
Do we need to have any other framework , 3.5 other than 4.0?
Joe
2010-10-25 14:23:08
A:
So, if you got a 404 error that is because the global.asax is not being executed. Check out if the IIS is configured to "Check if the Directory/File exists", cause the IIS is default configured to check first if the request exists on the server ... MVC doesn't use the 'real' path, per say.
Hope it helps ;)
EDIT Try to log something at the time the routing is working ... I mean when the Route inside the global asax is called and check out if the mapping is called...
Darkxes
2010-10-25 14:25:23
A:
Try this :
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<modules runAllManagedModulesForAllRequests="true" />
</system.webServer>
Or try to debug routing
Ender
2010-10-25 14:27:25