im doing a music therapist program and i keep getting this error
Im using visual c# express. This exception was created automatically by the
program when i dragged and dropped databound controls to my form
System.TypeInitializationException was unhandled
Message="The type initializer for 'System.Data.SqlClient.SqlConnection'
threw an exception."
Source="System.Data"
TypeName="System.Data.SqlClient.SqlConnection"
StackTrace:
at System.Data.SqlClient.SqlConnection..ctor()
at Therapist.Ailments.InitializeComponent() in C:\Documents and
Settings\tenille\My Documents\Visual Studio
2005\Projects\Musictherapist\Musictherapist\Ailmen ts.Designer.cs:line 86
at Therapist.Ailments..ctor() in C:\Documents and Settings\tenille\My
Documents\Visual Studio
2005\Projects\Musictherapist\Musictherapist\Ailmen ts.cs:line 16
at Therapist.Menu.button8_Click(Object sender, EventArgs e) in
C:\Documents and Settings\tenille\My Documents\Visual Studio
2005\Projects\Musictherapist\Musictherapist\Menu.c s:line 81
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at
System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallba ck(IntPtr hWnd,
Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchM essageW(MSG& msg)
at
System.Windows.Forms.Application.ComponentManager. System.Windows.Forms.UnsafeNativeMethods.IMsoCompo nentManager.FPushMessageLoop(Int32
dwComponentID, Int32 reason, Int32 pvLoopData)
at
System.Windows.Forms.Application.ThreadContext.Run MessageLoopInner(Int32
reason, ApplicationContext context)
at
System.Windows.Forms.Application.ThreadContext.Run MessageLoop(Int32 reason,
ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at Therapist.Program.Main() in C:\Documents and Settings\tenille\My
Documents\Visual Studio
2005\Projects\Musictherapist\Musictherapist\Progra m.cs:line 17
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence
assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.Run UsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context( Object state)
at System.Threading.ExecutionContext.Run(ExecutionCon text
executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()