I have two websites on IIS 6 that throw server errors when they are set to ASP.NET 2 (via the ASP.NET tab in IIS properties) - one because of a dependancy on a library built in .NET 4, the other because it is an N4/MVC2 application which specifies 4.0 as it's targetFramework in config.
When I change the setting in the ASP.NET tab to be .NET 4, both websites just return 'page cannot be found' errors, even when pointed at a specific page (by route in the MVC app, an .aspx file in the ASP.NET app).
I've tried adding a wildcard ISAPI filter to the MVC app as described a few places online, but this hasn't done anything (either when pointed at the 2.0 dll or the 4.0 dll). The versions of .NET 4 on the server and in Visual Studio are the same (4.0.30319).
I am running under IIS 6 on Windows Server 2003.
Does anyone have any ideas what I might be missing here?
Forms Authentication & IIS7 (&MVC): Why ReturnUrl=/ is added?
1:Can i access ValidationMessage through jquery in asp.net mvc
It was a setting in IIS, Web Service Extensions. .NET 4 was set to prohibited. Allowed it, and everything worked.