CodePudding user response:
Usage had problems, the new Main?CodePudding user response:
The inside of the mian, directly or indirectly USES the static variable valuesAnd the static variables directly or indirectly refers to the configuration file or other DLL
Then the lack of a configuration file or relevant configuration items or can't find another DLL value
Maybe more around,
For example, they understand
Many from 51 aspx down ancient level code, like to use the Microsoft enterprise library, the enterprise repository has a dependent DLL static variable reads the configuration file for the variable initialization,
When you lack the DLL, or the lack of the configuration file, at this time failed to initialize static variables, the error came out
CodePudding user response:
I guess your form the name of the class is the Main, no good, let's change the name! Can use the FrmMain also line! Your form name clashes with the Main method!CodePudding user response:
Window name or variable names don't up the internal use of c #, refer to the spec