All pastes #925272 Raw Edit

Miscellany

public text v1 · immutable
·published 2008-03-02 06:05 UTC
rendered paste body
System.TypeInitializationException was unhandled
  Message="The type initializer for 'Remote_Control.Config' threw an exception."
  Source="Remote Control"
  TypeName="Remote_Control.Config"
  StackTrace:
       at Remote_Control.Config.Save[T](T myObject)
       at Remote_Control.Form1.serializeButton_Click(Object sender, EventArgs e) in C:\Documents and Settings\Jeremy\My Documents\Visual Studio 2008\Projects\Remote Control\Remote Control\Form1.cs:line 198
       at System.Windows.Forms.Control.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs 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.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.Run(Form mainForm)
       at Remote_Control.Program.Main() in C:\Documents and Settings\Jeremy\My Documents\Visual Studio 2008\Projects\Remote Control\Remote Control\Program.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.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException: System.IO.DirectoryNotFoundException
       Message="Could not find a part of the path 'C:\\Documents and Settings\\Jeremy\\My Documents\\Visual Studio 2008\\Projects\\Remote Control\\Remote Control\\bin\\Debug\\Remote Control.EXE\\remoteconfig.xml'."
       Source="mscorlib"
       StackTrace:
            at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
            at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
            at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
            at System.IO.StreamWriter.CreateFile(String path, Boolean append)
            at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)
            at System.IO.StreamWriter..ctor(String path)
            at Remote_Control.Config..cctor() in C:\Documents and Settings\Jeremy\My Documents\Visual Studio 2008\Projects\Remote Control\Remote Control\Config.cs:line 20
       InnerException: