Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows Server 2003Windows 2000Windows NTSmall Business ServerVirtual ServerExchange ServerIISHost Integration ServerISA ServerSMSWSUSMOMWindows Media ServerSecurityCertification
Related Topics
SQL ServerMS WindowsMS OfficePC HardwareMore Topics ...

Windows Server Forum / Exchange Server / Applications / August 2005

Tip: Looking for answers? Try searching our database.

CDO logon hangs in ASP (MAPI.Session)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dirbalak@gmail.com - 23 Aug 2005 11:06 GMT
I have the following code:

Dim strProfileInfo
strProfileInfo= "servername" & vbLf & "profilename"
Set objSession= CreateObject("MAPI.Session")
objSession.Logon , , False, True, , True, strProfileInfo

it works fine when running it as a vbs file (using cscript). my problem
is when i try to run it through IIS (as an ASP page). the first time i
run it i get "[Collaboration Data Objects - [E_FAIL(80004005)]]".
second time gives me "An exception occurred: 'myObject.Logon'" and
after that it hangs everytime i run it.

I tried both anonymous access (using administrator account) and not
anonymous.

Any thoughts??
Thanks!
Ken Slovak - [MVP - Outlook] - 23 Aug 2005 13:52 GMT
That logon method requires owner permissions on the mailbox. Does that ASP
session run under a profile that has owner permissions?

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

>I have the following code:
>
[quoted text clipped - 14 lines]
> Any thoughts??
> Thanks!
Lee Derbyshire [MVP] - 23 Aug 2005 14:27 GMT
> I have the following code:
>
[quoted text clipped - 14 lines]
> Any thoughts??
> Thanks!

Which version of CDO.DLL (and how many copies in different locations)
do you have on the IIS server?  Older versions cause heap corruption
when you try to access a mailbox that has been opened in Outlook 2003.
This article is for Exchange 2000, but similar ones exist for 5.5 and
2003:

http://support.microsoft.com/kb/824960/

Lee.

Signature

_______________________________________

Outlook Web Access For PDA , OWA For WAP
www.owapda.com
email a@t leederbyshire d.0.t c.0.m
_______________________________________

dirbalak@gmail.com - 24 Aug 2005 15:16 GMT
Thanks for your reply.

Ken, I'm not sure i understand your question so i will describe what is
the current situation:
1. I'm doing my tests on the server itself (2000 server with exchange
2000)
1. I'm using the administrator to log on to the machine.
2. I have outlook with one profile called administrator
3. On my virtual directoy i've set anonymous access using the
administrator user
4. In my script i've used "administrator" as my profile name

I tried to disable anonymous access and log on using the administrator
but it didnt help.

Lee, thanks for the link. I will check it as soon as possible. my only
concern is that the script works fine when runing it using cscript so i
am pretty sure it is a security or policy issue.

Can you tell me please what are the policies i need to check to make
sure the administrator can log on through IIS? Just in case, the
administrator has "Log on locally", "Log on as a batch job" and "Log on
as a service".

Thanks again for your help!

> > I have the following code:
> >
[quoted text clipped - 34 lines]
> email a@t leederbyshire d.0.t c.0.m
> _______________________________________
Lee Derbyshire [MVP] - 24 Aug 2005 17:11 GMT
> Thanks for your reply.
>
[quoted text clipped - 19 lines]
> administrator has "Log on locally", "Log on as a batch job" and "Log on
> as a service".

To check to see if you have the Log On Locally right, just try to log in at
the server console with the usename that you want to check.  If you don't
have the Log On Locally right, you will not get past the login dialog, which
will just keep reappearing.

Lee.

Signature

___________________________________

Outlook Web Access for PDA and WAP:
www.leederbyshire.com
___________________________________

Ken Slovak - [MVP - Outlook] - 25 Aug 2005 14:04 GMT
The logon you are using for CDO requires that the logged in session has
owner rights on the mailbox you are logging into. So I was asking if the
session that your ASP page is running under has those owner rights.

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

> Thanks for your reply.
>
[quoted text clipped - 21 lines]
>
> Thanks again for your help!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.