-
Feb 9th, 2010, 11:14 PM
#1
Thread Starter
Member
How to avoid "The type initializer for... threw an exception"
I just created this program 2 weeks ago, and stop doing for two weeks... before, it perfectly run and has no errors on all of my instance variable that i declared, though in is not finish...
When I'm about to continue doing my project, this error suddenly appear,... Even my 'StrSQL' variable which I declare in my Module as follow:
Code:
Public strSQL as String
and upon calling the variable it also has that error... same with this declarion inside my modGlobal module,
Code:
Public RoomWindow As New frmRoomWindow
Public AccountReceivable As New frmAccRecLookUp
Public GuestLookup As New frmGuestLookup
Public ReservationLookup As New frmReservLookup
Public AlterData As New frmAlterData
Public Checkin As New frmCheckIn
Public ManageAccount As New frmManageAccounts
Public ucButton As New ucAA_Button
Public usermain As New ucUserInformation
Public room As New ucRoom
Public paymenttype As New ucPaymentType
Public idtype As New ucIDType
Public customer As New ucCustomer
Public company As New ucCompany
Public charges As New ucChargeType
Public accountrecord As New ucAccountRecord
All of them suddenly has that error,...
What would be the problem with this?... I'm stock with this problem...
Does my Visual Studio 2008 has the problem?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|