This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Z-Tool 2.0 Script Load fail



Hi there,

I tried to load a script from the Z-tool script window and I got below error: 

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

************** Exception Text **************
System.MissingMethodException: Method not found: 'System.String System.Windows.Forms.OpenFileDialog.get_SafeFileName()'.
at TI.ZTool.FormScript.menuItemLoad_Click(Object sender, EventArgs e)
at System.Windows.Forms.MenuItem.OnClick(EventArgs e)
at System.Windows.Forms.MenuItem.MenuItemData.Execute()
at System.Windows.Forms.Command.Invoke()
at System.Windows.Forms.Command.DispatchID(Int32 id)
at System.Windows.Forms.Control.WmCommand(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.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.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///E:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Z-Tool
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Texas%20Instruments/ZStack-CC2530-2.5.1a/Tools/Z-Tool/Z-Tool%202.0.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///E:/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.42 (RTM.050727-4200)
CodeBase: file:///E:/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.42 (RTM.050727-4200)
CodeBase: file:///E:/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.42 (RTM.050727-4200)
CodeBase: file:///E:/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.42 (RTM.050727-4200)
CodeBase: file:///E:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
TI.ZPortLib
Assembly Version: 0.0.3.0
Win32 Version: 0.0.3.0
CodeBase: file:///C:/Texas%20Instruments/ZStack-CC2530-2.5.1a/Tools/Z-Tool/TI.ZPortLib.DLL
----------------------------------------
TI.ZPI
Assembly Version: 1.0.1.0
Win32 Version:
CodeBase: file:///C:/Texas%20Instruments/ZStack-CC2530-2.5.1a/Tools/Z-Tool/TI.ZPI.DLL
----------------------------------------
TI.ZCmdMatchings
Assembly Version: 1.0.1.0
Win32 Version:
CodeBase: file:///C:/Texas%20Instruments/ZStack-CC2530-2.5.1a/Tools/Z-Tool/TI.ZCmdMatchings.DLL
----------------------------------------
TI.ZScript
Assembly Version: 1.0.4336.15295
Win32 Version: 1.0.4336.15295
CodeBase: file:///C:/Texas%20Instruments/ZStack-CC2530-2.5.1a/Tools/Z-Tool/TI.ZScript.DLL
----------------------------------------
TI.CommonLib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Texas%20Instruments/ZStack-CC2530-2.5.1a/Tools/Z-Tool/TI.CommonLib.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.

Any help is welcome.

Thanks

  • Okay, found the problem by myself.

    I have MS .net 1.1, 2.0 and 4.0 installed for some reason.

    I uninstalled all of them, and then installed the .net 4.0, but Z-Tool can not even start.

    Then I installed the .net 2.0Sp2. After that, everything goes well.

  • Hi, in my case  z-tool works well but when I try to execute SAMPLE jscript shows several errors

    Error: Declaration expected.
    File: C:\Texas Instruments\ZStack-1.4.3-1.2.0\Tools\Z-Tool\Sample.js
    Line: 1
    Source: import System;

    Error: Declaration expected.
    File: C:\Texas Instruments\ZStack-1.4.3-1.2.0\Tools\Z-Tool\Sample.js
    Line: 1
    Source: import TI.ZPI1;



    *** COMPILE TIME ERROR **


    SOMEONE know the origin of these ERRORS?