<?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 Re: Using ArcObjects in standard web service in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/using-arcobjects-in-standard-web-service/m-p/534766#M14447</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If you are using 10.0 or 10.1:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//00460000002w000000"&gt;http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//00460000002w000000&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot! It works! My C# codes are as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; if (!ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.EngineOrDesktop))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return "";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; IAoInitialize aoInit = new AoInitializeClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;aoInit.Initialize(esriLicenseProductCode.esriLicenseProductCodeEngine);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, when I publish the web service project to IIS, the web service can not be loaded. I am confused again. Any of your suggestion is highly appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Nov 2012 02:31:59 GMT</pubDate>
    <dc:creator>XintaoLiu</dc:creator>
    <dc:date>2012-11-23T02:31:59Z</dc:date>
    <item>
      <title>Using ArcObjects in standard web service</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/using-arcobjects-in-standard-web-service/m-p/534763#M14444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I created a standard web service using C# VS 2010. The operating system is Windows 7 and IIS version is 7. I added ArcGIS references to the C# web service project and tried to do: IAoInitialize m_pAoInit = new AoInitialize(). It can be done. But when I tried: IPoint p = new PointClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I got the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Retrieving the COM class factory for component with CLSID {00A5CB41-52DA-11D0-A8F2-00608C85EDE5} failed due to the following error: 80040111 ClassFactory cannot supply requested class (Exception from HRESULT: 0x80040111 (CLASS_E_CLASSNOTAVAILABLE)).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestion? Thanks in advance!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 21:08:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/using-arcobjects-in-standard-web-service/m-p/534763#M14444</guid>
      <dc:creator>XintaoLiu</dc:creator>
      <dc:date>2012-11-21T21:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using ArcObjects in standard web service</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/using-arcobjects-in-standard-web-service/m-p/534764#M14445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried to initialize the license:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public WebService1()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IAoInitialize m_AoInitialize = new AoInitializeClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; esriLicenseStatus status = m_AoInitialize.IsProductCodeAvailable(esriLicenseProductCode.esriLicenseProductCodeStandard);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But there was no response when run to the second sentence. I just could not figure out whether ArcObjects can be used in a standard web service. Any of your reply is highly appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2012 02:33:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/using-arcobjects-in-standard-web-service/m-p/534764#M14445</guid>
      <dc:creator>XintaoLiu</dc:creator>
      <dc:date>2012-11-22T02:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using ArcObjects in standard web service</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/using-arcobjects-in-standard-web-service/m-p/534765#M14446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you are using 10.0 or 10.1:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//00460000002w000000"&gt;http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//00460000002w000000&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2012 10:00:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/using-arcobjects-in-standard-web-service/m-p/534765#M14446</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2012-11-22T10:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using ArcObjects in standard web service</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/using-arcobjects-in-standard-web-service/m-p/534766#M14447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If you are using 10.0 or 10.1:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//00460000002w000000"&gt;http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//00460000002w000000&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot! It works! My C# codes are as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; if (!ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.EngineOrDesktop))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return "";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; IAoInitialize aoInit = new AoInitializeClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;aoInit.Initialize(esriLicenseProductCode.esriLicenseProductCodeEngine);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, when I publish the web service project to IIS, the web service can not be loaded. I am confused again. Any of your suggestion is highly appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2012 02:31:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/using-arcobjects-in-standard-web-service/m-p/534766#M14447</guid>
      <dc:creator>XintaoLiu</dc:creator>
      <dc:date>2012-11-23T02:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using ArcObjects in standard web service</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/using-arcobjects-in-standard-web-service/m-p/534767#M14448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If your web service is x64 then you have to bind and license to ArcGIS Server.&amp;nbsp; Desktop is strictly 32 bit, i.e. x86.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2012 10:44:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/using-arcobjects-in-standard-web-service/m-p/534767#M14448</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2012-11-23T10:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using ArcObjects in standard web service</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/using-arcobjects-in-standard-web-service/m-p/534768#M14449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If your web service is x64 then you have to bind and license to ArcGIS Server.&amp;nbsp; Desktop is strictly 32 bit, i.e. x86.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you so much! Yes, I have changed my C# project to x86, and the target .Net Framework to 2.0. Inside IIS at the server level, the ISApi and CGI is set to allow ASP.Net 2.0. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To my surprise, in debugging mode, everything runs smoothly. I can use ArcObjects to develop powerful tools for web service to consume. But, when try to publish it, the same problem occurs again. That is, if I put the following codes at the beginning, the webservice cannot be loaded, and there is not any responses:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if (!ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.EngineOrDesktop))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;return "";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IAoInitialize aoInit = new AoInitializeClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;aoInit.Initialize(esriLicenseProductCode.esriLicenseProductCodeEngine);&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2012 11:25:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/using-arcobjects-in-standard-web-service/m-p/534768#M14449</guid>
      <dc:creator>XintaoLiu</dc:creator>
      <dc:date>2012-11-23T11:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using ArcObjects in standard web service</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/using-arcobjects-in-standard-web-service/m-p/534769#M14450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I suspect that you have not configured your web service to run as x86, i.e. 32 bits only.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2012 13:43:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/using-arcobjects-in-standard-web-service/m-p/534769#M14450</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2012-11-23T13:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using ArcObjects in standard web service</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/using-arcobjects-in-standard-web-service/m-p/534770#M14451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I suspect that you have not configured your web service to run as x86, i.e. 32 bits only.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a million for your patience. I really appreciate that! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I capture the settings of my C# project the the IIS on Windows 7 computer (please see attached picture). When I test the project in debugging mode, that is, using the Visual Studio Development Server, something like &lt;/SPAN&gt;&lt;A href="http://localhost:55722/myArcObjectSvc.asmx"&gt;http://localhost:55722/myArcObjectSvc.asmx&lt;/A&gt;&lt;SPAN&gt;, everything works fine. I can create ArcObjects and connect Oracle via ArcSDE. But, When I public the service to IIS, the service cannot run. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you again. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]19494[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2012 14:31:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/using-arcobjects-in-standard-web-service/m-p/534770#M14451</guid>
      <dc:creator>XintaoLiu</dc:creator>
      <dc:date>2012-11-23T14:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using ArcObjects in standard web service</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/using-arcobjects-in-standard-web-service/m-p/534771#M14452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just Google on "Windows 7 IIS 32 bit".&amp;nbsp; Here is one link which discusses this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.codeproject.com/Tips/325824/Running-a-32-bit-application-under-IIS-on-a-64-bit"&gt;http://www.codeproject.com/Tips/325824/Running-a-32-bit-application-under-IIS-on-a-64-bit&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2012 15:35:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/using-arcobjects-in-standard-web-service/m-p/534771#M14452</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2012-11-23T15:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using ArcObjects in standard web service</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/using-arcobjects-in-standard-web-service/m-p/534772#M14453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks! Besides the settings in C# project and IIS, I also need to change license initialization codes as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.EngineOrDesktop);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IAoInitialize m_AOInit = new AoInitializeClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;esriLicenseStatus&amp;nbsp; licenseStatus = m_AOInit.Initialize(esriLicenseProductCode.esriLicenseProductCodeArcServer);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then the whole thing begins to work!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Nov 2012 14:18:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/using-arcobjects-in-standard-web-service/m-p/534772#M14453</guid>
      <dc:creator>XintaoLiu</dc:creator>
      <dc:date>2012-11-24T14:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using ArcObjects in standard web service</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/using-arcobjects-in-standard-web-service/m-p/534773#M14454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thanks! Besides the settings in C# project and IIS, I also need to change license initialization codes as follows:&lt;BR /&gt;&lt;BR /&gt;ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.EngineOrDesktop);&lt;BR /&gt;IAoInitialize m_AOInit = new AoInitializeClass();&lt;BR /&gt;esriLicenseStatus&amp;nbsp; licenseStatus = m_AOInit.Initialize(esriLicenseProductCode.esriLicenseProductCodeArcServer);&lt;BR /&gt;&lt;BR /&gt;Then the whole thing begins to work!&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi, Can you help me? i have the same issue, i created a web service, but not work, can you explain me, as resolved your issue? thnks, sorry my english, i not write very well. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;best regards.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2013 15:34:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/using-arcobjects-in-standard-web-service/m-p/534773#M14454</guid>
      <dc:creator>GlendaLopez</dc:creator>
      <dc:date>2013-05-20T15:34:55Z</dc:date>
    </item>
  </channel>
</rss>

