Click here to Skip to main content
14,937,556 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
We have written a web application to read ms-word document using microsoft interop assembly. It is working fine as the developement server has got ms-office installed. The application is not running on the production server where ms-office is not installed and getting error message:
System.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005

We have only limited access to our production server

Any help would be appreciated

Thank you


1 solution

If you are using Microst Interop Assembly then you need to install MS-Office in your production server. Because Interop assembly is a wrapper of COM object (in this case MS-Word) which will provide the access to the MS-Word application.

Also you can read/write Word 2007 Format (.docx) document using OpenXML SDK, which does not require MS-Office installed in the box.

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

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900