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.

System.TypeInitializationException without Visual C++ Redistribuable Package

More
09 Dec 2021 14:00 #10460 by support
Hello.

In such case you install the redistributable, and it works then. That's what the documentation is trying to tell you.

Regards

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

More
09 Dec 2021 13:53 #10459 by sistemi@resdata.it
"...a user can still install any of the above prerequisites..."

support wrote: Hello.
- opclabs.doc-that.com/files/onlinedocs/QuickOpc/2016.2/User%2...ml#Prerequisites%20Boxing.html


But without Visual C++ redistribuable package it doesn't work.

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

More
More
09 Dec 2021 09:46 #10451 by sistemi@resdata.it
Hi,
it seems that I can't get work my app OPC UA without the Visual C++ Redistribuable Package in the production environment.
QuickOPC version 2016.2

In the development environment I don't have any problem.
The documentation doesn't ask for this package, but without it doesn't work.

What's the right way to accomplish the deployment?

The full detailed exception

Error-System.TypeInitializationException: The type initializer for 'OpcLabs.EasyOpc.DataAccess.EasyDAClient' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'App_Web_OpcLabs.EasyOpcClassicRaw.x86.dll' or one of its dependencies. Impossibile trovare il modulo specificato.
+ It is possible that Microsoft Visual C++ Redistributable Package is not installed.
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.Load(String assemblyString)
at OpcLabs.EasyOpc.Implementations.Native.Assemblies.LoadRawAssembly(String name)
at OpcLabs.EasyOpc.Implementations.Native.Assemblies.get_EasyOpcClassicRaw()
at OpcLabs.EasyOpc.Implementations.Native.Assemblies.GetRawType(String name)
at OpcLabs.EasyOpc.Implementations.Native.DataAccess.NativeEasyDAClient.get_RawType()
at OpcLabs.EasyOpc.Implementations.Native.DataAccess.NativeEasyDAClient.set_AdaptableParameters(EasyDAAdaptableParameters value)
at OpcLabs.EasyOpc.DataAccess.EasyDAClient..cctor()
--- End of inner exception stack trace ---
at OpcLabs.EasyOpc.DataAccess.EasyDAClient.get_SharedParameters()
at TankService.AppServices.TankAppService.GetSondeWithOPCDA(String deposito, String server1, String namespaceServer1, String server2, String namespaceServer2, String& errMsg, List`1& errors)
at TankService.Workers.ImportaDatiSondeWorker.Work(IDaemonChecker source, WorkerArgs data)
System.IO.FileNotFoundException: Could not load file or assembly 'App_Web_OpcLabs.EasyOpcClassicRaw.x86.dll' or one of its dependencies. Impossibile trovare il modulo specificato.
+ It is possible that Microsoft Visual C++ Redistributable Package is not installed.
File name: 'App_Web_OpcLabs.EasyOpcClassicRaw.x86.dll'
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.Load(String assemblyString)
at OpcLabs.EasyOpc.Implementations.Native.Assemblies.LoadRawAssembly(String name)
at OpcLabs.EasyOpc.Implementations.Native.Assemblies.get_EasyOpcClassicRaw()
at OpcLabs.EasyOpc.Implementations.Native.Assemblies.GetRawType(String name)
at OpcLabs.EasyOpc.Implementations.Native.DataAccess.NativeEasyDAClient.get_RawType()
at OpcLabs.EasyOpc.Implementations.Native.DataAccess.NativeEasyDAClient.set_AdaptableParameters(EasyDAAdaptableParameters value)
at OpcLabs.EasyOpc.DataAccess.EasyDAClient..cctor()

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

Moderators: support
Time to create page: 0.053 seconds