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.
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.