It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Visual Basic Forum

Error "TypeInitilizationException occured"

Moderator: dafunkymunky

Error "TypeInitilizationException occured"

Postby atulaga on Tue Aug 19, 2008 5:03 pm

Hi,
I have an problem.

In Form2.vb code, I used the variable FromBus

public FromBus as integer in module mFindWindow.vb

and I run my program on a computer in my company, it Ok.
But when I copy it back to my computer at home, it Fail with message and details:
============================================
The type initializer for 'ApiCalls.mFindWindow' threw an exception.
System.TypeInitializationException occurred
Message="The type initializer for 'ApiCalls.mFindWindow' threw an exception."
Source="ApiCalls"
TypeName="ApiCalls.mFindWindow"
StackTrace:
at ApiCalls.frmPSSE.txtFromBus_KeyUp(Object sender, KeyEventArgs e) in C:\Documents and Settings\tuna\My Documents\Visual Studio 2005\Projects\APICalls\Form2.vb:line 62
============================================

Please help me.
Thanks.
atulaga
 
Posts: 3
Joined: Tue Aug 19, 2008 3:11 pm

Who is online

Users browsing this forum: No registered users and 1 guest