=> dimasite

IT for(;;) fun!

  • Advertisements

How to open Web.config?

Posted by Dmitrij Ivanov on October 16, 2010

1. Open machine.config on the local machine.

2. Open root web.config on the local machine.

3. Open web.config for the application at the root of the default web site.

4. Open web.config for a subdirectory of the application found at /MyApp.

5. Open web.config for an application at the root of another site.
WebConfigurationManager.OpenWebConfiguration("/", "Another Site");

6. Open the <location> tag for a subdirectory at the application level.
WebConfigurationManager.OpenWebConfiguration("/", null, "/subdir");

7. Open machine.config on another computer, using credentials provided.
WebConfigurationManager.OpenMachineConfiguration(null, "remotemachine", "user", "password");

take a look to the link


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: