Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4356

'OdbcWrapper.Class1' threw an exception

$
0
0

HI,

Winform application developed using visual cobol crashes with below exception when run from windows 7 machine, but works good when run from windows 2012 server.

Only programs with ODBC connection are having this issue, rest of the other programs are working as expected in win 7 box.

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

************** Exception Text **************
System.TypeInitializationException: The type initializer for 'OdbcWrapper.Class1' threw an exception. ---> System.ArgumentNullException: Value cannot be null.
Parameter name: path1
at System.IO.Path.Combine(String path1, String path2)
at MicroFocus.COBOL.Runtime.Win32.PlatformAbstraction.LoadLibrary(String nativeLibrary)
at MicroFocus.COBOL.Program.ExportedSymbols.Check(MethodInfo[] globalMethods)
at MicroFocus.COBOL.Runtime.Common.ClassInfo..ctor(Type programClass)
at MicroFocus.COBOL.Runtime.Common.Global.AddProgramClass(Type programClass)
at MicroFocus.COBOL.Program.Control.Init(RuntimeTypeHandle rth)
at OdbcWrapper.Class1..cctor()
--- End of inner exception stack trace ---
at OdbcWrapper.Class1..ctor()
at WI210WRP.WI210CLS._MF_PERFORM_2526_1(_MF_LCTYPE_2& _MF_LCDATA)
at WI210WRP.WI210CLS.BusinessLayer210(String CLS210)
at WI210.WI210SCR.WI210SCR_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
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.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(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: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
WI210
Assembly Version: 1.0.0.0
Win32 Version: 0.0.0.0
CodeBase: file://testtaris/Taris/WI210.exe
----------------------------------------
MicroFocus.COBOL.Runtime
Assembly Version: 4.0.0.0
Win32 Version: 02200.02006.0.68
CodeBase: file://testtaris/Taris/MicroFocus.COBOL.Runtime.DLL
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
MicroFocus.COBOL.Runtime.Win32
Assembly Version: 4.0.0.0
Win32 Version: 02200.02006.0.68
CodeBase: file://testtaris/Taris/MicroFocus.COBOL.Runtime.Win32.DLL
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
MicroFocus.COBOL.Tracing
Assembly Version: 4.0.0.0
Win32 Version: 02200.02006.0.68
CodeBase: file://testtaris/Taris/MicroFocus.COBOL.Tracing.DLL
----------------------------------------
MicroFocus.COBOL.Tracing.Win32
Assembly Version: 4.0.0.0
Win32 Version: 02200.02006.0.68
CodeBase: file://testtaris/Taris/MicroFocus.COBOL.Tracing.Win32.DLL
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
WI210WRP
Assembly Version: 1.0.0.0
Win32 Version: 0.0.0.0
CodeBase: file://testtaris/Taris/WI210WRP.DLL
----------------------------------------
MicroFocus.COBOL.Sql.Loadrts
Assembly Version: 4.0.0.0
Win32 Version: 02200.02006.0.1
CodeBase: file://testtaris/Taris/MicroFocus.COBOL.Sql.Loadrts.DLL
----------------------------------------
Microfocus.COBOL.Sql.OdbcWrapper
Assembly Version: 4.0.0.0
Win32 Version: 02200.02006.0.1
CodeBase: file://testtaris/Taris/Microfocus.COBOL.Sql.OdbcWrapper.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.


Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>