I have implemented a DNN module that uses a user-defined control (this user-defined control has implemented GoogleAnalytics tracking for our own use).
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.
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?
The piece of code in the control that attempts to access the config file is provided below:
string path = Assembly.GetExecutingAssembly().CodeBase;
FrameworkConfig.instance = new FrameworkConfig(ConfigurationManager.OpenMappedMachineConfiguration(new ConfigurationFileMap(path + ".config")));
note: FrameworkConfig
is a wrapper class for System.Configuration
object.
In short, I need to know what does Assembly.GetExecutingAssembly().CodeBase
return when called through a DNN module? other alternatives?