Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Remote Registry Service Enablement

Dear All

 

I have AIM OPC Server in my Production Workgroup.

 

I have written a C# Code using NI Measurement Studio which is running on a machine , which is available at Active Directory Windows Domain.

 

We have connected Workgroup and Domain using a Firewall Box.

 

I have the required DCOM settings available both on OPC Client and OPC Server.

 

I am able to browse the OPC Server and view its Tags using DataSocket.SelectURL. However when i try to read and write the Tags , it gives me an error.

 

Last Error : -2147483595
 
Last Message : Can’t connect to OPC Server. The Network path was not found.

 

Later on , i studied that for this communication to work "Remote Registry" service has to be enabled and access permissions has to be defined on these three registry nodes using regedt32.

 

HKEY_LOCAL_MACHINE - > SYSTEM - > CurrentControlSet - > Control - >SecurePipeServers

HKEY_LOCAL_MACHINE - > SYSTEM - > CurrentControlSet - > Control - >SecurePipeServers - > Winreg

HKEY_LOCAL_MACHINE - > SYSTEM - > CurrentControlSet - > Control - >SecurePipeServers - > Winreg - > AllowedPaths

 

After doing these changes, i was able to read and write the Tag values using my C# code.

 

But , this setting is not acceptable to my business. Since , Production workgroup is a highly secure environment , they have not given the permission to enable the "Remote Registry" service.

 

Is any one aware of the method , how to read and write tags using NI Measurement studio from Remote OPC Server without enabling the Remote Registry Service ?

 

Thanks and Regards

Prashant Jha

0 Kudos
Message 1 of 2
(5,976 Views)

dear friend:

      thank you for your sharing.I got trouble in the same status that I can use "ds_selectURL"to find the remote source,but can't use "ds_open" to connect the source,so I can't read and write the remote source.

      I see your solution,I can't understand ""Remote Registry" service has to be enabled and access permissions has to be defined ". Would you get me more detail?

Thanks.

 

0 Kudos
Message 2 of 2
(5,769 Views)