467,907 Members | 1,426 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,907 developers. It's quick & easy.

Strange Error : Open File Dialog

Hello Gurus,
i implemented the OpenFileDialog in my Windows Form Applications and it worked perfectly fine.However when it was run on a remote desktop i got the below error .
rt now im not sure where the problem is . is it something to do with any dll file which i need to include. if yes could u suggest me which dll files are involved in the open file dialog?

thank u in advance



Expand|Select|Wrap|Line Numbers
  1. See the end of this message for details on invoking 
  2. just-in-time (JIT) debugging instead of this dialog box.
  3.  
  4. ************** Exception Text **************
  5. System.MissingMethodException: Method not found: 'System.String[] System.Windows.Forms.OpenFileDialog.get_SafeFileNames()'.
  6.    at PepmanAdmin.Form1.button4_MouseClick(Object sender, MouseEventArgs e)
  7.    at System.Windows.Forms.Control.OnMouseClick(MouseEventArgs e)
  8.    at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
  9.    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
  10.    at System.Windows.Forms.Control.WndProc(Message& m)
  11.    at System.Windows.Forms.ButtonBase.WndProc(Message& m)
  12.    at System.Windows.Forms.Button.WndProc(Message& m)
  13.    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
  14.    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
  15.    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
  16.  
  17.  
  18. ************** Loaded Assemblies **************
  19. mscorlib
  20.     Assembly Version: 2.0.0.0
  21.     Win32 Version: 2.0.50727.832 (QFE.050727-8300)
  22.     CodeBase: file:///C:/WINNT/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
  23. ----------------------------------------
  24. PepmanAdmin
  25.     Assembly Version: 1.0.3162.23072
  26.     Win32 Version: 1.0.3162.23072
  27.     CodeBase: file:///C:/Program%20Files/Siemens%20AG/PepMan%20Admin%20Installer/PepmanAdmin.exe
  28. ----------------------------------------
  29. System.Windows.Forms
  30.     Assembly Version: 2.0.0.0
  31.     Win32 Version: 2.0.50727.832 (QFE.050727-8300)
  32.     CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
  33. ----------------------------------------
  34. System
  35.     Assembly Version: 2.0.0.0
  36.     Win32 Version: 2.0.50727.832 (QFE.050727-8300)
  37.     CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
  38. ----------------------------------------
  39. System.Drawing
  40.     Assembly Version: 2.0.0.0
  41.     Win32 Version: 2.0.50727.832 (QFE.050727-8300)
  42.     CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
  43. ----------------------------------------
  44. System.Web.Services
  45.     Assembly Version: 2.0.0.0
  46.     Win32 Version: 2.0.50727.42 (RTM.050727-4200)
  47.     CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll
  48. ----------------------------------------
  49. System.Xml
  50.     Assembly Version: 2.0.0.0
  51.     Win32 Version: 2.0.50727.832 (QFE.050727-8300)
  52.     CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
  53. ----------------------------------------
  54. System.Configuration
  55.     Assembly Version: 2.0.0.0
  56.     Win32 Version: 2.0.50727.832 (QFE.050727-8300)
  57.     CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
  58. ----------------------------------------
  59. ymuazfsw
  60.     Assembly Version: 1.0.3162.23072
  61.     Win32 Version: 2.0.50727.832 (QFE.050727-8300)
  62.     CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
  63. ----------------------------------------
  64. Microsoft.JScript
  65.     Assembly Version: 8.0.0.0
  66.     Win32 Version: 8.0.50727.832
  67.     CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/Microsoft.JScript/8.0.0.0__b03f5f7f11d50a3a/Microsoft.JScript.dll
  68. ----------------------------------------
  69.  
  70. ************** JIT Debugging **************
  71. To enable just-in-time (JIT) debugging, the .config file for this
  72. application or computer (machine.config) must have the
  73. jitDebugging value set in the system.windows.forms section.
  74. The application must also be compiled with debugging
  75. enabled.
  76.  
  77. For example:
  78.  
  79. <configuration>
  80.     <system.windows.forms jitDebugging="true" />
  81. </configuration>
  82.  
  83. When JIT debugging is enabled, any unhandled exception
  84. will be sent to the JIT debugger registered on the computer
  85. rather than be handled by this dialog box.
Sep 3 '08 #1
  • viewed: 2982
Share:
4 Replies
Plater
Expert 4TB
Sounds like they do not have the correct version of .NET on the remote machine?
Sep 3 '08 #2
balabaster
Expert 512MB
Sounds like they do not have the correct version of .NET on the remote machine?
Oh, I think I missed the point - I interpreted that it was running on the remote machine when run interactively - just not when run over remote desktop? Is that not right?
Sep 3 '08 #3
Hello,
Firstly the build worked fine in both debug and release modus. Then i installed the setup.exe file from the Release in the remote maschine. However there is no Visual Studio on the remote maschine and its a Windows form application.

probably this info might help
Sep 4 '08 #4
balabaster
Expert 512MB
Hello,
Firstly the build worked fine in both debug and release modus. Then i installed the setup.exe file from the Release in the remote maschine. However there is no Visual Studio on the remote maschine and its a Windows form application.

probably this info might help
Chances are then, as Plater said... either the .NET framework isn't installed, or the correct version of the .NET framework isn't installed on the remote machine that the software is being installed on.
Sep 4 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 posts views Thread by Peter Frost | last post: by
3 posts views Thread by GrantS | last post: by
1 post views Thread by Shrishail Rana | last post: by
4 posts views Thread by Praveen_db2 | last post: by
6 posts views Thread by Eric_Dexter | last post: by
1 post views Thread by =?Utf-8?B?cnNvbWFzdW5kYXI=?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.