Unhandled TypeInitializerException..please help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Muneera
    New Member
    • May 2007
    • 2

    Unhandled TypeInitializerException..please help

    Hi everybody.

    i made a "Personal Assistan" program using vb.net

    it was working realy good. and suddenly while i was trying to run the "To-do List" section, this exception occured:

    System.TypeInit ializationExcep tion was unhandled
    Message="The type initializer for 'PersonalAssist ant.ToDoList' threw an exception."
    Source="Persona lAssistant"
    TypeName="Perso nalAssistant.To DoList"
    StackTrace:
    at PersonalAssista nt.ToDoList..ct or()
    at PersonalAssista nt.Form1.Button 3_Click(Object sender, EventArgs e) in C:\Documents and Settings\User\D esktop\Personal Assistant\Perso nalAssistant\Fo rm1.vb:line 10
    at System.Windows. Forms.Control.O nClick(EventArg s e)
    at System.Windows. Forms.Button.On Click(EventArgs e)
    at System.Windows. Forms.Button.On MouseUp(MouseEv entArgs mevent)
    at System.Windows. Forms.Control.W mMouseUp(Messag e& m, MouseButtons button, Int32 clicks)
    at System.Windows. Forms.Control.W ndProc(Message& m)
    at System.Windows. Forms.ButtonBas e.WndProc(Messa ge& m)
    at System.Windows. Forms.Button.Wn dProc(Message& m)
    at System.Windows. Forms.Control.C ontrolNativeWin dow.OnMessage(M essage& m)
    at System.Windows. Forms.Control.C ontrolNativeWin dow.WndProc(Mes sage& m)
    at System.Windows. Forms.NativeWin dow.DebuggableC allback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    at System.Windows. Forms.UnsafeNat iveMethods.Disp atchMessageW(MS G& msg)
    at System.Windows. Forms.Applicati on.ComponentMan ager.System.Win dows.Forms.Unsa feNativeMethods .IMsoComponentM anager.FPushMes sageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
    at System.Windows. Forms.Applicati on.ThreadContex t.RunMessageLoo pInner(Int32 reason, ApplicationCont ext context)
    at System.Windows. Forms.Applicati on.ThreadContex t.RunMessageLoo p(Int32 reason, ApplicationCont ext context)
    at System.Windows. Forms.Applicati on.Run(Applicat ionContext context)
    at Microsoft.Visua lBasic.Applicat ionServices.Win dowsFormsApplic ationBase.OnRun ()
    at Microsoft.Visua lBasic.Applicat ionServices.Win dowsFormsApplic ationBase.DoApp licationModel()
    at Microsoft.Visua lBasic.Applicat ionServices.Win dowsFormsApplic ationBase.Run(S tring[] commandLine)
    at PersonalAssista nt.My.MyApplica tion.Main(Strin g[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.v b:line 81
    at System.AppDomai n.nExecuteAssem bly(Assembly assembly, String[] args)
    at System.Runtime. Hosting.Manifes tRunner.Run(Boo lean checkAptModel)
    at System.Runtime. Hosting.Manifes tRunner.Execute AsAssembly()
    at System.Runtime. Hosting.Applica tionActivator.C reateInstance(A ctivationContex t activationConte xt, String[] activationCusto mData)
    at System.Runtime. Hosting.Applica tionActivator.C reateInstance(A ctivationContex t activationConte xt)
    at Microsoft.Visua lStudio.Hosting Process.HostPro c.RunUsersAssem blyDebugInZone( )
    at System.Threadin g.ThreadHelper. ThreadStart_Con text(Object state)
    at System.Threadin g.ExecutionCont ext.Run(Executi onContext executionContex t, ContextCallback callback, Object state)
    at System.Threadin g.ThreadHelper. ThreadStart()


    please help asap!!
  • Muneera
    New Member
    • May 2007
    • 2

    #2
    excuse me.. anyone?

    Comment

    Working...