Solve the 80070005 error in C # Word document operations

Source: Internet
Author: User

I. WINXP

Solution 1,

1. Choose Control Panel> Administrative Tools> component services> Computer> my computer> DCOM configuration> Microsoft Word documents. Click properties to open this application.ProgramProperties dialog box.
2. Click the ID tab and select an interactive user.
3. Click the "Security" tab, select "Custom" in the "Start and activate Permissions" and "Access Permissions" groups, and then click "edit" to add ASP. net account and iuser_computer name.
4. Make sure that each user is allowed to access the service and click OK.

5. Click OK to disable dcomcnfg.

If the above method cannot solve the problem, it should be a permission problem. Please try the following method:

Solution 2,

Use identity simulation in Web. config and add <identity impersonate = "true" username = "your username" Password = "password"/> In the <system. Web> section. 

</System. Web> 

Ii. Windows2003

Solution 1,

1. Install the Excel software for office on the server.

2. Enter dcomcnfg.exe in "start"-> "run" to start "Component Service"
3. Double-click "component service"> "computer"> "my computer"> "DCOM configuration"
4. Find "Microsoft Excel application" in "DCOM configuration", right-click it, and click "properties". The "Microsoft Excel application properties" dialog box is displayed.

5. Click the "ID" tab and select "Interactive User"

6. Click the "Security" tab, click "Custom" on "Start and activate Permissions", and then click the corresponding "edit" button, in the pop-up "security" dialog box, add a "Network Service" user (note that you must select the computer name) and grant it the "local start" and "Local activation" permissions.

7: the "Security" label remains. Click "Custom" on "Access Permissions", and then click "edit ", in the pop-up "security" dialog box, add a "NetworkService" user and grant "local access" permission. in this way, we have configured the corresponding Excel DCOM permissions. note: This is configured on win2003. on 2000 and XP, It is configured as an ASPnet user.

If the preceding method cannot solve the problem (in Windows 2003. You can use the following method:
Method 2,

1. Create a user account and set the user to the power user or user (Local SYSTEM account );

2. Run dcomcnfg. In the DCOM component, find the Microsoft Excel application or Microsoft Excel document-properties-icon and select "The following users ", then, enter the account and password created earlier;

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.