Logoff() under impersonation causes Object Reference Not Set
Exchange Server Forum Index Exchange Server
Discussion forums for Microsoft Exchange Server users.
Microsoft Outlook
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web ExchangeServerHelp.com
Logoff() under impersonation causes Object Reference Not Set

 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development
Author Message
Schlafcommodore
Guest





Posted: Tue Nov 16, 2004 5:05 am    Post subject: Logoff() under impersonation causes Object Reference Not Set Reply with quote

I've developed an ASP.NET web site that leads to Meeting Requests being sent.
Works great on the web server machine, but I have the Double Hop auth
problem in
logon to Exchange server (on a different machine) when I go to my own
workstation and attempt to use it (MAPI_E_LOGON_FAILURE)

So I use WindowsImpersonationContex Impersonate(). Works great for
getFreeBusy() but upon sending the meeting request - which is sent properly
with all of the right properties - Logoff() causes COM error 91. Then the
web site is useless because ANY attempt at CDO Logon yields error 91. Only
restarting IIS (5.0) seems to reset things.

Win2k network,, the IIS web dir is NT auth (no anonymous).

How can I discover what the root of the problem is?

Back to top
Tom Rizzo [MSFT]
Guest





Posted: Mon Nov 22, 2004 6:27 am    Post subject: Re: Logoff() under impersonation causes Object Reference Not Reply with quote

Have you tried reverting before logging off? We built similar code for
CDOHTML 1.21 to impersonate contexts so that we could have OWA work against
backend servers on a different machine.

Tom

--
Looking for a good book on programming Exchange, Outlook, ADSI and
SharePoint? Check out http://www.microsoft.com/MSPress/books/5517.asp



"Schlafcommodore" <Schlafcommodore@discussions.microsoft.com> wrote in
message news:A879146E-1353-4DF7-8674-36D961901E5F@microsoft.com...
Quote:

I've developed an ASP.NET web site that leads to Meeting Requests being
sent.
Works great on the web server machine, but I have the Double Hop auth
problem in
logon to Exchange server (on a different machine) when I go to my own
workstation and attempt to use it (MAPI_E_LOGON_FAILURE)

So I use WindowsImpersonationContex Impersonate(). Works great for
getFreeBusy() but upon sending the meeting request - which is sent
properly
with all of the right properties - Logoff() causes COM error 91. Then the
web site is useless because ANY attempt at CDO Logon yields error 91.
Only
restarting IIS (5.0) seems to reset things.

Win2k network,, the IIS web dir is NT auth (no anonymous).

How can I discover what the root of the problem is?
Back to top
Schlafcommodore
Guest





Posted: Wed Nov 24, 2004 6:03 am    Post subject: RE: Logoff() under impersonation causes Object Reference Not Reply with quote

Thanks for the tip Tom - I will keep it in mind after I solve the real problem

I have found out that it AppointmentItems are troublesome with this
Exchange account regardless of impersonation or not ... I have opened
a MS incident report and the theories so far are the version of my CDO
dll - they want me to try a new one.

Thanks again

Back to top
 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server Dedicated Servers
New Topics Powered by phpBB