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