title: Accessing .config file inside a DotNetNuke Module
body: <p>I have implemented a DNN module that uses a user-defined control (this user-defined control has implemented GoogleAnalytics tracking for our own use).</p>
  
  <p>The control needs to access a config file in order to grab the configuration settings of our google analytics account. For example, the account code (UA-dddddd-dd), etc.</p>
  
  <p>My question: 
  Since I'm installing the module on DotNetNuke, where is the proper location to put the config file at OR what config file would it be accessing by default? </p>
  
  <p>The piece of code in the control that attempts to access the config file is provided below:</p>
  
  <pre><code>string path = Assembly.GetExecutingAssembly().CodeBase;
  FrameworkConfig.instance = new FrameworkConfig(ConfigurationManager.OpenMappedMachineConfiguration(new ConfigurationFileMap(path + ".config")));
  </code></pre>
  
  <p>note: <code>FrameworkConfig</code> is a wrapper class for <code>System.Configuration</code> object. </p>
  
  <p>In short, I need to know what does  <code>Assembly.GetExecutingAssembly().CodeBase</code> return when called through a DNN module? other alternatives?</p>