error page to display in this section to replace the error stack trace.
This element is used to configure regionalization settings for the Web application.This element is used to control how and where session status data is stored by the. NET Runtime Library.This element is used to enable (or disable) tracing support for the Web application.
For more informa
I. Understanding the Web. config file Web. config file is an XML text file that is used to store configuration information for an ASP. NET Web application, such as the most common settings for how to authenticate the ASP. It can a
Original article: http://www.codeproject.com/KB/aspnet/Manage_Webconfig.aspx
Introduction
The configsource attribute was firstly introduced in. NET Framework 2.0 to support external configuration files.
After upload website to online server, I need to manage the website setting from web. config, therefore, I save the specified ettings, connectionstrings and all se
First, recognizeWeb. config fileThe Web. config file is an XML text file that is used to store configuration information for an ASP. NET Web application, such as the most commonly used settings for the authentication of an ASP. NET Web
automatically.Introduction of configuration file nodeThe Web. config file is an XML text file whose root node is 1. The configsections element specifies the configuration section and the handler declaration. Because ASP. NET does not make any assumptions about how to handle the settings within the configuration file, this is necessary. However, ASP. NET will del
Web. config is an XML text file used to store ASP. net web application configuration information (for example, the most common settings ASP. net web application authentication method), which can appear in every directory of the application. After you create a
encrypted by default using RSA;
Default connection local ASPNETDB.MDF database;
The following WCF Service Behavior are activated by default:
Windows Workflow Foundation related Service Behavior;
Ws*-http, and RESTful WCF Service Behavior (and. NET 3.5SP1 compatible, but should then use WEBAPI);
WCF Service Discovery Behavior;
WCF Service Buffer Transport support (relative to stream transfer support);
WCF's ws*-http,tcp,
1. Understand the Web. config file
The Web. config file is an XML text file used to store ASP. NET web applications.
Program Configuration information (for example, the most common setting of ASP. NET web application authenticat
1. Understand the Web. config file
The Web. config file is an XML text file used to store ASP. NET web applications.
Program Configuration information (for example, the most common setting of ASP. NET web application authenticati
Each web application inherits settings from the machine. config file and basic web. config file. In addition, you can separately set each web application. For example, you can set a specific method for authorization, set the debug
configuration sections. In fact, the ASP. NET web page is dependent on this function. Call the openwebconfiguration () method to obtain a configuration object, use the getsection () method of the object to obtain the configuration section to be modified, and submit the modification using the SAVE () method.
ASP. NET uses synchronization to modify the settings.CodeEnsure that multiple users cannot submit updates at the same time to process updates se
Web. the config file is an XML file, but because of its permissions, it cannot be modified in the deployment process as it is in a common XML file. net provides a class. config.The following code modifies a common class for web. config:
Using System;Using System. Configuration;Using System.
impractical practice to authorize access based on users. There are many users, which may be increased or decreased at any time, it is impossible to add access authorization to new users at any time in the configuration file.
The following describes the forms process.
Basic Principles of Forms authentication:
1. Authentication
To use forms authentication, you must first make the corresponding settings in Web
data using customized data.InProc: The default value, which is stored by the ASP. NET worker process to store session state data, is faster, but consumes less memory and is not suitable for storing large user session data.OFF: Disables session state.SQL Server: Saves session state data using an out-of-process SQL database.StateServer: Use the out-of-process ASP. NET State Service to store session state data.Globalization.Configure the globalization settings
1. Understand that the Web. config file web. config is an XML text file used to store ASP. NET web applications.
Program Configuration information (for example, the most common setting of ASP. NET web application authentication m
Web. config is an XML text file used to store ASP. NET Web application configuration information (for example, the most common settings ASP. NET Web application authentication method), which can appear in every directory of the application. When you pass. after creating a
section physical_directory
Or:
Aspnet_regiis.exe-Pd section-app virtual_directory
Decrypts a specific instance of the web. config file of a specific website:
Aspnet_regiis.exe-PDF "connectionstrings" "C: \ Inetpub \ wwwroot \ mysite"
Or:
You can also specify that aspnet_regiis.exe is used to encrypt/decrypt the machine.
ArticleDirectory
(1) create a section class
(2) Registration Section class
(3) Compile the code to get the custom section information on the Web page.
Expand custom configuration again
We know that you can use the ProgramThe custom information used. However, this element has two obvious restrictions.
1. You cannot save structured information, such as a list or a set of related settings
"DataProtectionConfigurationProvider" decrypts the Web of a specific website. the common form of the config file is aspnet_regiis.exe-pdf section physical_directory or: aspnet_regiis.exe-pd section-app virtual_directory. specific instance of the config file: aspnet_regiis.exe-p Df "connectionStrings" "C: \ Inetpub \ wwwroot \ MySite" Or: You can also specify tha
it!In ASP.. net, through the Web. config, you can use the
Web. the config file is a standard XML file. We can use it to set each web application under a machine, an application, or the Asp.net page under a directory. Of course, it can also be set for a separate
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.