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;