So after installing VS 2010 and .net 4 some time ago, I've been trying to upgrade web projects. Running in VS 2010 is not a problem, but when I publish to IIS 7, I keep getting compilation errors. To make things as simple as possible, I created a new Asp.Net Web Application project. I didn't change anything, just left the default project. The project runs fine from VS 2010.
Next, I publish the project to IIS using the File System publish method. This worked fine when my projects were .net 2, but using .net 4 projects, I always get errors like:
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC31007: Unable to open module file 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\web4\b2ae83a4\d2ec1e47\App_global.asax.r1psnh9h.0.vb': System Error &Hc0000005& (Visual Basic internal compiler error)
[No relevant source lines]
Source File: C:\Windows\Mi
View Complete Post