configuration

Best way for a dll to get configuration information?

We have developed a number of custom dll's which are called by third-party Windows applications. These dlls are loaded / unloaded as required. Most of the dlls call web services and these need to have urls, timeouts, etc configured. Because the dll is not permanently in memory, it has to read the configuration every time it is invoked....

Where do you store your misc project settings?

Some projects have properties have miscellaneous settings such as: "AllowPayments", "ShowSideBar", "SectionTitle". Really things that don't necessarily fit in to other objects. How do you guys store these kinds of values? ApplicationSettings? Flat File? Database table? How do you access them? Static object with properties? DB call? W...

DocumentRoot in .htaccess is causing an error

I have DocumentRoot /var/www/test in my .htaccess file. This is causing the apache server to give me a 500 internal server error. The error log file shows: alert] [client 127.0.0.1] /var/www/.htaccess: DocumentRoot not allowed here AllowOveride All is set in my conf file. Any idea why this is happening? ...

Different dependency settings for 'Debug' and 'Release' build configuration in VisualC++ 6.0

I'm using VisualC++ 6.0. (and, yes, I'm using Mosaic browser..;) My VC++ project has different dependency setting for 'Debug' and 'Release' build configuration. So, when I switch from one configuration to other, I have to change the dependency by hand every time. Is there any better way to do this? Can I keep my dependency setting accor...

Linux configuration file libraries

Are there any good configuration file reading libraries for C\C++ that can be used for applications written on the linux platform. I would like to have a simple configuration file for my application. At best i would like to steer clear of XML files that might potentially confuse users. ...

Best Way to Manage Configuration Data

I'm working on a SaaS application where each customer will have different configurations depending on the edition they have purchased, additional features they have purchased, etc. For example, a customer might have a limit of 3 custom reports. Obviously I want to store this configuration in the database, but I am unsure of the best app...

Restlet - serving up static content

Using Restlet I needed to serve some simple static content in the same context as my web service. I've configured the component with a Directory, but in testing, I've found it will only serve 'index.html', everything else results in a 404. router.attach("/", new Directory(context, new Reference(baseRef, "./content")); So... http://ser...

Setup wxWidget in Netbeans 6.1 C++ On MS Windows?

Hi, Im running Netbeans 6.1 with C++ Plugin and cygwin (gcc compiler) how do I setup wxWidget to work with it? ...

Openfire 3.6.0a HybridAuthprovider error Ldap and Mysql Auth

We need both mysql and AD auth in Openfire 3.6.0a, as soon as I enable the hybridauthprovider the error log gives me 2008.10.01 11:21:12 [org.jivesoftware.openfire.auth.HybridAuthProvider.(HybridAuthProvider.java:93)] A primary AuthProvider must be specified. Authentication will be disabled. My setting under System Properties in the ad...

WebRequest from localhost to localhost : why is it being denied?

...

Is there a way to override ConfigurationManager.AppSettings?

I really want to be able to have a way to take an app that currently gets its settings using ConfigurationManager.AppSettings["mysettingkey"] to actually have those settings come from a centralized database instead of the app.config file. I can make a custom config section for handling this sort of thing, but I really don't want other d...

log4net Configuration Section for NUnit Test Project

I am running NUnit with the project named AssemblyTest.nunit. The test calls another assembly which uses the log4net assembly. This is using nunit version 2.4.3 with the .net 2.0 framework. In TestFixtureSetup I am calling log4net.Config.XmlConfigurator.Configure( ) and am getting the following error: System.Configuration.Configuratio...

Putting configuration information in a DLL

In my project I have functionality that is being used as a web application and as a console application (to be started from the task scheduler). To do that I put the common code in a DLL that is being used by both the web application and the console application. This works fine. However, the console and web applications now have an App....

How do I select a .Net application configuration file from a command line parameter?

I would like to override the use of the standard app.config by passing a command line parameter. How do I change the default application configuration file so that when I access ConfigurationManager.AppSettings I am accessing the config file specified on the command line? Edit: It turns out that the correct way to load a config file t...

Protecting Section in App.config file Console Application

Hi, I am trying to encrypt the appSettings and connectionStrings section in App.config file of the console application. For some reason section.SectionInformation.IsProtected is always returning true. static void Main(string[] args) { EncryptSection("connectionStrings", "DataProtectionConfigurationProvider"); ...

How can I set up a configuation file for .NET console applications?

Is it possible to use a ".net configuration" file for a .NET console application? I'm looking for an equivalent to web.config, but specifically for console applications... I can certainly roll my own, but If I can use .NET's built in configuration reader then I would like to do that...I really just need to store a connection string......

CruiseControl.net failing with HTTP Error 500 on Vista x64

I installed CruiseControl.net ( from the CruiseControl.NET-1.4-Setup.exe installer ) on my Vista x64 development machine. The server portion is running fine; however, the webdashboard piece is not working. The first error message I saw when I tried to pull up http://localhost/ccnet squawked about not being able to run in integrated pip...

How do I store an XML value in my .NET App.Config file

I am trying to store an xml value in my app.config file. The app.config does not like this and I cannot use the <![CDATA[ construct to ignore the XML'ness of my value. Is there a way to do it? Value example:<FieldRef Name='LinkfileName' Nullable='True'/><FieldRef Name='Web' Nullable='True'/> ...

SQL Server Management Studio, getting title bar to show more detail.

I use SQL Server Management Studio 2005(SSMS) for most of my T-SQL and general SQL DB maintenance, but one thing that I would love to change is the level of detail the title bar gives you about each instance of SSMS you have open. I would love to be able to see the connected server from the active tab at the very least. e.g. Any i...

Best way to keep config files under SVN ?

What is the best way to keep your configuration files (e.g httpd.conf, my.cnf, .bashrc ...) under version control? In adition to the versioning benefit, I want the solution to work as backup as well, so that I can bring a brand new server and checkout (or export) the config files out of SVN directly A good touch will be to store the con...