C# – Issues with class factory for component with CLSID {00024500-0000-0000-C000-000000000046}

asp.net-3.5cms-word

I am exporting data to Word file using some interops dll's. earlier I have developed the applicaion in Windows 2008 Server, at that time I could able to export the data to Word file. but recently I have upgraded my pc to Windows 7. It is working fine in my localhost.

When i deploy the application in IIS I am getting this error:

Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005.

Best Answer

I had problems with the interop lib in a Windows Server 2003. I was trying to create a excel file through the .NET application. It worked in local but in the server. This links explain how to solve the problem. First at all you have to install M.O.Excel at the Server. Configure in DCOM the Microsoft Excel application.

http://blog.crowe.co.nz/archive/2006/03/02/589.aspx

It saved me!!