• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 267
  • Last Modified:

'System.Runtime.InteropServices.COMException' occurred in ESRI.ArcGIS.Geoprocessor.dll.

I have set reference and used the name space of ESRI.ArcGIS.Geoprocessor.dll. It throws "'System.Runtime.InteropServices.COMException' occurred in ESRI.ArcGIS.Geoprocessor.dll" at the below line of code:

ESRI.ArcGIS.Geoprocessor.Geoprocessor tGp = new ESRI.ArcGIS.Geoprocessor.Geoprocessor();


Please help if I need to make some setting changes.
0
Shanmugam Rajagopal
Asked:
Shanmugam Rajagopal
  • 4
  • 3
1 Solution
 
Randy DownsOWNERCommented:
Try debug System.Runtime.InteropServices.COMException (break) or running  Visual Studio as Administrator
0
 
Randy DownsOWNERCommented:
I've requested that this question be closed as follows:

Accepted answer: 500 points for Randy Downs's comment #a41808795

for the following reason:

This would be a good 1st step
0
 
Shanmugam RajagopalAuthor Commented:
Its not running VS as administrator issue. I always open VS as administrator. After talking with vendor its expecting license for this function. This functions cannot be opened externally in separate programs.
1
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

 
Shanmugam RajagopalAuthor Commented:
Please suggest if there are any work around to inherit license and use this functionality outside because to test a sample we cannot tie it with ArcGIS as it takes the whole application and multiple steps.
0
 
Randy DownsOWNERCommented:
Since it's a licensing issue you should probably ask your vendor how best to proceed. I thought maybe debugging would shed some light on the subject but it seems you have your answer.
0
 
Shanmugam RajagopalAuthor Commented:
Please suggest how to delete this question?
0
 
Randy DownsOWNERCommented:
Since this is a licensing issue, there are no points awarded.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now