The call to the COM component returned the error HRESULT E_fail

Source: Internet
Author: User
When I develop the C#+AE program, I want to

The invocation of the COM component returns the error HRESULT E_fail error, and finding many solutions on the internet will not solve the problem. But the feeling should be licence problem, because I open the factor class, all can be successful no problem. But I encountered the above error when I did Tabulatearea analysis.


After determining the idea, I began to study the configuration of licence, and found my own configuration as follows:

(1) Program.cs

ESRI. ArcGIS.RuntimeManager.BindLicense (
ESRI. ArcGIS.ProductCode.EngineOrDesktop,
Licenselevel.geodatabaseupdate);

(2) The licence control properties on the main interface are configured as follows: The left side of the ArcGIS Engine Select All selected.


I selected the left as standard, right after the full selection, again debugging, OK, problem solving.

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.