OPC DA .NET Server : Wrapper process is not registering|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
OPC DA .NET Server : Wrapper process is not registering
Avatar
Manohar Kumar
New Member
Members
Forum Posts: 1
Member Since:
07/20/2016
sp_UserOfflineSmall Offline
1
07/20/2016 - 22:27
sp_Permalink sp_Print sp_EditHistory

Hi.

I have download the OPC DA source then run the run source code in VS2013. 

 

With Command line Arguments: "-rx DefaultRegistration.xml" Command Line arguments in "OPC .NET OPC Server Configuration Tool" solution 

The .NET server wrapper does not implement any OPC interfaces.
at Opc.ConfigTool.RegisteredDotNetOpcServer.Register() in d:\OPC DA Wrapper\Source\NET API\Sample Server\ConfigTool\Classes\RegisteredDotNetOpcServer.cs:line 342 at Opc.ConfigTool.RegisteredDotNetOpcServer.Import(String filepath, Boolean register) in d:\OPC DA Wrapper\Source\NET API\Sample Server\ConfigTool\Classes\RegisteredDotNetOpcServer.cs:line 150 at Opc.ConfigTool.Program.ProcessCommandLine() in d:\OPC DA Wrapper\Source\NET API\Sample Server\ConfigTool\Program.cs:line 153

 

Without Command line Arguments: 

  1. Click on "Task" -> opens "Register .NET OPC Server dialog" -> then click on "Browse" button select "OpcDaSampleServer.dll" from "OPC .NET API Sample Data Access Server" solution.
  2. Shows "Wrapper Process" and Description fields are empty
  3. Click on "OK" button shows below Error

No wrapper process selected.
at Opc.ConfigTool.RegisterServerDlg.OkBTN_Click(Object sender, EventArgs e) in d:\OPC DA Wrapper\Source\NET API\Sample Server\ConfigTool\Controls\RegisterServerDlg.cs:line 149

Avatar
Alberto Corral
New Member
Members
Forum Posts: 1
Member Since:
05/06/2014
sp_UserOfflineSmall Offline
2
06/19/2017 - 05:14
sp_Permalink sp_Print sp_EditHistory

I have fixed this issue. 

 I'm using VS2013 in Windows 2012 R2.

You should register "OPC Da Server Wrapper.exe" first. 

1.- Search for binnary file in your folders and execute:

"OPC DA Server Wrapper.exe" -RegServer

2.- Then open Opc.Config.Tool.exe and register the library OpcDaSampleServer.dll. Files "OpcDaWrapper.config.xml" and "OpcDaWrapper.device.xml" should be in the same folder.

Avatar
Michael Koch
Member
Members
Forum Posts: 3
Member Since:
09/20/2019
sp_UserOfflineSmall Offline
3
09/27/2019 - 01:08
sp_Permalink sp_Print

Hi, I've got the same problem. But additionally I don't  know where to get the wrapper.
This (https://opcfoundation.org/deve.....on-wrapper) automation wrapper is probably wrong and requires .NET Framework 1.1.4322.
I started with "opc-net-api-sample-clients-2.01.107-20180130.zip" and also executed "OPC Core Components Redistributable (x64) 3.00.107.msi".

Where do I get the wrapper?

Avatar
Randy Armstrong
Admin
Forum Posts: 1564
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
4
09/27/2019 - 07:24
sp_Permalink sp_Print

The COM .NET wrapper libraries are sample code only available to OPC Foundation Corporate Members.

Avatar
Michael Koch
Member
Members
Forum Posts: 3
Member Since:
09/20/2019
sp_UserOfflineSmall Offline
5
09/30/2019 - 02:09
sp_Permalink sp_Print

Mindbit is the latest member. I searched again but did not find anything. Even the documentation I found, did not push me forward. 

In "opc-net-api-sample-clients-2.01.107-20180130.zip" there is a "OPC NET API.sln" which contains a "OPC NET COM Wrapper (Net40)" project with a "OpcCom.Da.Wrapper.Server.cs" class. That sounds good but "OPC NET COM Wrapper (Net40)" is just a library. 

Is there any documentation that can help me? The "NET API\Docs\" gave me no clue.

Avatar
Randy Armstrong
Admin
Forum Posts: 1564
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
6
09/30/2019 - 14:49
sp_Permalink sp_Print

The .NET sample server requires a C++ wrapper EXE which is part of this package:

https://opcfoundation.org/deve.....e-servers/

Unfortunately, the wrapper EXE is still VS2008 and has not been tested with the latest .NET framework. That said, there no known reason that would cause a failure after the upgrade.

Avatar
Michael Koch
Member
Members
Forum Posts: 3
Member Since:
09/20/2019
sp_UserOfflineSmall Offline
7
10/01/2019 - 01:14
sp_Permalink sp_Print

Thanks! Yes you are right. Blame an me. 

I hoped that there is also a C# solution. Ok. My next challenge is then to solve this ticket.

https://opcfoundation.org/foru.....9-lnk2005/

Randy, you pushed me forward.Smile

Avatar
Randy Armstrong
Admin
Forum Posts: 1564
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
8
10/01/2019 - 05:59
sp_Permalink sp_Print sp_EditHistory

FYI: COM interop in .NET imposes restrictions that made it difficult to build a compliant OPC server in .NET without a C++ wrapper.

For example, many OPC COM APIs return success codes other than S_OK which cannot be returned directly from .NET.

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