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

When we tried to use word automation from .Net in ASP .Net application earlier it was working but then it stopped working in some of the machine giving error
“Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005.”.
We had DCOM setting in place, IIS setting was also ok. Then I got following solution:

  • I changed the AppID Registry key under HKEY_CLASSES_ROOT\AppID\WINWORD.EXE from old entry to {00020906-0000-0000-C000-000000000046}.

(for some it will work after this, but if still its not working go for second.)

  • 2. Also changed the DCOM setting.
    • a. Open the Component Service Console.(Either by running command: dcomcnfg OR by opening it from Control Panel->Administrative Tool -> Component Services)
    • b. Now Select ‘Microsoft Word Document’, Under Component Services->Computers->My Computer -> DCOM Config.
    • c. Do Right click and select Properties.
      it will open Microsoft Word Document Properties dialog.
    • d. In Microsoft Word Document Properties dialog, select Identity tab.
    • e. In Identity tab, if ‘The launching user.’, in our case third option was selected, so we selected 2nd option.

This may solve out problem, hope it would be helpful for you also. If you need to say something please feel free to speak through comments.

 

References:

http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/006cbbac-101a-40ea-ae16-d59a7a2da8b1

Advertisements
Published in: on November 3, 2009 at 4:17 pm  Comments (7)  
Tags: , , , , , , ,

The URI to TrackBack this entry is: https://indiandeve.wordpress.com/2009/11/03/dcom-error-retrieving-the-com-class-factory-for-component-with-clsid-000209ff-0000-0000-c000-000000000046-failed-due-to-the-following-error-80070005/trackback/

RSS feed for comments on this post.

7 CommentsLeave a comment

  1. I tried this but it`s not working on Windows Server 2003
    It works for Windows XP

    Please Suggest,

  2. I tried this option, but it`s not working on Windows Server 2003
    It works for Windows XP

    Please Suggest,

  3. I am also having the same problem.
    I am using windows server 2008 and visual Studio 2005.

    Please help.

    Admin’s Reply,

    I gave one solution for above problem, i dont know other solution. may be you can go to msdn forums and post your question.

  4. I did it as per your instructions but getting same problem..
    Please suggest me that what should i do for it.

  5. I have tried this but it won’t work for me I am try to use this with windows7

  6. Microsoft Word Document is not showing.
    How to eable that to edit the permission.
    Pls reply…..


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: