AnsweredAssumed Answered

Problems with AppROTClass in 10.2.2 Desktop.

Question asked by mary.sage on Sep 16, 2014
Latest reply on Dec 5, 2014 by mciscell

I am converting an automation utility from ArcMap 9.3 to 10.2.2.  I changed some references and added binding to the Desktop license.  In 9.3 I was able to connect to an existing instance of ArcMap using the following statement:


AppROT rot = new AppROTClass();  // WORKS in 9.3, THROWS EXCEPTION in 10.2.2 


In 10.2.2 this throws a COM exception about the class not existing.  However, in 10.2.2 when I create the instance of ArcMap in my code, the AppROT works. 


IDocument doc =  (IDocument) new ESRI.ArcGIS.ArcMapUI.MxDocumentClass();

AppROT rot = new AppROTClass(); // WORKS in 10.2.2


Does anyone know why I cannot connect to an existing instance of ArcMap in 10.2.2?  Thanks.  Mary Sage