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