Professional OPC
Development Tools

logos

Online Forums

Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.

Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.

Do not use the Contact page for technical issues.

Exception when running our release program

More
02 Mar 2024 20:16 #12611 by micham
Hi,

The problem is solved. You may ignore this question.

Thanks.

Michael

Please Log in or Create an account to join the conversation.

More
02 Mar 2024 18:49 #12610 by micham
Hi,
We are using version 2024.1.
When I run my program in Debug mode, it runs fine. When running the release program, I get an exception. See Below.



Any idea what is causing this exception?

Exception details:
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 'UCMECFG.Module1' threw an exception. ---> System.TypeInitializationException: The type initializer for 'OpcLabs.EasyOpc.DataAccess.Forms.Browsing.DADialog' threw an exception. ---> System.IO.FileLoadException: Could not load file or assembly 'System.Diagnostics.DiagnosticSource, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
at Microsoft.Extensions.Hosting.HostBuilder.Build()
at OpcLabs.BaseLib.Extensions.Hosting.StaticHost.CreateHost()
at System.Lazy`1.CreateValue()
at System.Lazy`1.LazyInitValue()
at System.Lazy`1.get_Value()
at OpcLabs.BaseLib.Extensions.Hosting.StaticHost.GetConfiguration()
at OpcLabs.EasyOpc.DataAccess.Forms.Browsing.DADialog..cctor()
--- End of inner exception stack trace ---
at OpcLabs.EasyOpc.DataAccess.Forms.Browsing.DADialog..ctor()
at OpcLabs.EasyOpc.DataAccess.Forms.Browsing.DAItemDialog..ctor()
at UCMECFG.Module1..cctor()
--- End of inner exception stack trace ---
at UCMECFG.Form1.Form1_Load(Object sender, EventArgs e)
at System.EventHandler.Invoke(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.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.8.9181.0 built by: NET481REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
UCMECFG
Assembly Version: 2024.100.0.0
Win32 Version: 2024.100.0.0
CodeBase: file:///F:/Program%20Files%20(x86)/Control-See/UCME-OPC/BIN/UCMECFG.EXE
Microsoft.VisualBasic
Assembly Version: 10.0.0.0
Win32 Version: 14.8.9037.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
System
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9220.0 built by: NET481REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9220.0 built by: NET481REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9181.0 built by: NET481REL1LAST_C
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.8.9037.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9037.0 built by: NET481REL1
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.8.9037.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
System.Runtime.Remoting
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9214.0 built by: NET481REL1LAST_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
System.ServiceProcess
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9037.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ServiceProcess/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.ServiceProcess.dll
OpcLabs.EasyOpcForms
Assembly Version: 5.80.75.1
Win32 Version: 5.80.75.1
CodeBase: file:///F:/Program%20Files%20(x86)/Control-See/UCME-OPC/BIN/OpcLabs.EasyOpcForms.DLL
OpcLabs.BaseLibForms
Assembly Version: 5.80.75.1
Win32 Version: 5.80.75.1
CodeBase: file:///F:/Program%20Files%20(x86)/Control-See/UCME-OPC/BIN/OpcLabs.BaseLibForms.DLL
OpcLabs.BaseLib
Assembly Version: 5.80.75.1
Win32 Version: 5.80.75.1
CodeBase: file:///F:/Program%20Files%20(x86)/Control-See/UCME-OPC/BIN/OpcLabs.BaseLib.DLL
System.Xml.Linq
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9037.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
Microsoft.Extensions.DependencyInjection.Abstractions
Assembly Version: 6.0.0.0
Win32 Version: 6.0.21.52210
CodeBase: file:///F:/Program%20Files%20(x86)/Control-See/UCME-OPC/BIN/Microsoft.Extensions.DependencyInjection.Abstractions.DLL
OpcLabs.EasyOpcClassic
Assembly Version: 5.80.75.1
Win32 Version: 5.80.75.1
CodeBase: file:///F:/Program%20Files%20(x86)/Control-See/UCME-OPC/BIN/OpcLabs.EasyOpcClassic.DLL
OpcLabs.EasyOpcClassicCore
Assembly Version: 5.80.75.1
Win32 Version: 5.80.75.1
CodeBase: file:///F:/Program%20Files%20(x86)/Control-See/UCME-OPC/BIN/OpcLabs.EasyOpcClassicCore.DLL
Microsoft.Extensions.Configuration.Abstractions
Assembly Version: 6.0.0.0
Win32 Version: 6.0.21.52210
CodeBase: file:///F:/Program%20Files%20(x86)/Control-See/UCME-OPC/BIN/Microsoft.Extensions.Configuration.Abstractions.DLL
Microsoft.Extensions.Hosting.Abstractions
Assembly Version: 6.0.0.0
Win32 Version: 6.0.21.52210
CodeBase: file:///F:/Program%20Files%20(x86)/Control-See/UCME-OPC/BIN/Microsoft.Extensions.Hosting.Abstractions.DLL
Microsoft.Extensions.Hosting
Assembly Version: 6.0.0.0
Win32 Version: 6.0.21.52210
CodeBase: file:///F:/Program%20Files%20(x86)/Control-See/UCME-OPC/BIN/Microsoft.Extensions.Hosting.DLL
Microsoft.Extensions.DependencyInjection
Assembly Version: 6.0.0.0
Win32 Version: 6.0.21.52210
CodeBase: file:///F:/Program%20Files%20(x86)/Control-See/UCME-OPC/BIN/Microsoft.Extensions.DependencyInjection.DLL
Microsoft.Extensions.Logging
Assembly Version: 6.0.0.0
Win32 Version: 6.0.21.52210
CodeBase: file:///F:/Program%20Files%20(x86)/Control-See/UCME-OPC/BIN/Microsoft.Extensions.Logging.DLL
Xceed.Zip.v6.3
Assembly Version: 6.3.17281.13580
Win32 Version: 6.3.17281.13580
CodeBase: file:///F:/Program%20Files%20(x86)/Control-See/UCME-OPC/BIN/Xceed.Zip.v6.3.DLL
OpcLabs.EasyOpcUAComponents
Assembly Version: 5.80.75.1
Win32 Version: 5.80.75.1
CodeBase: file:///F:/Program%20Files%20(x86)/Control-See/UCME-OPC/BIN/OpcLabs.EasyOpcUAComponents.DLL
OpcLabs.EasyOpcUA
Assembly Version: 5.80.75.1
Win32 Version: 5.80.75.1
CodeBase: file:///F:/Program%20Files%20(x86)/Control-See/UCME-OPC/BIN/OpcLabs.EasyOpcUA.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.

Thanks.

Michael
Attachments:

Please Log in or Create an account to join the conversation.

Moderators: support
Time to create page: 0.101 seconds