Hi all.
I am creating a dotnet application with RsiOPCAuto.dll, and I have managed to read and write tags value. But today when I wanted to display all the online tags in a treeview, I met a problem.
Following is my code.
When it executed "browser.ShowLeafs(true);", an exeption "[HRESULT:0x80010105 (RPC_E_SERVERFAULT)]" was thrown.
Has anyone meet the same problem also?
Please help me, thanks in advance.
I am creating a dotnet application with RsiOPCAuto.dll, and I have managed to read and write tags value. But today when I wanted to display all the online tags in a treeview, I met a problem.
Following is my code.
Code:
List<string> lstItems = new List<string>();
try
{
OPCBrowser browser = myServer.CreateBrowser();
browser.ShowBranches();
browser.ShowLeafs(true);
var i = browser.GetEnumerator();
if (browser.Organization == 1)
{
while (i.MoveNext())
{
lstItems.Add(i.Current.ToString());
}
}
}
catch (Exception err)
{
throw err;
}
Has anyone meet the same problem also?
Please help me, thanks in advance.