InvalidProgramException: Common Language Runtime detected an invalid program

  • Thread starter Thread starter Mulder2008
  • Start date Start date
M

Mulder2008

Guest
Hi All:

"InvalidProgramException: Common Language Runtime detected an invalid program"

We had a project using C# reflection heavily, and recently encountered above weird problem, the environment is .net framework 4.7.1 + vs2017 + windows 10 Enterprise, I tried to upgrade windows/vs2017 to latest version, also build with .net framework 4.7.2, neither works, instead it only works when I choose vs2013 + .net framework 4.5.2 (which is the setting of earlier project version)

I spent whole day in google, and find out that most of the links refer to below address:

https://support.microsoft.com/en-us...idprogramexception-error-message-when-you-run

however the hotfix link returns 404 error, and the fix is for .net framework v2.0

I found that VS2017 is using csc v2.8.0.62830, while VS2013 is using csc v12.0.40629.0, is there a patch for C# compiler?

any reference would appreciated, thanks in advance


kind regards


fight for future!

Continue reading...
 
Back
Top