opcrcw.da.dll for 64 Bit?|Classic OPC: DA, A&E, HDA, XML-DA, etc.|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
opcrcw.da.dll for 64 Bit?
Avatar
Carsten Buchloh
New Member
Members
Forum Posts: 1
Member Since:
09/15/2020
sp_UserOfflineSmall Offline
1
09/15/2020 - 06:32
sp_Permalink sp_Print

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
Admin
Forum Posts: 1438
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
09/16/2020 - 06:03
sp_Permalink sp_Print

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
Member
Members
Forum Posts: 3
Member Since:
07/30/2019
sp_UserOfflineSmall Offline
3
01/26/2021 - 18:56
sp_Permalink sp_Print

Hi Carsten Buchloh,

Did you update opcrcw.da.dll?

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

Avatar
EuroEager2008
Member
Members
Forum Posts: 12
Member Since:
11/23/2014
sp_UserOfflineSmall Offline
4
01/13/2023 - 06:07
sp_Permalink sp_Print

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
Admin
Forum Posts: 1438
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
5
01/14/2023 - 17:18
sp_Permalink sp_Print

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
New Member
Members
Forum Posts: 1
Member Since:
05/16/2014
sp_UserOfflineSmall Offline
6
01/26/2023 - 00:54
sp_Permalink sp_Print

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: 510
Currently Online: CATALDO CAVALLO
Guest(s) 24
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1341
Posts: 4545