TypeInitializationException thrown for Program class

后端 未结 13 834
醉梦人生
醉梦人生 2020-12-10 23:30

My Windows Forms application was working earlier, however suddenly it stopped working. I am getting following exception:

13条回答
  •  盖世英雄少女心
    2020-12-11 00:24

    Make sure you are not missing any dependency DLLs. In my case, a DLL I was referencing had a dependency on another DLL.

    If this is what happened, look at the "Inner Exception" property and then you will see a better error message. In my case, it said "Cannot find xxx.dll"

提交回复
热议问题