L
Luc E. Mistiaen
I have the following line of code, using System.DirectoryServices and
System.Runtime.InteropServices towards CDOEXM:
((CDOEXM.IExchangeMailbox) User.NativeObject).MoveMailbox (NewHomeMDB) ;
Where User is a DirectoryEntry for a mailbox enbaled user.
This line of code works perfectly when run from a console program and fails
with a 'Catastrophic failure' when run from a service. It works from the
service if a console program is started with a System.Diagnostics.Process,
but not straight from the service threads. The service runs with the same
credentials as the interactive process.
Can anybody shed some light about what difference between the two contexts
can cause such a failure. I already looked at STA vs MTA stuff, but that
didn't solve the issue.
/LM
System.Runtime.InteropServices towards CDOEXM:
((CDOEXM.IExchangeMailbox) User.NativeObject).MoveMailbox (NewHomeMDB) ;
Where User is a DirectoryEntry for a mailbox enbaled user.
This line of code works perfectly when run from a console program and fails
with a 'Catastrophic failure' when run from a service. It works from the
service if a console program is started with a System.Diagnostics.Process,
but not straight from the service threads. The service runs with the same
credentials as the interactive process.
Can anybody shed some light about what difference between the two contexts
can cause such a failure. I already looked at STA vs MTA stuff, but that
didn't solve the issue.
/LM