Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET4.0
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 7-May-13 22:33pm

1 solution

Rate this: bad
good
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. http://forums.asp.net/t/931005.aspx[^].
  Permalink  

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



Advertise | Privacy | Mobile
Web03 | 2.8.141220.1 | Last Updated 8 May 2013
Copyright © CodeProject, 1999-2014
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