The type initializer for 'BLL.Customer' threw an exception.

What does this error mean??? No clue.........


3/1/2006 8:58:38 PM 91979 articles. 2 followers. Follow

1 Replies

Similar Articles

[PageSpeed] 38

In .NET, you can have instance constructors and you can also have a static constructor. The static constructor is used to initialize static variables or do other one-time setup for all instances of a class, usually. Static constructors are also called type initializers, and will be called before the first instance of the class is constructed (it appears to usually happen when you first call a method that needs to know about the type).

To see the code that is throwing an exception, look at the code for the class mentioned. In C#, look for a method in the class with a signature like "static [ClassName]()". In VB.NET, it will be "Shared Sub New()".

Hope this helps,

This posting is provided "AS IS" with no warranties, and confers no rights.
3/2/2006 6:54:17 PM