Click here to Skip to main content
15,881,380 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear All Experts,
I am trying to fix one bug from 2 days. But unable to fix it. My application's work is to edit one word file and saving that in server.

but i am getting one exception after hosting. The exception message is given below:-
Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005.

Its something urgently i need. Please help me to fix it.
Not fixed yet, Any suggestion must appreciation.
Posted
Updated 14-May-13 5:26am
v2
Comments
Johnny J. 14-May-13 7:14am    
I would say that you have to Google for this. I seriously doubt that anybody here knows what that error code means?!?!?!
[no name] 14-May-13 8:45am    
http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/006cbbac-101a-40ea-ae16-d59a7a2da8b1/ although I did not see where they mentioned that this is an unsupported configuration and you should not be doing this at all.
Jochen Arndt 14-May-13 11:37am    
The error code is E_ACCESSDENIED / 'Access is denied'.
Feeding the CLSID and the error code or message to Google gives some results including http://stackoverflow.com/questions/3477086/accessing-office-word-object-model-through-asp-net-results-in-failed-due-to-the

1 solution

For the server-side programming such as ASP.NET, prefer using Open XML SDK instead of Office Interop. Look at this Microsoft article:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q257757#kb2[^].

Use Open XML SDK: http://www.microsoft.com/en-us/download/details.aspx?id=30425[^].

This way, you can support new XML-based Office formats (such as .DOCX, .XLSX), ECMA-376 standard:
http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats[^],
http://en.wikipedia.org/wiki/Office_Open_XML[^].

This way, you can work without Office installed. Also, the documents are supported by 3rd-party software. Please see my past answers:
Convert Office-Documents to PDF without interop[^],
Need a rather unique WPF text editor control[^],
Hi how can i display word file in windows application using c#.net[^],
Read a word file without using Interop.word dll...Do not want to install word in IIS..[^].

This is another option: http://npoi.codeplex.com/[^].

See also: http://support.microsoft.com/default.aspx?scid=kb;EN-US;q257757#kb2[^].

—SA
 
Share this answer
 

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