<?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: Environment Settings for SOE in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/environment-settings-for-soe/m-p/402869#M10753</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The first solution of reading in an XML works best in this scenario, thanks. I decided to pass in a variable called 'environment' and it would open the appropriate XML which I can modify at any time and have my changes immediately picked up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Oct 2012 16:10:49 GMT</pubDate>
    <dc:creator>JustinHunter</dc:creator>
    <dc:date>2012-10-01T16:10:49Z</dc:date>
    <item>
      <title>Environment Settings for SOE</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/environment-settings-for-soe/m-p/402867#M10751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have recently been learning about SOE, and even made my first extension that can take in parameters passed by my companies CMS that will add/update a point on a table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With that said, we have three environments (develop/training/production) - normally I'd use an app.config / web.config to set an appSetting to point to a specific layer, but I haven't been able to figure out how to do this in SOE. Since the executing assembly seems to be ArcSOC.exe (I think) the app.config in my VS2010 project doesn't take affect. I need some way of being able to modify these layers based on the environment (name_&amp;lt;environment&amp;gt;), without creating three different extensions on my server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 17:13:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/environment-settings-for-soe/m-p/402867#M10751</guid>
      <dc:creator>JustinHunter</dc:creator>
      <dc:date>2012-09-26T17:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Environment Settings for SOE</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/environment-settings-for-soe/m-p/402868#M10752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This should easy to solve.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One solution is to put an XML file in a well known location on the machine and have your SOE read it when it starts up.&amp;nbsp; It doesn't have to be app.config.&amp;nbsp; Maybe something like C:\YourService\Parameters.xml?&amp;nbsp; Of course, you will have to deploy it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With the SOE there is also the ability to provide configuration options when it is enabled on the map service.&amp;nbsp; That would allow you to specify whatever parameters you need per map service.&amp;nbsp; In 9.3.1, I provided a property page to collect this information in ArcCatalog.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 23:22:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/environment-settings-for-soe/m-p/402868#M10752</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2012-09-26T23:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Environment Settings for SOE</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/environment-settings-for-soe/m-p/402869#M10753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The first solution of reading in an XML works best in this scenario, thanks. I decided to pass in a variable called 'environment' and it would open the appropriate XML which I can modify at any time and have my changes immediately picked up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 16:10:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/environment-settings-for-soe/m-p/402869#M10753</guid>
      <dc:creator>JustinHunter</dc:creator>
      <dc:date>2012-10-01T16:10:49Z</dc:date>
    </item>
  </channel>
</rss>

