Asp. NET build Word documents, server deployment considerations

Source: Internet
Author: User

On-line, stay on standby, my server installed office2007 so the Microsoft Office word97-2003 document is the one that was modified.

Asp. NET generating Word Document Server deployment considerations
1. ASP. NET 2.0 when you configure Microsoft Excel, Microsoft Word application Permissions error:80070005 and 8000401A resolution Total 2007-11-01 11:30
Failed to retrieve a component of the CLSID {000209ff-0000-0000-c000-000000000046} in a COM class factory because of the following error: 80070005.
Control Panel-"Management tools-" Component Services-computer-"My Computer-" DCOM config-"After you locate the Microsoft Word document, click Properties to open the Properties dialog box for this application.   Click the Security tab, select Custom in the launch and activation permissions and the access permissions group, and add the ASP. NET account and Iuser_ computer names, which are only available if IIS is installed on the computer.   13. Make sure that each user is allowed access, and then click OK. 14. Click OK to close the DCOMCNFG.

Retrieving a component in a COM class factory with a CLSID of {000209ff-0000-0000-c000-000000000046} failed because of the following error: 8000401A. Run DCOMCNFG Open Component Services, expand Computer, Component Services, and then click DCOM Configuration to locate the Microsoft Excel application or Microsoft Word application, and right-click the properties   dialog box, click on the "Identification" tab, point to "the following users", the administrator's user password correctly filled in ...   Click on the "Security" tab, in turn "Launch and Activation Permissions", "Access rights", "Configure Permissions", are selected as a custom, then click on their edits, add everyone to the, and join all the permissions ... OK, solve this problem!
2. Please set <identity impersonate= "true" username= "Administrator" password= "51aspx"/> account number and password in Web. config, otherwise you will be prompted to retrieve COM   A component in the class factory with a CLSID of {000209ff-0000-0000-c000-000000000046} failed because of the following error: 80070005. For example

[C-sharp] View Plaincopy < Param name= "loop" value= "loop" >
  1. < system.web>   
  2.      <identity impersonate=" true "  username= " Administrator "  password= " chuguo186 " />   
  3. </system.web>

PS: above content from http://dev.firnow.com/course/4_webprogram/asp.net/netjs/200824/98835.html

----------------------------------------------------------Split Line------------------------------------------------------------ ---

For a while to do development need to use Excel and Word programming, I use the vista system, the development environment is VS2005 and Office2007, testing without any problems, but to deploy the time there are some very headache problems, will always appear for example:

retrieving a component in a COM class factory with a CLSID of {000209ff-0000-0000-c000-000000000046} failed because of the following error: 8000401A. error, the online search for a lot of information, most of the two solutions:

1, add virtual permissions:

Add in Web. config

, requiring Windowsloginid to have administrator privileges, which is really feasible after use, is not conducive to deployment, because experienced people know what the consequences of exposing a maximum privileged server account password to the configuration file. So the scheme is not feasible. Then the second option is involved.

2, increase the interactive access rights for COM components:

This is also the most online search rate of one way, run "DCOMCNFG", find

Microsoft Excel 97/2000/2002-microsoft Excel applications Microsoft Word 2000/2002-microsoft the Word document for interactive access to these components, as detailed in the following:

http://support.microsoft.com/kb/288366

This kind of scheme should be feasible, but I have tried many times on my own machine on the first level server, finally I try to use the specific user to access, if the subdivision, this can be counted as the third kind of solution ^_^

3, increase the access rights for specific users of the COM component.

This is what I said today, but also to help me solve the practical problem of a solution, briefly said can do:

Create a required account (for example, test) with power User or user;

Use this account to run Word or Excel once (make sure you have access);

Run DCOMCNFG, locate the Microsoft Excel application in the DCOM component, or the Microsoft Word document (as before)-Properties-ID Select "Specific user", then enter the account number and password you created earlier.

Testing on some machines also requires that the account be enabled and accessed in front of the Security tab. Of course, it is possible to use your own account to log in directly.

PS: The second part is from: http://blog.sina.com.cn/s/blog_586b6c0501008hy3.html

----------------------------------------------------------Split Line------------------------------------------------------------ ---

PS: Network collection, non-original!

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.