none
Why is this EXP-file not found ? RRS feed

  • Question

  • Why is this TryStartRDP.exp not found in this code line ?

    Process.Start(Application.StartupPath.ToString() + "\\" + "TryStartRDP.exp",item.Text.ToString() + " 10");

    Here are a copy of the exception details:

    System.ComponentModel.Win32Exception was unhandled
      Message="Den angivne fil blev ikke fundet"                  <<<<<<<<<<<<<<<<<<<<< FIle not found - my translation
      Source="System"
      ErrorCode=-2147467259
      NativeErrorCode=2
      StackTrace:
           ved System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
           ved System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
           ved WakeOnLAN_3.Form1.button_SetOn_Click(Object sender, EventArgs e) i X:\2 - Månedskopi\01 Visual Studio 2008\Projects\WakeOnLAN 3\WakeOnLAN 3\Form1.cs:linje 141
           ved System.Windows.Forms.Control.OnClick(EventArgs e)
           ved System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
           ved System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
           ved System.Windows.Forms.Control.WndProc(Message& m)
           ved System.Windows.Forms.ButtonBase.WndProc(Message& m)
           ved System.Windows.Forms.Button.WndProc(Message& m)
           ved System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
           ved System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
           ved System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
           ved System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
           ved System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
           ved System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
           ved WakeOnLAN_3.Program.Main() i X:\2 - Månedskopi\01 Visual Studio 2008\Projects\WakeOnLAN 3\WakeOnLAN 3\Program.cs:linje 15
           ved System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
           ved Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
           ved System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
           ved System.Threading.ThreadHelper.ThreadStart()
      InnerException:

    I can SEE the file is there in the ...\debug\ folder !!!!!!!!!!!
    Wednesday, August 29, 2018 7:28 AM

Answers

All replies

  • Maybe you should write ".exe" instead of ".exp"?
    • Marked as answer by Ksor2 Wednesday, August 29, 2018 8:12 AM
    Wednesday, August 29, 2018 7:49 AM
  • Big thx !

    Ha, ha, OK I messed aroud with this - ofcause it should be exe !

    The eyes is what first gets blind - right ?
    Wednesday, August 29, 2018 8:09 AM