Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am at a complete loss... I have a Server 10.0 license on my machine but the following code fails:

if (ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.Server) == false)
    throw new Exception("License Failed");

MapServerClass mapServer = new MapServerClass();
mapServer.Connect(pathToMap); // Fails! 

ComException was unhandled

MapServer is not supported with the current license.

share|improve this question
up vote 1 down vote accepted

Figured it out immediately after asking this... funny how that works.


IAoInitialize aoInit = new AoInitializeClass();
share|improve this answer
go ahead and mark your answer as accepted. – Kirk Kuykendall Sep 26 '11 at 13:27
@Kirk Still waiting the minimum 2 days before accepting – tbridge Sep 26 '11 at 16:49

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.