Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

live asp.net web.config settings

I've only recently started working with asp.net and c#. Is there a standard practice set of web.config settings for a live final website? There seem to be a ton of options available and I'm looking to streamline performance, close possible security holes and other unnecessary options.

like image 752
Paulj Avatar asked Sep 11 '08 00:09

Paulj


People also ask

What is web config in ASP NET?

The web.config is a file that is read by IIS and the ASP.NET Core Module to configure an app hosted with IIS.

How to configure an application in ASP NET?

In ASP.Net, all that needs to be done to configure an application is to create a Configuration file called ‘Web.config’ and place it in the root directory of the application.

How do I edit ASP NET Configuration file?

You can use any standard text editor or XML parser to create and edit ASP.NET configuration files. What Web.config file contains? There are number of important settings that can be stored in the configuration file.

What are the different types of settings in web config?

Settings within web.config are categorized into configuration sections. For example, the settings contained within the <system.web/> section pertains to ASP.NET settings for your application. You can change the authentication scheme of your app, as well as add or remove HTTP handlers to perform specific functions for specific file types.


2 Answers

Tip/Trick: Automating Dev, QA, Staging, and Production Web.Config Settings with VS 2005

like image 120
solrevdev Avatar answered Oct 26 '22 23:10

solrevdev


An empty web.config (or at least an absent <system.web> element) would mean that all of the framework's recommended defaults would take effect. You would then just need to be concerned with the host (e.g., IIS) set-up.

like image 25
Mark Cidade Avatar answered Oct 27 '22 00:10

Mark Cidade