Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

How can I interact with ArcObjects from a windows service? It appears that I can't work with an AxMapControl object from a console or service, because it complains about the activeX state. How does one interact with ArcObjects from a service?

share|improve this question
1  
What is it about the mapcontrol you need to use in a non-interactive process that can't be done using just a plain IMap? –  Kirk Kuykendall Dec 2 '11 at 1:09
    
Well, I want to create some ILocator objects (so I need to get a layer, and call a few functions) and then I will send address data to this service, and it will return lat / longs back, maybe I can do that with an IMap, I will look into it. –  patrick Dec 2 '11 at 15:20
1  
Your service could use IMapDocument to get the layer. –  Kirk Kuykendall Dec 2 '11 at 15:33

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.