Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
1 ratings:
 4 out of 5     Rate this Document

Network Browser Error When Browsing for OPC Server on Windows 2000 Machines

Primary Software: Measurement Studio>>Professional Edition (Base Package)
Primary Software Version: 8.0
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
I am trying to browse to my OPC server using the dialog that launches with SelectUrl Dialog in Microsoft Visual C++, Visual C# or Visual Basic .NET. I always get the following error dialog (pictured below also): 
NI Network Browser Error:
error code - 0x80004002
No such interface supported
An OPC Interface could not be found
Ensure that the latest opcproxy.dll is installed and that it has been registered.


How do I fix this?

Solution:
The Datasocket component used to enumerate the OPC servers available on the system is not being correctly registered on Windows 2000 systems. To use Datasocket as an OPC client, you need to manually register opcproxy.dll. To manually register opcproxy.dll, run the following command:

C:\WINNT\system32\regsvr32.exe C:\WINNT\system32\opcproxy.dll

Note: The path to the system32 folder on your machine might be different. If the previous command does not work, search your hard drive for regsvr32.exe and opcproxy.dll and correct the paths.

Related Links:
DeveloperZone Tutorial: Developing Industrial Automation Applications using Visual Basic .NET and OPC

Attachments:





Report Date: 11/04/2005
Last Updated: 11/13/2008
Document ID: 3R3ECP5B

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit