configuration

Problem move website from IIS 6 to IIS 7

In IIS 6, to configure mapping, I can right click to Application ==> Properties ==> At Directory tab, choose Configuration ==> At Mapping tab, I can choose a extension (for ex: .aspx) , double click and copy Executable path, then Add a new extension (for ex: .htm) and paste path that just copyed. (all of them finished, website run normal...

Immutable types as configuration properties

Is it possible to use immutable types as configuration properties with .NET's configuration API? Let's say I have an immutable type called MyClass: public class ImmutableClass { private readonly int value; public ImmutableClass(int value) { this.value = value; } public int Value { get { return ...

Saving 'global' data as a standard user?

Hello, in my application I need to store settings that are 'global' (i.e. not user specific) in a known and predictable location. I want the application to be able to be run from anywhere (as a standard user, NOT administrator), including multiple copies from different locations and be able to read and write the saved config files. The...

Server-Side Configuration for GWT

Trying to avoid re-inventing the wheel here. I have a Google Web Toolkit page that I'm preparing to deploy, but the webservice that I'm communicating with will have a different relative address on the deployed server than my local test machine. As such, I'm looking for a simple way to deploy with some sort of easily editable configurat...

Struts 2 File Upload Interceptor configuration problem

I'm having two problems when trying to configure the Struts 2 File Upload Interceptor in my application. I want to change the parameter maximumSize (the default value is 2 MB, I need it to be 5 MB) and the message resource struts.messages.error.file.too.large (the app locale is pt_BR, so the message is in portuguese, not english). The a...

Code Behing update web.config mapping issue

Hello, I from the code behind I need to update my web.config. This has never been a problem before, however I am getting an error recently. The errors say "Failed to map the path '/'." The lines commented out were different variations of what i tried. //Configuration myWebConfig = WebConfigurationManager.OpenWebConfiguration(Server.MapP...

How to include directories in cmake generated visual studio projects?

I have (roughly) the following CMakeLists.txt project(Test) set(SOURCE 123.cpp 456.cpp ) find_package(Boost COMPONENTS unit_test_framework REQUIRED) include_directories(${Boost_INCLUDE_DIRS}) link_directories(${Boost_LIBRARY_DIRS}) message("${Boost_INCLUDE_DIRS}") add_executable(Tests ${SOURCE}) The message generated by message...

MS-Access .mdb compiler?

Does anyone know of a tool that can create a MS-Access database from a configuration file? It needs to be able to do things outside of the SQL spec such as be able to create macros, modules, and forms, and make changes to the "Lookup" tab that's available in Design View. And if possible, I need to be able to export an existing database ...

What properties file format can be read by both Ruby and PHP?

I want to store my database connection information in a single file, which both PHP and Ruby scripts can use. Should I use name-value pairs, yaml, xml, or something else? ...

How to define custom configuration variables in rails

Hi, I was wondering how to add custom configuration variables to a rails application and how to access them in the controller, for e.g I wanna be able to define an upload_directory in the configuration files say development.rb and be able to access it in one of my controllers. Secondly I was planning to have S3 support for uploads in m...

Should my program's "services" be responsible to get their own configuration?

My program consists from several "services" (I'm not talking about SOA, so don't get confused), and each of these "services" is using some configuration (for example, a directory path). This configuration should be read from a configuration file, as they tend to change (without changing the program's logic, that is). So my question is t...

Run Apache 2.2 as a single httpd.exe for debugging.

I'm running Apache 2.2 in console mode on Windows to test an apache module I'm writing. By default, a parent httpd.exe is started (with one thread), which starts a child httpd.exe with a number of worker threads. Now I have to attach the debugger to the child process each time to be able to debug my module. Is there a way to configure ...

Using configSource, and changing restartOnExternalChanges for core section

I'd like to use the configSource attribute of my web config section to define external files for various settings. Particularly, the appSettings section. This means my config file has the following entry: <appSettings configSource="My.AppSettings.config" /> However, if this file is updated, the settings are not automatically picked u...

Automated Deployment solution for multiple Java web-apps

I'm looking for solutions, preferably open source, that can manage deployments of multiple interdependent java web-applications. The solution requires an ability to create and store a release specification containing multiple items for release - specific versions of each application and relevant other artifacts (database config, apache ...

Using C#, how to allow editing of strings from outside the application?

I'm looking for a way to have an external file (resources, resx, assembly, config, xml, etc) editable by a user of my application. These would mostly contains strings of text related to database field names and the like. Preferably, something with an already existing free editor. I wouldn't mind doing an app for this if needed though. ...

Log4Net Dynamic Filename not working...

Hey folks... This is really starting to bother me. I'm just simple trying to add a property variable to a log4Net filename. Can anobdy see anything I'm doing wrong??? Here's the config... <appender name="logger1" type="log4net.Appender.FileAppender"> <file type="log4net.Util.PatternString" value="C:\temp\file_%property{foo}.log" ...

How to create user defined fields in Django

Ok, I am working on a Django application with several different models, namely Accounts, Contacts, etc, each with a different set of fields. I need to be able to allow each of my users to define their own fields in addition to the existing fields. I have seen several different ways to implement this, from having a large number of Custo...

Compare Configurations within Visual Studio?

Actually i come around a problem i get more often into as i like to: Consider the following: You just made a new solution/project and start creating/adding all the stuff you need. While you're doing so, you're always on the way within the debug configuration. You make changes to your configuration (in C++ projects especially compiler, l...

Testing w/ older versions of .Net

I have .Net 3.5 on my dev machine but am forced to deploy to a .Net 2.0 machine. Without wiping my current install is there a way to "dumb down" my version of .Net so it behaves like .Net 2.0? Thanks ...

asp.net Problem with assembly reference

Here is my code that tries to get a custom configuration object from web.config: LdapConfiguration ldapConfig = (LdapConfiguration)ConfigurationManager.GetSection("ldapConfiguration"); When that line of code is ran I get this error page. Here is screenshot showing that I have included the reference to the project that contains the co...