configuration
Using different Web.config in development and production environment
I need to use different database connection string and SMTP server address in my ASP.NET application depending on it is run in development or production environment.
Using ConfigurationManager to load config from an arbitrary location
I’m developing a data access component that will be used in a website that contains a mix of classic ASP and ASP.NET pages, and need a good way to manage its configuration settings.
ASP.NET web.config: configSource vs. file attributes
Within an web.config
-file in an ASP.NET-application some sections of config, like appSettings
and connectionStrings
, supports the attributes file
and configSource
.
Add MIME mapping in web.config for IIS Express
I need to add a new MIME mapping for .woff file extensions to IIS Express.
What is the purpose of the Assemblies node in Web.Config?
When creating a new ASP.NET AJAX Web Application in Visual Studio 2005, the default web.config contains the following section (inside the compilation node):
Cannot use a leading ../ to exit above the top directory
I have a asp.net web site with it we have admin area with login page for admin only and all site is allowed for all – i need to ask how to define the right security configuration for it as i get this error
How to include ampersand in connection string?
I’m using Entity Framework 4 for a simple app and would like to bake my connection credentials into the following connection string:
VS 2010 Web.config transformations for debugging
I’m a fan of the new VS 2010 Web.config transformations. I use this feature for deployment purposes and wondered if it is possible to use them for debugging too.
Multiple values for a single config key
I’m trying to use ConfigurationManager.AppSettings.GetValues()
to retrieve multiple configuration values for a single key, but I’m always receiving an array of only the last value. My appsettings.config
looks like