Could not read key from registry

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top