How can I prevent .NET from using the compiled .config settings when no config file is present?
For example, I have a connection string setting in the app.config file that specifies a development server. When built, this produces an .exe.config file. And all is well.
However, if you ever forget to tote along the .exe.config file, the...
2009-11-03 16:36:10,818 [3404] ERROR WebApplication.Global [UserHostAddress: [::1] ApplicationSource [//TestService.svc]] - Application_Error handled Exception: Stack trace for 1 exception(s). Root cause at the top.
1: An item with the same key has already been added.
System.ArgumentException
inside C:\Windows\assembly\GAC_MSIL\Sys...
I'm having a very hard time trying to access a custom configuration section in my config file.
The config file is being read from a .dll that is loaded as a plug-in. I created the Configuration and necessary code using the Configuration Section Designer VS addin.
The namespace is 'ImportConfiguration'. The ConfigurationSection class is...
I am trying to use the .net configuration tool in windows 7 but can not find it. Does anyone know where to download this tool from or where it is located in windows 7 (prof)?
...
I have a language file with a long list of strings for my view files.
My question is how to pass a variable or a config item to a language file?
<?php $lang['error_activation_key_expired'] = 'The activation key you have attempted using has expired. Please request a new Activation Key <a href="'.$this->config->item('base_url').'member/re...
hi i'm trying make a setup msi for my application with wix v3
I have a problem about this task;
I need a user input that will be stored in my application's config file
(for example i need a dialog for sql connection string and the user input will be written in application config file.)
I tried to google but got nothing worked
Any help ...
I'm in the process of evaluating the benefits of Zend_Config_Ini versus using a simple constant file.
e.g. -
define('DB_HOST',localhost);
//versus
$config = new Zend_Config_Ini('/path/to/config.ini', 'staging');
echo $config->database->params->host; // prints "dev.example.com"
The only thing is that the $config is not globally ac...
Hi, i have a config class which is an abstract class. I would like to set it up so it automatically detects which server the site is on and then assigns appropriate constants. I get an error on line ten $this->hostName = $_SERVER['SERVER_NAME']; expecting `T_FUNCTION.
What is the correct way to do this and is there a better way to do thi...
Log files can get very big, very fast if you log wcf calls and messages. I want to split up the log files by date. I can write my own tracelistener but i prefer some constant in the log if that is possible. Something like this
<sharedListener>
<add initilizeDate="SomeLogFile{TODAY}.log"
this would output a log file like this : SomeLo...
In ASP.NET, when creating a custom config section, how do I limit the number of a particular section that can be declared?
For example, if in web.config, I repeat the appSettings section...
<appSettings />
<appSettings />
...I get an exception when the configuration loads.
If I do the same with my section...
<employer />
<employe...
How to ensure that the WCF ChannelFactory uses Binding settings in xml configuration (MaxArrayLength is ignored)
Hi, I am new to Wcf and and writing my first Wcf service and client. I prefer not to use
tools to generate config; I would rather write the config myself. The problem I am trying
to solve is of a client communicating with a s...
I'm attempting to make use of configuration transformations in a continuous integration environment.
I need a way to tell the TFS build agent to perform the transformations. I was kind of hoping it would just work after discovering the config transform files (web.qa-release.config, web.production-release.config, etc...). But it doesn't....
I am currently running a Hudson instance on a VM slice. As I don't have a need to run more than a couple small applications from it, I'm minimizing how much space I devote to it. The sizes I've defined for this slice seem fine to me, however Hudson seems to have it's own ideas on what are considered minimum disk and temp space threshol...
Is there a helper method/object/methodology for getting a reference to a Zend_Application's config resource?
I know I can do something like
$config = new Zend_Config_Ini($file, $environment);
but that's going to reload/parse the config file. I'm looking for a way to peek at the given configuration value for a running Zend_Applicati...
Often in example code for software, I see a connection string eg. mysql://user@localhost
in the configuration file for the software to get access to the database. This seems fine for a test/development server but for production, this seems very insecure. What is the correct way to do this in a production environment?
...
Hello,
I'm trying to use siFR 3. I need set to the flash element to use max width for a text replaced. The width of flash text can use 200px MAX.
The problem of the following code is that
Here's is my test code :
sIFR.replace(myFont, {
selector: '.myDiv'
, css: {
'.sIFR-root': { 'color': '#077cd7' }
}
, forceSingleLin...
What is the best way to parse INI file in Perl and convert it to hash?
...
Hi,
What is the fastest way to store config data in PHP so that it is easily changeable (via PHP)? First I thought about having config.php file, but I can't edit it on fly with PHP, at least not very simply? Then I thought about having XML files, but parsing them for each HTTP request is overwhelming. So, I thought about INI files, but ...
I want to redirect the sub-domain webmail to /roundcube for that domain. This have to work for all virtual hosts in apache.
Example:
webmail.example.com must point to [www.]example.com/roundcube
How is this possible? The server where it has to be done is configured with direct admin :S
...
We are having 7 different components and 7 different enviournments where we install all of these components.
So when these components are installed on these different env there are chances that we missout changing the server names in urls.
Any suggestions of managing these many eviournment config files in nicely fashioned way.
...