The server is a Windows server2008 64-bit system that requires Microsoft.Office.Interop components in your project, including Excel, Word, PPT, and so on.
Steps
1. In Start, run, enter Dcomcnfg.exe to start the Component Services
2. Double-click "Computer", "Component Services", "My Computer", "DCOM Configuration"
3. In the DCOM configuration, locate the Microsoft Excel application (including Word and PowerPoint, of course), right-click on it, and then tap properties to pop up the Microsoft Excel Application Properties dialog box
4. Click on the "Logo" tab and select "Interactive User"
5. Click on the "Security" tab, click "Customize" on "Launch and activation Rights", then click on the corresponding "edit" button to add a "NETWORK SERVICE" user in the "Security" dialog box (note to select the computer name), and give it "local launch" and "Local activation" Permissions
6. Remain the "Security" tab, click "Customize" on "Access", then click "Edit" and add a "NETWORK SERVICE" user to the "Security" dialog box that appears, then give "Local access" permission.
And when on a 64-bit version of a machine, because after you open DCOMCNFG, you can't find the item "Microsoft Excel application (Word and PowerPoint, of course) ", the following is the way to resolve
1. Run: mmc-32
2. Open "File"-"Add or remove Snap-in"-Select Component Services-click Add-OK.
3. Microsoft Excel application can be found in the DCOM component(Of course, Word and PowerPoint are included, and the next steps are set up as described above.
If you do not run after the settings above, IIS also needs to make the appropriate settings
Check again and the content is not finished setting.
Check the settings of the IIS7, and finally determine that you also need to set the identity of the application pool, the AppPool of this site to be set to LocalSystem or NetworkService, problem resolution.
WINDOW2008 64-bit system cannot invoke Microsoft.Office.Interop component for file Save resolution