problem using CDO in C#.

  • Thread starter Thread starter Peter Rilling
  • Start date Start date
P

Peter Rilling

My C# program uses the CDOEX component. It works on my dev machine, but
when we deploy the application to the test server, I get an
UnauthorizedAccessException. The problem seems to happen when I simply go
to instantiate the Message class (new CDO.MessageClass). Any ideas about
why this might be happening?
 
Peter,

Two things. First, is it running in ASP.NET? If so, then you have to
make sure that the ASPCompat attribute is set for the page. Also, you will
have to make sure that it runs under a user account with the appropriate
permissions. By default, ASP.NET runs under the ASPNET local account, with
no rights to the network.

Second, you have to make sure that the CDOEX libraries are installed on
the target machine. While you do have interop assemblies, those assemblies
rely on the original COM libraries they represent to be installed on the
machine.

Hope this helps.
 
Back
Top