C # FAQs about secondary development based on AE Components,

Source: Internet
Author: User

C # FAQs about secondary development based on AE Components,

Because I am engaged in. net platform for secondary development of GIS, so the first blog post will talk about: I recently encountered a common problem in the project, if you can add a little convenience to everyone, it is also my pleasure. If you have any comments or suggestions on this blog post, you are welcome to discuss with me and make progress together.

1: The call to the COM component returns the error HRESULT E_FAIL"

Cause 1: the file to be called does not exist, the file name is incorrect, or the path itself is faulty (for example, the path cannot contain parentheses in AE ). Or the generated file already exists (you do not need to use code to control overwrite)

Cause 2: for example, if vector to raster is required, the type of the field column in the vector layer Attribute Table does not meet the requirements.

Cause 3: You need to add the License authorization code.

2: c # do not generate the result when calling the gp Tool.

Cause 1: You need to add the License authorization code.

Cause 2: the path is incorrect or too long.

3: There are two issues related to License authorization. It can be seen that authorization is important when calling the arcengine component (com component. (My conclusion is that correct authorization is certainly correct. If no authorization is added, it may cause some problems, such as the two problems above)

I would also like to thank the following article for answering my authorization questions: http://blog.csdn.net/hsg77/article/details/10459333

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.