COM & Outlook Application

H

huseyinakturk

Hi,
I am trying to send mail using Outlook component in C# code. But I am
getting errors. First error is,

Exception Details: System.UnauthorizedAccessException: General access
denied

error

ASP.NET is not authorized to access the requested resource. Consider

granting access rights to the resource to the ASP.NET request identity.
....

And then, I researched the web. And I found with similar error in Excel
component. I run DCOMCNFG and went to Component Services->Computers->My
Computer->DCOM Config->Microsoft Excell Application. And right
click->options->Security->Launch and Activation
Permissions->Customize->Edit. Then I gave all rights to ASPNET user.
After this operation I saw that there is no problem creating Excel
documents. So, I want to do same operation for Outlook. But I looked
that there is no clear Outlook dll. There are some dlls which includes
outlook keyword. I applied the same operation as Excel for ASPNET user
to these dlls. And I tried to run my application. And I saw that the
error changed to;

Server execution failed
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: Server
execution failed

Also, I gave the administrator role to ASPNET user.
Where is the wrong? Why I can not use Outlook. Please help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,740
Latest member
AdolphBig6

Latest Threads

Top