Error : The Type Initializer of Daemon.Global threw an exception in c#
- by srk
I am using the below class file, where some variables are declared to use in the entire application.
Now I used that variable BlockLogOut in another class file to make the value true.
I just put this below line and getting error in it.. TypeInitializationException
Global.BlockLogOut = True;
The weird thing is, it was working fine for many months and i am getting this error now on the above line. Of course i was modifying some other stuffs in the application, but surely not this class file.
What would have been the problem?
namespace Daemon
{
class Global
{
public static bool BlockLogOut = false;
}
}