An error occurred while calling ASP to export the Excel file server. Createobject.

Source: Internet
Author: User
Tags 0x80070005

 

<% Set xlapplication = server. Createobject ("Excel. application") 'Call Excel Object %>

Generally, an error occurs when the IIS server is not configured. The returned error message is as follows:

Error Type:
Server Object, ASP 0178 (0x80070005)
Failed to call server. Createobject when checking the permission. Deny access to this object.

The English version of the error message is as follows:

Error Type:
Server Object, ASP 0178 (0x80070005)
The call to server. Createobject failed while checking permissions. access is denied to this object.

This is a component that is not registered in IIS to use MS Excel. All calls may fail.

The solution is as follows:

Start-> Run-> dcomcnfg (Open component service)

In DCOM configuration, find "Microsoft Excel application" (the name depends on the object you are calling ),

Right-click and choose Properties> Security. In the "Start and activate Permissions" box, click "edit" to grant all three permissions to everyone (Window 2000 system. In fact, the first launch & activate is enough.

If it is an XP system, everyone cannot be found. Therefore, I have added an IIS user: iuser/your user. If the user cannot be found, click "add"> "advanced ", use "Search now" to find the corresponding user. In XP, "Local startup" and "Local activation" are allowed in the permission selection box.

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.