09/15/2020
Hi from Germany,
I have to update some OPC samples, written in C# and Visual Basic for .Net.
These older .Net samples, using OPC DA, are compiled for x86 and they are running with the following DLL:
opcrcw.da.dll (Version 3.0.101.0, Description: OPC Data Access 3.00 .NET Wrapper)
The opcrcw.da.dll is a 32 bit DLL.
The task is to compile the samples for x64 (or AnyCPU).
Question:
Is the opcrcw.da.dll available for 64 bit?
If yes, where?
Thanks a lot,
Carsten
05/30/2017
The latest RCW is architecture independent:
2.01.108 | Release | OPC NET RCW (NuGet/ZIP) |
https://opcfoundation.org/deve…..omponents/
You need to upgrade.
11/23/2014
sji2@ra.rockwell.com said
Hi Carsten Buchloh,Did you update opcrcw.da.dll?
How to use OpcComRcw.2.1.108.nupkg to get opcrcw.da.dll?
Randy Armstrong said
The latest RCW is architecture independent:
2.01.108 Release OPC NET RCW (NuGet/ZIP) https://opcfoundation.org/deve…..omponents/
You need to upgrade.
Using 2.01.109.57 from a console compiled with Any CPU or x64 and it fails, working ok if console is x86.
Code as:
Type comServerType = Type.GetTypeFromProgID(“SomeOPCDAServerProgId”);
comServer = (OpcRcw.Da.IOPCServer)Activator.CreateInstance(comServerType);
Last line throws:
System.InvalidCastException
HResult=0x80004002
Message=Unable to cast COM object of type ‘System.__ComObject’ to interface type ‘OpcRcw.Da.IOPCServer’. This operation failed because the QueryInterface call on the COM component for the interface with IID ‘{39C13A4D-011E-11D0-9675-0020AFD8ADB3}’ failed due to the following error: Class not registered (0x80040154 (REGDB_E_CLASSNOTREG)).
I cannot find the interface in registry other than (for IOPCServer):
Computer\HKEY_CLASSES_ROOT\WOW6432Node\Interface\{39C13A4D-011E-11D0-9675-0020AFD8ADB3}
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\WOW6432Node\Interface\{39C13A4D-011E-11D0-9675-0020AFD8ADB3}
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Classes\Interface\{39C13A4D-011E-11D0-9675-0020AFD8ADB3}
Should they have been registered in Computer\HKEY_CLASSES_ROOT\Interface as well? By the server installation?
1 Guest(s)