When I call the COM component in asp.net to publish IIS, I often see the error 80070005 solution.

Source: Internet
Author: User

Many people reference the COM component in the. net development Web site. The debugging is normal, but the following error is prompted as soon as it is published to IIS:

Failed to retrieve components whose CLSID is {} in the COM class factory because of the following error: 80070005

The following solutions are available on the Internet:

Failed to retrieve components whose CLSID is {000209FF-0000-0000-C000-000000000046} in the COM class factory because of the following error: 80070005
On CSDN, some netizens have always asked this question, and I have encountered it myself. For some reason, I wrote it for your reference:
Symptoms:
OWordApplic = New Word. Application
When the program runs this sentence, the following error occurs:
Failed to retrieve components whose CLSID is {000209FF-0000-0000-C000-000000000046} in the COM class factory because of the following error: 80070005.
OWordApplic = New Word. Application
When the program runs this sentence, the following error occurs:
Failed to retrieve components whose CLSID is {000209FF-0000-0000-C000-000000000046} in the COM class factory because of the following error: 80070005.
Solution 1:
Control Panel-> Administrative Tools-> component services-> Computer-> my computer-> DCom configuration-> Microsoft Word documents
After
Click properties to open the Properties dialog box for this application.
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
Custom-> edit-> Add ASP. NET account and IUSER _ computer name

* These accounts only exist when IIS is installed on the computer.
13. Make sure that each user is allowed to access the service and click OK.
14. Click OK to disable DCOMCNFG.

Solution 2:
If the above method cannot solve the problem, it should be a permission problem. Please try the following method:
Use identity simulation in web. config and add <identity impersonate = "true" userName = "your userName" password = "password"/> In the <system. web> section.
</System. web>

 

 

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.