.NET api: can't find opcnetapi.dll|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
.NET api: can't find opcnetapi.dll
Avatar
Carl Witty
New Member
Members
Forum Posts: 1
Member Since:
07/27/2016
sp_UserOfflineSmall Offline
1
08/12/2016 - 13:29
sp_Permalink sp_Print

I'm trying to write a C# program that's an OPC DA client.  From the searches I've done, the best (free) way to do that is with the OPC .NET API from the OPC foundation, which seems to consist of (from the sample code I've seen) a bunch of DLLs whose names start "OpcRcw...", as well as a couple of DLLs "OpcNetApi.dll" and "OpcNetApi.Com.dll".  And evidently the way to get these files is to download the "OPC .NET API" redistributables from the foundation.

However, when I download and install the ".NET API Redistributables" from https://opcfoundation.org/deve.....ibutables/ it installs the OpcRcw* DLLs, but it doesn't seem to install OpcNetApi.dll or OpcNetApi.Com.dll.

Am I missing something?  Is there a better way to write an OPC DA client in C#?  Where am I supposed to find OpcNetApi.dll and OpcNetApi.Com.dll?

Avatar
Guest
Guests
2
08/15/2016 - 07:50
sp_Permalink sp_Print

Hello,

I just checked the installer and the OpcNetApi.dll and OpcNetApi.Com.dll files should be stored in the GAC.

Avatar
Miguel Cid
Member
Members
Forum Posts: 6
Member Since:
05/20/2014
sp_UserOfflineSmall Offline
3
09/27/2016 - 09:33
sp_Permalink sp_Print

Hello Nathan,

I have installed the software under Windows Server 2012 R2 and when I search in the GAC both files they are missing.

The setup end succesfully but I can't find OpcNetApi.dll nor OpcNetApi.Com.dll.

Thank you for your support.

Avatar
Miguel Cid
Member
Members
Forum Posts: 6
Member Since:
05/20/2014
sp_UserOfflineSmall Offline
4
09/27/2016 - 09:34
sp_Permalink sp_Print

cwitty@newtonlabs.com said
I'm trying to write a C# program that's an OPC DA client.  From the searches I've done, the best (free) way to do that is with the OPC .NET API from the OPC foundation, which seems to consist of (from the sample code I've seen) a bunch of DLLs whose names start "OpcRcw...", as well as a couple of DLLs "OpcNetApi.dll" and "OpcNetApi.Com.dll".  And evidently the way to get these files is to download the "OPC .NET API" redistributables from the foundation.

However, when I download and install the ".NET API Redistributables" from https://opcfoundation.org/deve.....ibutables/ it installs the OpcRcw* DLLs, but it doesn't seem to install OpcNetApi.dll or OpcNetApi.Com.dll.

Am I missing something?  Is there a better way to write an OPC DA client in C#?  Where am I supposed to find OpcNetApi.dll and OpcNetApi.Com.dll?

Hello,

Have you found the solution for this?

Do you have the dll files?

Thank you.

Avatar
Alexander Suprunyuk
New Member
Members
Forum Posts: 1
Member Since:
10/18/2016
sp_UserOfflineSmall Offline
5
10/25/2016 - 01:44
sp_Permalink sp_Print

Hello All

Nathan Pocock said
Hello,

I just checked the installer and the OpcNetApi.dll and OpcNetApi.Com.dll files should be stored in the GAC.

It should be stored in the GAC, but ...  it doesn’t seem to install OpcNetApi.dll or OpcNetApi.Com.dll. I can't found them anywhere on my PC.

Here is content of C:\Windows\Microsoft.NET\assembly\GAC_MSIL\  for my PC (Windows 7 64-bit, SP1)

...

C:\Windows\Microsoft.NET\assembly\GAC_MSIL\msddsp
C:\Windows\Microsoft.NET\assembly\GAC_MSIL\OpcComRcw
C:\Windows\Microsoft.NET\assembly\GAC_MSIL\OpcRcw.Ae
C:\Windows\Microsoft.NET\assembly\GAC_MSIL\OpcRcw.Batch
C:\Windows\Microsoft.NET\assembly\GAC_MSIL\OpcRcw.Cmd
C:\Windows\Microsoft.NET\assembly\GAC_MSIL\OpcRcw.Comn
C:\Windows\Microsoft.NET\assembly\GAC_MSIL\OpcRcw.Da
C:\Windows\Microsoft.NET\assembly\GAC_MSIL\OpcRcw.Dx

C:\Windows\Microsoft.NET\assembly\GAC_MSIL\OpcRcw.Hda
C:\Windows\Microsoft.NET\assembly\GAC_MSIL\OpcRcw.Sec

C:\Windows\Microsoft.NET\assembly\GAC_MSIL\perfpkg

...

Have you found the solution for this?

 

Thank you.

Avatar
Ruggero De Pellegrini
New Member
Members
Forum Posts: 1
Member Since:
12/07/2016
sp_UserOfflineSmall Offline
6
12/12/2016 - 07:19
sp_Permalink sp_Print

Hello 

Same problem here. Anyone ready to help or any solution found?

Thanks!

Avatar
Guest
Guests
7
12/13/2016 - 07:51
sp_Permalink sp_Print sp_EditHistory

Hello everybody,

Sorry for the slow response.

I have ran a trace on the MSI and I can see that the files are not being deployed. I'm not sure why. I think the installers may be not correctly configured. Unfortunately, I do not have the capacity to troubleshoot this any further at this point. Could somebody else help out and work with me so that we can in fact update the deliverables that are available for download?

The complete source code package including the installers is available here: https://opcfoundation.org/deve.....e-code-cc/

Please email me any information, updates, fixes, and project updates etc. so that I can update our source control, and then rebuild the installers for testing.

Avatar
Wojtek Szczepka
New Member
Members
Forum Posts: 1
Member Since:
07/03/2015
sp_UserOfflineSmall Offline
8
01/08/2017 - 11:28
sp_Permalink sp_Print

Dear Sir,

The access to the https://opcfoundation.org/deve.....e-code-cc/ is only possible to corporate account type. To help solve problem, i need the access to this link... Can You enable the access to this link also for the "registered user type" account?

Wojtek.

Avatar
Sam Sam Pearson
Member
Members
Forum Posts: 3
Member Since:
02/21/2017
sp_UserOfflineSmall Offline
9
02/21/2017 - 14:53
sp_Permalink sp_Print

Running into the same problem.  Any updates?

Avatar
Randy Armstrong (Sparhawk)
Member
Members
Forum Posts: 20
Member Since:
05/12/2015
sp_UserOfflineSmall Offline
10
02/23/2017 - 10:20
sp_Permalink sp_Print

The OpcRcw*.* files are for .NET 1.1 applications and it is unlikely that anyone needs them now.

The OpcNetApi DLLs are for .NET 2.0/.NET3.5 and if they are not getting installed it is likely because .NET 2.0 is not installed on the system.

Can you please confirm that .NET Framework 3.5/2.0 is installed on systems where these DLLs are missing?
Note that each version of Windows has a different way to install it.
In Windows 10 you need to add/remove Windows features.
In Windows 7 there is a file to download.

Avatar
Sam Sam Pearson
Member
Members
Forum Posts: 3
Member Since:
02/21/2017
sp_UserOfflineSmall Offline
11
02/23/2017 - 16:08
sp_Permalink sp_Print

I have .NET 4.6.2 installed, so I can't install .NET 3.5 or 2.0.  It should be backwards compatible with them, though, right?

Avatar
Zbynek Zahradnik
Member
Members
Forum Posts: 62
Member Since:
02/24/2014
sp_UserOfflineSmall Offline
12
02/23/2017 - 23:55
sp_Permalink sp_Print sp_EditHistory

I have found that some installers from OPC Foundation refuse to run, or silently skip installation of some files, if .NET Framework 2.0 or 3.5 is not present. And they do so even in presence of backward-compatible, higher .NET Framework versions.

Avatar
Sam Sam Pearson
Member
Members
Forum Posts: 3
Member Since:
02/21/2017
sp_UserOfflineSmall Offline
13
02/27/2017 - 12:52
sp_Permalink sp_Print

Ok.  That sucks.  Is there any freely or cheaply available DF1 .NET library for Allen-Bradley PLCs, and/or are there .NET numeric input and toggle controls available somewhere?

We have successfully communicated with an Allen-Bradley PLC using Modbus, but want to use DF1 instead, so that it supports 32-bit values and counter and other register (besides the ones that get mapped to Modbus holding registers) reading and writing.

Avatar
Randy Armstrong (Sparhawk)
Member
Members
Forum Posts: 20
Member Since:
05/12/2015
sp_UserOfflineSmall Offline
14
03/05/2017 - 08:04
sp_Permalink sp_Print

sam@carecontrols.com said
I have .NET 4.6.2 installed, so I can't install .NET 3.5 or 2.0.  It should be backwards compatible with them, though, right?  

No. 3.5 and 4.X can be installed side by side on the same system but you need to do it explicitly.

As I mention there is a '.net 3.5 windows feature' that you can add in Windows 10 so it is easy to do.

Avatar
Rob Richardson
Member
Members
Forum Posts: 3
Member Since:
07/28/2015
sp_UserOfflineSmall Offline
15
03/16/2017 - 10:13
sp_Permalink sp_Print

Has there been a resolution of this issue?  I would like to be able to use the official OPC Foundation libraries, but as others have stated, the files are not in my GAC.

Rob Richardson

Avatar
Randy Armstrong (Sparhawk)
Member
Members
Forum Posts: 20
Member Since:
05/12/2015
sp_UserOfflineSmall Offline
16
03/16/2017 - 10:36
sp_Permalink sp_Print

The resolution should be to make sure .NET 3.5/2.0 is installed on your system before using the OPC-F supplied MSIs or MSMs.

Avatar
Rob Richardson
Member
Members
Forum Posts: 3
Member Since:
07/28/2015
sp_UserOfflineSmall Offline
17
03/16/2017 - 10:52
sp_Permalink sp_Print

I have .Net 2.0, 3.5, 4.0 and 4.5 installed for both 32 bits and 64 bits.

RobR

Avatar
Pere ---
New Member
Members
Forum Posts: 2
Member Since:
09/11/2015
sp_UserOfflineSmall Offline
18
05/20/2017 - 06:02
sp_Permalink sp_Print

Hello,

Has there been a resolution of this problem? I have .NET 2.0, 3.0, 3.5 and 4.6.2 installed. I installed .NET API Redistributables (https://opcfoundation.org/deve.....ibutables/) but I do not see OpcNetApi.dll or OpcNetApi.Com.dll anywhere.

Thank you in advance

Avatar
Randy Armstrong (Sparhawk)
Member
Members
Forum Posts: 20
Member Since:
05/12/2015
sp_UserOfflineSmall Offline
19
05/20/2017 - 13:19
sp_Permalink sp_Print

Sorry, I submitted a request to the OPC-F to post the DLLs in a ZIP because the installer clearly has issues.

If you can find any machine where the install works you can put the DLLs in the same DIR as your app and everything should work.

I will follow up on that ZIP.

Avatar
iravelo
New Member
Members
Forum Posts: 1
Member Since:
09/08/2015
sp_UserOfflineSmall Offline
20
05/20/2017 - 14:27
sp_Permalink sp_Print

I ran the installer using this command:

msiexec /i OPC .NET API 4.5 Redistributables.msi /L* log.txt

I found some error in the log:

Info 2898.For VSI_MS_Sans_Serif13.0_0_0 textstyle, the system created a 'MS Sans Serif' font, in 0 character set, of 13 pixels height.
DEBUG: Error 2826:  Control BannerBmp on dialog EulaForm extends beyond the boundaries of the dialog to the right by 3 pixels
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2826. The arguments are: EulaForm, BannerBmp, to the right

Anyway, it's possible to copy the DLLs from this project:

https://sourceforge.net/projec.....p_redirect

Download the file, unzip, and look for the DLLs in AdvancedHMIDrivers\Support\OPC.

In Visual Studio, add a folder, put the DLLs inside, add references in the project to the files (browse and locate the DLLs).

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 37
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1435
Posts: 4855