Rachana
Rachana

Reputation: 131

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

i didn't find Microsoft word document under the "Control Panel - Administrative Tools - Component Services - Computers - My Computer - DCOM Config" then how to grant the permissions for microsoft word and excel

Upvotes: 0

Views: 3627

Answers (2)

Yahia
Yahia

Reputation: 70379

Using Office interop in a server-scenario (like ASP.NET, Windows Service etc.) is NOT supported by MS - see http://support.microsoft.com/default.aspx?scid=kb;EN-US;q257757#kb2

Additionally there have been several security-related changed since Windows Vista which basically make it really hard to do anything "desktop-like" in a Windows Service (IIS/ASP.NET is just a special case of Windows Service in this regard).

There are several libraries (free and commercial) to deal with Office files (without Office Interop).

MS provides the free OpenXML SDK V 2.0 - see http://msdn.microsoft.com/en-us/library/bb448854%28office.14%29.aspx (newer formats only like DOCX, XLSX etc.).

Excel

Another free option see http://www.codeproject.com/KB/office/OpenXML.aspx (XLSX only)

IF you need more like handling older Excel versions (like XLS, not only XLSX), rendering, creating PDFs, formulas etc. then there are different free and commercial libraries like ClosedXML (free, XLSX only), EPPlus (free, XLSX only), Aspose.Cells, SpreadsheetGear, LibXL and Flexcel etc.

Word

Upvotes: 0

Lex Li
Lex Li

Reputation: 63264

Read out load this article, and learn why you should never attempt it even,

http://support.microsoft.com/kb/257757

Upvotes: 1

Related Questions