G
Guest
Hi, I am trying to use a com object to make a connection. I have included
the page directive "aspcompate="true" and I am getting the following error
when I run the project:
Exception Details: System.Runtime.InteropServices.COMException: Could not
read key from registry
Source Error:
Line 27:
Line 28: //conn.InitConnection("TSTDR-MIT", "", "");
Line 29: conn.InitConnectionEx("TSTDR-MIT");
Line 30: conn.ConnectProject("JerryGarcia", "guest", "");
Line 31: TDAPIOLELib.ListClass tdList = (ListClass)conn.ProjectsList;
Source File: c:\inetpub\wwwroot\tdtest\webform1.aspx.cs Line: 29
Stack Trace:
[COMException (0x80040150): Could not read key from registry]
TDAPIOLELib.TDConnectionClass.InitConnectionEx(String ServerName) +0
TDTest.WebForm1.Page_Load(Object sender, EventArgs e) in
c:\inetpub\wwwroot\tdtest\webform1.aspx.cs:29
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()
Any suggestions would be greatly appreciated.
Mark
the page directive "aspcompate="true" and I am getting the following error
when I run the project:
Exception Details: System.Runtime.InteropServices.COMException: Could not
read key from registry
Source Error:
Line 27:
Line 28: //conn.InitConnection("TSTDR-MIT", "", "");
Line 29: conn.InitConnectionEx("TSTDR-MIT");
Line 30: conn.ConnectProject("JerryGarcia", "guest", "");
Line 31: TDAPIOLELib.ListClass tdList = (ListClass)conn.ProjectsList;
Source File: c:\inetpub\wwwroot\tdtest\webform1.aspx.cs Line: 29
Stack Trace:
[COMException (0x80040150): Could not read key from registry]
TDAPIOLELib.TDConnectionClass.InitConnectionEx(String ServerName) +0
TDTest.WebForm1.Page_Load(Object sender, EventArgs e) in
c:\inetpub\wwwroot\tdtest\webform1.aspx.cs:29
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()
Any suggestions would be greatly appreciated.
Mark