how to solve System.TypeInitializationException was unhandled exception in vb.net?

后端 未结 4 798
傲寒
傲寒 2020-12-19 16:44

I have created a vb.net console application when i am running the source code it will work fine.But when i am running the Executable file it is throwing an exeption like \

4条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-19 17:29

    Generally, a TypeInitializionException is thrown when another exception happens inside a static constructor.

    Check for the InnerException property of the former, and you will get more information about the actual error.

提交回复
热议问题