Click here to Skip to main content
13,045,019 members (38,904 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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
Posted 7-May-13 21:33pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.[^].

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 8 May 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100