<?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: System.Configuration.ConfigurationManager (my extension cant find it) in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/system-configuration-configurationmanager-my/m-p/373586#M9813</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Have you tried accessing the config settings using the built-in .NET functionality? The .NET runtime reads the application config file for you and provides an easy way to access the settings. In VB.NET, you can access the config settings using My.Settings.&amp;lt;setting&amp;gt;, where &amp;lt;setting&amp;gt; is the name of the config setting you want. In C#, this can be done using Properties.Settings.Default.&amp;lt;setting&amp;gt;.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Neil, Thanks for the reply. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is what you are describing any different than: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Adding a Reference to the "System.Configuration.dll" to your project in VisStudio&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;putting a "using" statement in the beginning of your class "using System.Configuration;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then using this construct to read key values out of the ArcMap.exe.config?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;All of this code does work on my production environment and is deployed for the users in my shop, it is just in my dev environment that the things have gone haywire after the App Server crashed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I suspect that there is an environmental setting that did not get reset after the crash. Is there a place I should look to let my SysAdmins know about?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Oct 2010 11:50:58 GMT</pubDate>
    <dc:creator>AndrewDavis</dc:creator>
    <dc:date>2010-10-05T11:50:58Z</dc:date>
    <item>
      <title>System.Configuration.ConfigurationManager (my extension cant find it)</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/system-configuration-configurationmanager-my/m-p/373582#M9809</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 have an extension which I wrote on the dev net here where I work, and it worked last week.&amp;nbsp; However, there was a crash and now my code dies on this line&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NameValueCollections appSettings = System.Configuration.ConfigurationManager.AppSettings;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am sure that something did not get switched back on here (as in the network), and want to know where does ArcMap go to connect/bond or gain access to the "System".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My quick watches all die on "System" or any other derivation of the term.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Sep 2010 10:50:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/system-configuration-configurationmanager-my/m-p/373582#M9809</guid>
      <dc:creator>AndrewDavis</dc:creator>
      <dc:date>2010-09-30T10:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: System.Configuration.ConfigurationManager (my extension cant find it)</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/system-configuration-configurationmanager-my/m-p/373583#M9810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Wrote a console app to roll through the System.Configuration.Configuration["AppSettings"] &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't think that this is an ArcMap thing, but if anyone has any experience with this please let me know..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Sep 2010 11:49:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/system-configuration-configurationmanager-my/m-p/373583#M9810</guid>
      <dc:creator>AndrewDavis</dc:creator>
      <dc:date>2010-09-30T11:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: System.Configuration.ConfigurationManager (my extension cant find it)</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/system-configuration-configurationmanager-my/m-p/373584#M9811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Wrote a console app to roll through the System.Configuration.Configuration["AppSettings"] &lt;BR /&gt; &lt;BR /&gt;I don't think that this is an ArcMap thing, but if anyone has any experience with this please let me know..&lt;/BLOCKQUOTE&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;Still Searching for the answer on this.&amp;nbsp; I am still not able to read information out of the ArcMap.exe.config file.&amp;nbsp; Just to check a possibility, I hard coded the values I read out of the config file and tested my code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Everything works..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know where and how ArcGIS makes connection to the config file for ArcMap?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 12:26:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/system-configuration-configurationmanager-my/m-p/373584#M9811</guid>
      <dc:creator>AndrewDavis</dc:creator>
      <dc:date>2010-10-04T12:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: System.Configuration.ConfigurationManager (my extension cant find it)</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/system-configuration-configurationmanager-my/m-p/373585#M9812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you tried accessing the config settings using the built-in .NET functionality?&amp;nbsp; The .NET runtime reads the application config file for you and provides an easy way to access the settings.&amp;nbsp; In VB.NET, you can access the config settings using My.Settings.&amp;lt;setting&amp;gt;, where &amp;lt;setting&amp;gt; is the name of the config setting you want.&amp;nbsp; In C#, this can be done using Properties.Settings.Default.&amp;lt;setting&amp;gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 13:18:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/system-configuration-configurationmanager-my/m-p/373585#M9812</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2010-10-04T13:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: System.Configuration.ConfigurationManager (my extension cant find it)</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/system-configuration-configurationmanager-my/m-p/373586#M9813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Have you tried accessing the config settings using the built-in .NET functionality? The .NET runtime reads the application config file for you and provides an easy way to access the settings. In VB.NET, you can access the config settings using My.Settings.&amp;lt;setting&amp;gt;, where &amp;lt;setting&amp;gt; is the name of the config setting you want. In C#, this can be done using Properties.Settings.Default.&amp;lt;setting&amp;gt;.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Neil, Thanks for the reply. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is what you are describing any different than: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Adding a Reference to the "System.Configuration.dll" to your project in VisStudio&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;putting a "using" statement in the beginning of your class "using System.Configuration;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then using this construct to read key values out of the ArcMap.exe.config?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;All of this code does work on my production environment and is deployed for the users in my shop, it is just in my dev environment that the things have gone haywire after the App Server crashed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I suspect that there is an environmental setting that did not get reset after the crash. Is there a place I should look to let my SysAdmins know about?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 11:50:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/system-configuration-configurationmanager-my/m-p/373586#M9813</guid>
      <dc:creator>AndrewDavis</dc:creator>
      <dc:date>2010-10-05T11:50:58Z</dc:date>
    </item>
    <item>
      <title>FOUND IT!! Re: System.Configuration.ConfigurationManager (my extension cant find it)</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/system-configuration-configurationmanager-my/m-p/373587#M9814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey folks, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It turned out that there was not anything "wrong" with my code. What had happened is that someone (possibly me, but I will not accept blame at this time) had inadvertently put a " " space in the opening line of the &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcMap.exe.config &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in front of the first line of the first tag. That threw the whole thing into a snit and it would not work at all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you Neil for your info, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope that if there is anyone else out there who runs into this problem, check the first line of your ArcMap.exe.config file for a space at the start of the first line outside to the left of the &amp;lt; character..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 16:29:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/system-configuration-configurationmanager-my/m-p/373587#M9814</guid>
      <dc:creator>AndrewDavis</dc:creator>
      <dc:date>2010-10-05T16:29:42Z</dc:date>
    </item>
  </channel>
</rss>

