LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-Jun-2009, 11:29 AM
Member
 
Join Date: Mar 2008
Posts: 34
gallwapa 0 reputation points
Default Create nickname, unknown error

Hi all,

I posted this in the gwobjapi but apparently that was the wrong forum.

I'm trying to create nicknames for all of our users. I can add a new users, however, I am
not able to add nicknames. I am receiving "An unknown error occurred".

[STAThread]
static void Main(string[] args)
{
try
{
AdminTypeLibrary.System GWSystem = new
AdminTypeLibrary.System();
string strPath = @"\\fs\vol1\gw\dom\primary;
GWSystem.Connect(strPath);

AdminTypeLibrary.AdminObject ao = (AdminTypeLibrary.AdminObject)GWSystem.Users.Item( "gall", GWSystem.PostOffices.Item("PSDTSCPO", GWSystem.Domains.Item("PSD")), GWSystem.Domains.Item("PSD"));

Console.WriteLine(ao.Name + " " + ao.PostOffice.Name + " " + ao.Domain.Name);
GWSystem.Nicknames.Add("testgall1234", ao, ao.PostOffice.Name, ao.Domain.Name);


}
catch (Exception ex)
{
Console.WriteLine(ex.ToString());
}
}


When I try to supply strings like so

GWSystem.Nicknames.Add("testgall1234", ao,"PO1","Primary");

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 07:18 PM.


© 2007 Novell, Inc. All Rights Reserved.

Search Engine Friendly URLs by vBSEO 3.3.0 RC2