Click here to Skip to main content
15,894,180 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
I have created a project to send mail using Microsoft Outlook in ASP.NET C# 4.0 and Microsoft Office 2010. When I send mail from my project using my PC(Windows 7 Ultimate 64bit), it successfully send. But when I deployed/published on web server PC (Wndows Server 2008 R2 Enterprise 64bit), I gave an error message given following

"System.Exception: Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))."

Please, please give me actual solution urgently.

Thanking you
Tristan
Posted

1 solution

First of all, it is not the COM PORT!
You try to use a COM object. The information about the COM object is stored in the registry. Something went wrong when you tried to instantiate the COM object: IIS runs with a user account which has not the right to access that place of the registry.
Solution: Set the rights accordingly, see e.g. http://forums.asp.net/t/931005.aspx[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900