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

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

 

0
Bishi
3/1/2006 8:58:38 PM
asp.net.getting-started 91979 articles. 2 followers. Follow

1 Replies
442 Views

Similar Articles

[PageSpeed] 57

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,
-Scott


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