<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ESRI.ArcGIS.DefenseSolutions.CoordinateToolClass in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/esri-arcgis-defensesolutions-coordinatetoolclass/m-p/364025#M9581</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am really confused.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I setup Military Analyst 10.0 to use DefenseSolutions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I wrote a VB.NET Application (2010) which uses DefenseSolutions.CoordinateTool for coordinate conversion.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It is OK.No problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I am creating a Web Service on this machine which performs above process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But when I use this service in a VB.NET 2010 Windows Application, when I call the method for coordinateconversion&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it gives this error : "Unable to cast COM object of type 'ESRI.ArcGIS.DefenseSolutions.CoordinateToolClass' to interface type 'ESRI.ArcGIS.DefenseSolutions.ICoordinateTool'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{.......&amp;nbsp; }' failed due to the following error:No such interface supported (Exception from HRESULT:0x80004002 (E_NOINTERFACE))"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the service the code is as below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;public function ......&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dim pCoordTool as ESRI.ArcGIS.DefenseSolutions.ICoordinateTool&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pCoordTool = new ESRI.ArcGIS.DefenseSolutions.CoordinateTool (I tried CoordinateToolClass, but the same error )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;pCoordTool.ConvertLocation(vValue,iFormat,vFromDatum,vToDatum,pPoint1,pPoint2,DMS,UTM,MGRS) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;end function&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I see from the application that when I call&amp;nbsp; this service method, the ConvertLocation line gives error..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to use pCoordTool.GetDatumList method but it also gives error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think there is something wrong with the declaration.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the creation of service, Iam binding and initializing the Engine Product.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Really important...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Jan 2013 06:36:50 GMT</pubDate>
    <dc:creator>TubaKumbara</dc:creator>
    <dc:date>2013-01-31T06:36:50Z</dc:date>
    <item>
      <title>ESRI.ArcGIS.DefenseSolutions.CoordinateToolClass</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/esri-arcgis-defensesolutions-coordinatetoolclass/m-p/364025#M9581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am really confused.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I setup Military Analyst 10.0 to use DefenseSolutions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I wrote a VB.NET Application (2010) which uses DefenseSolutions.CoordinateTool for coordinate conversion.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It is OK.No problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I am creating a Web Service on this machine which performs above process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But when I use this service in a VB.NET 2010 Windows Application, when I call the method for coordinateconversion&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it gives this error : "Unable to cast COM object of type 'ESRI.ArcGIS.DefenseSolutions.CoordinateToolClass' to interface type 'ESRI.ArcGIS.DefenseSolutions.ICoordinateTool'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{.......&amp;nbsp; }' failed due to the following error:No such interface supported (Exception from HRESULT:0x80004002 (E_NOINTERFACE))"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the service the code is as below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;public function ......&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dim pCoordTool as ESRI.ArcGIS.DefenseSolutions.ICoordinateTool&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pCoordTool = new ESRI.ArcGIS.DefenseSolutions.CoordinateTool (I tried CoordinateToolClass, but the same error )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;pCoordTool.ConvertLocation(vValue,iFormat,vFromDatum,vToDatum,pPoint1,pPoint2,DMS,UTM,MGRS) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;end function&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I see from the application that when I call&amp;nbsp; this service method, the ConvertLocation line gives error..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to use pCoordTool.GetDatumList method but it also gives error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think there is something wrong with the declaration.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the creation of service, Iam binding and initializing the Engine Product.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Really important...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 06:36:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/esri-arcgis-defensesolutions-coordinatetoolclass/m-p/364025#M9581</guid>
      <dc:creator>TubaKumbara</dc:creator>
      <dc:date>2013-01-31T06:36:50Z</dc:date>
    </item>
  </channel>
</rss>

