Quantcast
Channel: Configuration and Deployment
Viewing all articles
Browse latest Browse all 3561

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

$
0
0

Hi All,

I am using Microsoft.Office.Interop.Excel.dll(version 11.0.5530.0)  reference in my project to create excel sheet and use in my code. it was working fine for a while . I was creating office 2003 .xls format files. and my  web server has office 2010 installed. Later as per site requirement , I had to create excel sheet in .xlsx using office 2007 format. for that I updated reference to 14. something.  Then I started getting following error.

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

I tried to resolve it on server by following steps given in this link . but couldn't resolve it.

https://waheedrous.wordpress.com/2014/01/26/error-office-interop-assemblies/

I also tried solutions given on another thread here, but no luck.

http://forums.asp.net/t/1760531.aspx?Retrieving+the+COM+class+factory+for+component+with+CLSID+00024500+0000+0000+C000+000000000046+failed+due+to+the+following+error+80070005+Access+is+denied+Exception+from+HRESULT+0x80070005+E_ACCESSDENIED+

Even to resolve it I downgraded reference back to old version . But it didn't resolve the issue. Please provide your thoughts.

my web server is windows server 2008 r2, project is hosted on IIS 7 or higher , .net framework 4.5.1  in vb.net 

 


Viewing all articles
Browse latest Browse all 3561

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>