juhunter

Getting Started Help

Discussion created by juhunter on Sep 21, 2012
Latest reply on Nov 20, 2012 by DevonTaig
Hey all,

I'm having some issues getting started with this. My goal is to make a WCF service that uses ArcObjects that our already existing CMS system will plug into to do queries and whatnot. There is no map whatsoever (other than exporting one based on parameters given and making it a image file, and displaying that) but I can't figure out where to even get started.

I'm doing a very simple: try to connect to my workspace and do a spatial query on one of my feature classes. Works great in a console application, because I have this LicenseInitializer.cs file pre-made for me, but this is going to be a class library. This file does not get create for me and it will not compile if I copy the class over.

The errors that I receive are:
Error 1 The type 'ESRI.ArcGIS.esriSystem.AoInitializeClass' has no constructors defined
Error 2 Interop type 'ESRI.ArcGIS.esriSystem.AoInitializeClass' cannot be embedded. Use the applicable interface instead.

I'm wondering if anyone knows which direction to go with this? So far I've been able to use my REST services to do everything I need, but now I need to be able to export a cached map into an image, but have the ability to put points of interest (based on parameters passed in) dynamically before exporting it to an image file.

Thanks

Outcomes