View Issue Details

IDProjectCategoryView StatusLast Update
0000921COM-DA Sample Codepublic2010-12-20 01:11
Reporterbthornton Assigned ToRandy Armstrong  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Summary0000921: opc da client parse error
Description

We are testing the OPC .NET API 2.0 Client with a TAC/inet opc da server.

Here is the address...
opcda://localhost/TAC.OPC.Server.I/Net/{116d9772-7caf-11d5-9766-0040c78558ca}

As you can see, the name of the server has a / in the name (I/Net).

This is causing a parse issue in OpcCom.Factory.cs, in the Connect method.
It should be changed from IndexOf to LastIndexOf....

public static object Connect(Opc.URL url, Opc.ConnectData connectData)
string progID = url.Path;
string clsid = null;

int index = url.Path.IndexOf('/');

if (index >= 0)
{
progID = url.Path.Substring(0, index);
clsid = url.Path.Substring(index+1);
}

TagsNo tags attached.

Activities

Randy Armstrong

2010-12-20 01:11

administrator   ~0002200

Fixed as suggested.

Issue History

Date Modified Username Field Change
2009-12-21 19:38 bthornton New Issue
2010-12-20 01:11 Randy Armstrong Status new => resolved
2010-12-20 01:11 Randy Armstrong Resolution open => fixed
2010-12-20 01:11 Randy Armstrong Assigned To => Randy Armstrong
2010-12-20 01:11 Randy Armstrong Note Added: 0002200