Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1012429
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T09:56:42+00:00 2026-05-16T09:56:42+00:00

I am getting the above mentioned error when my web service tries to open

  • 0

I am getting the above mentioned error when my web service tries to open MS word document programatically through my .net webb service.
When I run web service through visual studio, it works fine but when I deploy web service on IIS 7, I get the error

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

I have seen similar questions and tried their solutions on Stackoverflow, MSDN and other resources also but none of them worked for me. Most of the questions were old dating back to 2008/ 2007.

I have tried to change DCOM setting using dcomcnfg command and I have added ‘Network Service’, ‘Network’ users, also have added my own user id in ‘Microsoft Word Document’ component properties and given them full permission. I have also added impersonate=true property in web.config. After doing all this also I am getting error. Can anyone please help me out?

I am trying all this on MS vista 32 bit OS and Office version is Office 2003.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T09:56:43+00:00Added an answer on May 16, 2026 at 9:56 am

    I’m not using a web service, but a windows service and I had the same error generated when the service called an executable that attempted to create an Excel object. I’ve also read many of the other resources and none of them quite worked for me. Several were very close which led me to solve the issue in the following way:

    1. I went to the server…Start..Run and ran “dcomcnfg”.
    2. Navigate to Component Services…Computers…My Computer…DCOM Config…Microsoft Excel Application.
    3. Open properties and select the Identity tab.
    4. Select “The launching user” (instead of “The interactive user”) radio button and click OK to close the properties dialog.

    The error went away and the app produces the Excel file when the service runs.

    I’m investigating if it is possible to get this working from a Windows service some other way because I’m not sure if this solution will have side effects. I will update further if I figure anything else out.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.