PDA

View Full Version : Error when editing actions



MDSkiBum
December 23rd, 2007, 07:18 PM
I'm attempting to run Designer on Vista 64-bit, and any time I attempt to edit actions, I get an exception. The details from the exception are included below.

My limited research on this seems to indicate that this can be fixed by recompiling either the Designer exe and/or the ScintillaNET library with the /platform:x86 switch to force it into 32-bit compatibility mode.

Has anyone else used the designer on Vista 64? Is there another workaround?



See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
at Scintilla.ScintillaControl..ctor()
at com.promixis.Controls.PluginParameterLUA.Initializ eComponent()
at com.promixis.Controls.PluginParameterLUA..ctor()
at com.promixis.ActionForms.PluginActionForm..ctor(IN etRemotePluginActionWrapper pluginAction, NRIPluginAction curAction)
at com.promixis.Controls.ActionDesignerControl.AddAct ion(TreeNode node)
at com.promixis.Controls.ActionDesignerControl.treeVi ew1_MouseDown(Object sender, MouseEventArgs e)
at System.Windows.Forms.TreeView.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.TreeView.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1416 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
NRDesigner
Assembly Version: 1.1.0.45
Win32 Version: 1.1.0.45
CodeBase: file:///C:/Program%20Files%20(x86)/Promixis/NetRemote%20Designer/NRDesigner.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1416 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1416 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1416 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1416 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1416 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
NetRemoteControl
Assembly Version: 1.0.2810.23255
Win32 Version: 1.0.2810.23255
CodeBase: file:///C:/Program%20Files%20(x86)/Promixis/NetRemote%20Designer/NetRemoteControl.DLL
----------------------------------------
Interop.NetRemoteLibrary
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/Promixis/NetRemote%20Designer/Interop.NetRemoteLibrary.DLL
----------------------------------------
ICSharpCode.SharpZipLib
Assembly Version: 0.84.0.0
Win32 Version: 0.84.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/Promixis/NetRemote%20Designer/ICSharpCode.SharpZipLib.DLL
----------------------------------------
OwnerDrawnListView
Assembly Version: 1.0.1877.16258
Win32 Version: 1.0.1877.16258
CodeBase: file:///C:/Program%20Files%20(x86)/Promixis/NetRemote%20Designer/OwnerDrawnListView.DLL
----------------------------------------
Girder
Assembly Version: 1.0.2810.23253
Win32 Version: 1.0.2810.23253
CodeBase: file:///C:/Program%20Files%20(x86)/Promixis/NetRemote%20Designer/Girder.DLL
----------------------------------------
ScintillaNET
Assembly Version: 1.0.1918.19022
Win32 Version: 1.0.1918.19022
CodeBase: file:///C:/Program%20Files%20(x86)/Promixis/NetRemote%20Designer/ScintillaNET.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Rob H
December 24th, 2007, 05:32 AM
Looks like you should be able to use CorFlags.exe to do this as well without recompiling. It's not clear whether this utility comes with the .NET 2.0 Framework or whether you only get it with the SDK.

MDSkiBum
December 24th, 2007, 02:33 PM
You do have to get the SDK to get the CorFlags utility. I gave that a shot, and putting the 32-bit flag on NRDesigner.exe seems to have worked. Thanks Rob!

Rob H
December 24th, 2007, 05:34 PM
Great news and a good bit of detective work on your part in the first place.