TypeInitializationException thrown for Program class

后端 未结 13 833
醉梦人生
醉梦人生 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:16

    This issue for me was caused by a rogue user.config file that was created in the AppData\Local[Manufacturer][Product Name] directory. I'm not sure how it got there, but seems to be created every now and then.

提交回复
热议问题