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

后端 未结 4 1685
遥遥无期
遥遥无期 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

    For me this happened when I added a view to my entity model. By default the designer sets all the columns Entity Key property to true. When I set it to false for all decimal/numeric columns the error goes away. Tas

提交回复
热议问题