2014-05-19 52 views
1

我得到這個異常:System.BadImageFormatException was unhandled每當我嘗試運行我的電腦上編譯的程序。我在筆記本電腦上運行Okuma PC Sim軟件。
即使我打開並編譯API附帶的API測試應用程序,也會發生這種情況。
以下是異常的詳細信息:System.BadImageFormatException在PC上運行PC Sim軟件

System.BadImageFormatException was unhandled 
    Message= is not a valid Win32 application. (Exception from HRESULT: 0x800700C1) 
    Source=thincLathe 
    StackTrace: 
     at thincLathe.frmMain.Form1_Load(Object sender, EventArgs e) 
     at System.Windows.Forms.Form.OnLoad(EventArgs e) 
     at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) 
     at System.Windows.Forms.Control.CreateControl() 
     at System.Windows.Forms.Control.WmShowWindow(Message& m) 
     at System.Windows.Forms.Control.WndProc(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) 

回答