C# Entity Framework 4 Common Language Runtime detected an invalid program error?

后端 未结 4 1702
遥遥无期
遥遥无期 2021-01-12 04:36

How do you debug/fix a \"Common Language Runtime detected an invalid program\" error? What exactly does it mean anyway?

I have a C# MVC 2 web app that can deployed t

4条回答
  •  不思量自难忘°
    2021-01-12 05:25

    there is a major bug!!, i think it is while having decimal field column property in Entity framework,

    i have faced this nasty error msg, i compared getting data from 2 separate tables(same tables),one with an integer column ID and the other with decimal column ID,

    for the table with the integer column, no problem same code ran perfectly, for the table with a decimal column, this error message pop out i have made checks on sql server iis and the environment and i even wanted to format the pc, its very weird and the error msg is not clear.

    hope this approach helps any facing such an error in the future.

提交回复
热议问题