I made a simple asp.net web application that does nothing. It works using .net framework 2.0 (as do all the other applications on the server), but when I change it to .net framework 4.0 I get a "500 - Internal server error".
To change to 4.0, I compiled with .Net Framework 4.5.2 (also tried 4.0), and I changed the application pool in IIS to ASP 4.0 integrated.
I set web.config to display errors, but it's still only the vague error message above. I can see no errors or warnings in the system logs. I did register .net framework v4.0.30319.
What can cause this?
web.config:
<?xml version="1.0"?>
<configuration>
<system.web>
<compilation strict="false" explicit="true" targetFramework="4.5.2"/>
<httpRuntime targetFramework="4.5.2"/>
<customErrors mode="Off">
<error statusCode="403" redirect="NoAccess.htm"/>
<error statusCode="404" redirect="FileNotFound.htm"/>
</customErrors>
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/>
</system.web>
</configuration>