LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 23-Sep-2009, 05:38 AM
Junior Member
 
Join Date: Sep 2009
Posts: 2
Qurator 0 reputation points
Default C# .Connect(path) 0x80020009 Error

Hello,

I am creating a c# program to create users and add them to post offices. I've referenced the AdminTypeLibrary but whenever I try to use .connect(path) it throws the error "HResult: 0x80020009(DISP_E_Expection)"

I'm running it on a computer which has Groupwise 7.0.1 and Novell Client 4.91.4. The operating system is windows.

using AdminTypeLibrary;
using GroupwareTypeLibrary;
using NWSessLib;
...........
//variables
object objAdminSystem2;
AdminTypeLibrary.System objAdminSystem;
AdminTypeLibrary.Domain mySelDomain;
....

AdminTypeLibrary.Domains myDomains;
AdminTypeLibrary.Domain myDomain;
string treeName;
//try to connect

NWSess loNWSess = new NWSess();
loNWSess.Bindery = true;
loNWSess.RunScripts = false;
loNWSess.DisplayResults = false;

treeName = loNWSess.DefaultFullName.ToString();
lstStatus.Items.Add(treeName);

loNWSess.Login(treeName, "Admin", "Password", true);

objAdminSystem2 = Activator.CreateInstance(Type.GetTypeFromProgID("N ovellGroupWareAdmin"));

objAdminSystem = new AdminTypeLibrary.System();
AdminTypeLibrary.IADSystem gwSystemInterface = (AdminTypeLibrary.IADSystem)objAdminSystem;

try
{
gwSystemInterface.Connect(txtGWPath);
}
catch (Exception e)
{
lstStatus.HorizontalScrollbar = true;
lstStatus.Items.Add(@"Tried to connect to " + txtGWPath + " but failed " + e.Message.ToString());
}

Any help would be greatly appreciated.
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 06:48 PM.


© 2007 Novell, Inc. All Rights Reserved.

Search Engine Friendly URLs by vBSEO 3.3.0 RC2