I've just installed .NET 4 on Windows SErver 2008 R2 x64 and I am getting 500 Internal Server Error with an ASP.NET MVC application which was previously running fine on 3.5. The application was upgraded from targeting 3.5 to target 4 and I personally built it today on my development machine (changed in VS - Properties to .NET Framework 4).
On the server I installed .NET Framework 4 Client profile and Full both automatically through the Web Platform Installer. ASP.NET MVC 2 was also installed through Platform Installer. I created a new .NET 4 application pool in IIS and placed the web app in it.
Also I have custom errors turned Off in web.config but even so no detailed error is displayed - just the plain IIS 7.5 500 Internal Server Error.
Any suggestions?
Well, that's a very strange and interesting issue.. But I'm eager to help as much as I can. I've currently got a VPS with Server 2008 R2, and I've installed .NET 4 RTM, and MVC 2 on it. Don't think I've run into configuration issues, but I have had to help set up some other people with it..
Initially, could you check.. in your IIS manager, Isapi and Cgi restrictions, do you have .NET 4 in there? Which versions? are they enabled?
If you go to your app pools in IIS, are your app pools ser to .NET 4, the NEW version? Double check this, your app pools might be set to a different build of the .NET 4 framework, that has since been removed / disabled. You can try create a NEW website with a new clean app pool just to test if it works.
If nothing works yet, you can try to re-register .NET in IIS with aspnet_regiis -i
If none of these work, I'll try to come back with some more options/ideas
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With