Everything,
I am having a problem deploying an ASP.NET 4.0 webpage. Error
System.InvalidProgramException: Common Language Runtime detected an invalid program
The error occurs in IIS7 in a 64-bit Windows Server window. The same page works on IIS7 in my development window (32-bit Windows 7) and in the Visual Studio development environment. I do not know any differences in IIS7 configuration.
I used PEVerify to check the DLL in the bin directory of the application.
I can reproduce the problem using an Entity Framework query to populate a DataGrid.DataSource. This is not a very difficult request.
Any ideas on what could be causing this? My next step is to try to just use the queries.
Thanks for any help.
source share