Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters

Please confirm you want to mark all posts read

Mark all topics read

sp_MobileMenu Actions
Avatar

New/Updated Topics

Select Forum

sp_TopicIcon
opcrcw.da.dll for 64 Bit?
Avatar
Carsten Buchloh
Posts: 1
09/15/2020 - 06:32

1

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

Avatar
Randy Armstrong
Posts: 1675
09/16/2020 - 06:03

2

The latest RCW is architecture independent:

2.01.108 Release OPC NET RCW (NuGet/ZIP)

https://opcfoundation.org/deve.....omponents/

You need to upgrade.

Avatar
Sheng Ji
Posts: 3
01/26/2021 - 18:56

3

Hi Carsten Buchloh,

Did you update opcrcw.da.dll?

How to use OpcComRcw.2.1.108.nupkg to get opcrcw.da.dll?

Avatar
EuroEager2008
Posts: 12
01/13/2023 - 06:07

4

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?

Avatar
Randy Armstrong
Posts: 1675
01/14/2023 - 17:18

5

You need to make sure you install the x64 version of the proxy stubs in Core Components (OPC Core Components Redistributable (x64) 3.00.108.msi).

Avatar
Johan Van den Broek
Posts: 1
01/26/2023 - 00:54

6

Randy Armstrong said
You need to make sure you install the x64 version of the proxy stubs in Core Components (OPC Core Components Redistributable (x64) 3.00.108.msi).

  

Thanks Randy, this worked for me!

Forum Timezone:
America/Phoenix
Most Users Ever Online: 1361
Currently Online:
Guest(s) 30
Currently Browsing this Page:
1 Guest(s)

Devices in use: Phone (3), Desktop (27)

Forum Stats:
Groups: 2
Forums: 10
Topics: 1523
Posts: 5149