<?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: App.config in Server Object Extension? in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/app-config-in-server-object-extension/m-p/158418#M6233</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;At least in versions prior to 10.1, I think that you could find ArcGISSOC.exe and place ArcGISSOC.config in that directory.&amp;nbsp; Essentially you need to find the host executable image and place the config file next to it.&amp;nbsp; I've done this very thing in order to configure log4net when used in conjunction with ArcMap.exe.&lt;BR /&gt;&lt;BR /&gt;I personally do not think that doing this is a good idea.&amp;nbsp; Perhaps you could create your own XML configuration file and literally read it yourself.&amp;nbsp; Just look in whatever directory your assembly is executing out of.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for the reply. I agree going with the first option is not a good idea.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have even tried creating my own xml and reading it with no success. The xml does gets packaged in the soe (you can see it after changing .soe extension to .zip). However, it appears while executing it still doesn't read it. I am not aware of how the soe is exploded and where it is placed in ArcGIS Server - may be the dll gets seperated and gets loaded somewhere and that's why it is not able to find the app.config file (which is technically &amp;lt;dllName&amp;gt;.dll.config file.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Aug 2012 18:13:13 GMT</pubDate>
    <dc:creator>AnandTrivedi1</dc:creator>
    <dc:date>2012-08-31T18:13:13Z</dc:date>
    <item>
      <title>App.config in Server Object Extension?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/app-config-in-server-object-extension/m-p/158412#M6227</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 trying to use App.config file in Server object extension that I am building. The app.config file does gets copied to the SOE (verified by renaming the .soe file to .zip file and checking the contents). But I am unable to read that app.config file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was wondering if you guys have come across similar issues.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 21:04:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/app-config-in-server-object-extension/m-p/158412#M6227</guid>
      <dc:creator>AnandTrivedi1</dc:creator>
      <dc:date>2012-08-29T21:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: App.config in Server Object Extension?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/app-config-in-server-object-extension/m-p/158413#M6228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;app.config usually applies to the application, i.e. ArcMap, ArcGISSOC, etc.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 10:22:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/app-config-in-server-object-extension/m-p/158413#M6228</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2012-08-30T10:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: App.config in Server Object Extension?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/app-config-in-server-object-extension/m-p/158414#M6229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;what do you mean by 'unable to read'?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you using System.Configuration?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;do you have appSetting keys in the config file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;what happens when you try to read those keys?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;what is the error?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 12:55:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/app-config-in-server-object-extension/m-p/158414#M6229</guid>
      <dc:creator>KevinGooss</dc:creator>
      <dc:date>2012-08-30T12:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: App.config in Server Object Extension?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/app-config-in-server-object-extension/m-p/158415#M6230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;what do you mean by 'unable to read'?&lt;BR /&gt;Are you using System.Configuration?&lt;BR /&gt;do you have appSetting keys in the config file?&lt;BR /&gt;what happens when you try to read those keys?&lt;BR /&gt;what is the error?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes I am using System.configuration and other general ways you would try to read app.config. I am trying to read the app.config in my construct folder of the server object extension. However, it is not finding the app.config file and the keys and the values are appearing as null.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 20:30:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/app-config-in-server-object-extension/m-p/158415#M6230</guid>
      <dc:creator>AnandTrivedi1</dc:creator>
      <dc:date>2012-08-30T20:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: App.config in Server Object Extension?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/app-config-in-server-object-extension/m-p/158416#M6231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;app.config usually applies to the application, i.e. ArcMap, ArcGISSOC, etc.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, for SOE, how would you go about it if you want the flexibility of specifying parameters outside the dll or .soe file. I can use property but the requirement is to use config files.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 20:32:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/app-config-in-server-object-extension/m-p/158416#M6231</guid>
      <dc:creator>AnandTrivedi1</dc:creator>
      <dc:date>2012-08-30T20:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: App.config in Server Object Extension?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/app-config-in-server-object-extension/m-p/158417#M6232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;At least in versions prior to 10.1, I think that you could find ArcGISSOC.exe and place ArcGISSOC.config in that directory.&amp;nbsp; Essentially you need to find the host executable image and place the config file next to it.&amp;nbsp; I've done this very thing in order to configure log4net when used in conjunction with ArcMap.exe.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I personally do not think that doing this is a good idea.&amp;nbsp; Perhaps you could create your own XML configuration file and literally read it yourself.&amp;nbsp; Just look in whatever directory your assembly is executing out of.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2012 10:42:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/app-config-in-server-object-extension/m-p/158417#M6232</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2012-08-31T10:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: App.config in Server Object Extension?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/app-config-in-server-object-extension/m-p/158418#M6233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;At least in versions prior to 10.1, I think that you could find ArcGISSOC.exe and place ArcGISSOC.config in that directory.&amp;nbsp; Essentially you need to find the host executable image and place the config file next to it.&amp;nbsp; I've done this very thing in order to configure log4net when used in conjunction with ArcMap.exe.&lt;BR /&gt;&lt;BR /&gt;I personally do not think that doing this is a good idea.&amp;nbsp; Perhaps you could create your own XML configuration file and literally read it yourself.&amp;nbsp; Just look in whatever directory your assembly is executing out of.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for the reply. I agree going with the first option is not a good idea.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have even tried creating my own xml and reading it with no success. The xml does gets packaged in the soe (you can see it after changing .soe extension to .zip). However, it appears while executing it still doesn't read it. I am not aware of how the soe is exploded and where it is placed in ArcGIS Server - may be the dll gets seperated and gets loaded somewhere and that's why it is not able to find the app.config file (which is technically &amp;lt;dllName&amp;gt;.dll.config file.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2012 18:13:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/app-config-in-server-object-extension/m-p/158418#M6233</guid>
      <dc:creator>AnandTrivedi1</dc:creator>
      <dc:date>2012-08-31T18:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: App.config in Server Object Extension?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/app-config-in-server-object-extension/m-p/158419#M6234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anand,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you got it working finally? I also have similar issue. Is there a way we can use the configuration file to read the parameters instead of setting properties in Contruct?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 21:31:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/app-config-in-server-object-extension/m-p/158419#M6234</guid>
      <dc:creator>UdayBurrey</dc:creator>
      <dc:date>2017-07-28T21:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: App.config in Server Object Extension?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/app-config-in-server-object-extension/m-p/158420#M6235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you can write similar code&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;var appConfig = System.Configuration.ConfigurationManager.OpenExeConfiguration(Assembly.GetExecutingAssembly().Location);&lt;BR /&gt;string myValue= appConfig.AppSettings.Settings["myKeyName"].Value;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your app.config&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&amp;lt;?xml version="1.0" encoding="utf-8" ?&amp;gt;&lt;BR /&gt;&amp;lt;configuration&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;appSettings&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add key="myKeyName" value="testValue"/&amp;gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&amp;nbsp; &amp;lt;/appSettings&amp;gt;&lt;BR /&gt;&amp;lt;/configuration&amp;gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 10:21:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/app-config-in-server-object-extension/m-p/158420#M6235</guid>
      <dc:creator>nicogis</dc:creator>
      <dc:date>2017-08-24T10:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: App.config in Server Object Extension?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/app-config-in-server-object-extension/m-p/158421#M6236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response Domenico.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Every change in the app.config has to be compiled and the modified .soe file has to be registered once again with ArcGIS server. I&amp;nbsp;am trying to avoid registering the SOE again and again for every configuration change.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 14:45:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/app-config-in-server-object-extension/m-p/158421#M6236</guid>
      <dc:creator>UdayBurrey</dc:creator>
      <dc:date>2017-08-24T14:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: App.config in Server Object Extension?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/app-config-in-server-object-extension/m-p/158422#M6237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could also set a connection to your db in costruct soe and get in a table your values configuration in methods soe so you change in table without register again .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 17:44:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/app-config-in-server-object-extension/m-p/158422#M6237</guid>
      <dc:creator>nicogis</dc:creator>
      <dc:date>2017-08-24T17:44:19Z</dc:date>
    </item>
  </channel>
</rss>

