Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Exchange
2000.active.directory
2000.admin
2000.announcements
2000.app.conversion
2000.applications
2000.clients
2000.clustering
2000.connectivity
2000.development
2000.documentation
2000.general
2000.information.store
2000.interop
2000.kms
2000.misc
2000.protocols
2000.realtime.collabo.
2000.setup
2000.transport
2000.win2000
admin
application.conversion
applications
clients
clustering
connectivity
design
development
misc
mobility
setup
tools
  
 
date: Wed, 10 May 2006 02:05:01 -0700,    group: microsoft.public.exchange2000.development        back       


Integration to exchange with use of ASP and CDO   
I'm struggeling to get contact with an axchange using this code... (2003 
enviroment)

function doLoginMAPI(serverName, userName )
{
    // Get NT account name without the domain prefix
    var user2;
    var idx = userName.indexOf('\\');
    if( idx > 0 )
     user2 = userName.substr( idx+1 );
    else
     user2 = userName;
    var mapiExist = false; 
    var profile = serverName + '\n' + user2;
   
    // Get mapi session
    var mapi = new ActiveXObject("MAPI.Session");
    
    // Logon using profile
    mapi.Logon(
        '',//profile
        '',//password
        false,//show dialog
        true,//new session
        0,//parent window
        false,//no spooling
        profile);
 
    return mapi;
}

The error generatet from the exchange: "The information could not be opened 
[MAPI 1.0 -[MAPI_E_LOGON_FAILED(80040111]]. 
I do belive I got sufficient user rights. Is it possible to check if the 
exchange lock out CDO connections? Any other ideas for trubleshooting?
regards bjørn
date: Wed, 10 May 2006 02:05:01 -0700   author:   Cabby_Nova

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us