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 \
Generally, a TypeInitializionException is thrown when another exception happens inside a static constructor.
TypeInitializionException
Check for the InnerException property of the former, and you will get more information about the actual error.
InnerException