Notices


 
 
LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 16-Nov-2009, 07:42 PM
Junior Member
 
Join Date: Nov 2009
Posts: 1
lborowski1 0 reputation points
Default GroupWise API - login status

I am using GW client version 7 and GW API with C#.
Is there a way to see what is the status of the login (failed or successful) and attempt login again.
My code below works fine until there is a problem connecting to GW Server (I take the machine offline to test for this).
Application stops at this line:
Code:
Account account = (Account)gwApp.Login(ConfigurationManager.AppSettings["GWUserId"], null, ConfigurationManager.AppSettings["GWUserPassword"], null, null);
No exceptions are generated. It just stops there for good.
Any help greatly appreciated.
Thanks.


Code:
private Account LogIn()
        {
            Application2 gwApp = new Application2();
            LogWriter.Write("Testing with GW version: " + gwApp.MajorVersion+"."+gwApp.MinorVersion);
            try
            {
                Account account = (Account)gwApp.Login(ConfigurationManager.AppSettings["GWUserId"], null, ConfigurationManager.AppSettings["GWUserPassword"], null, null);
                return account;
            }
            catch (Exception e)
                {
                    LogWriter.Write("Error:::: "+e+" ::::");
                    return null;
                }
        }
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 10:41 PM.


© 2007 Novell, Inc. All Rights Reserved.

Search Engine Friendly URLs by vBSEO 3.3.2