ASP. net3.5 Custom User Configuration web. config code

Source: Internet
Author: User

<? XML version = "1.0"?> <Br/> <! -- <Br/> note: In addition to manually editing this file, you can also use <br/> Web management tool to configure application settings. You can use the <br/> website> ASP. NET configuration option in Visual Studio. <Br/> the complete list of settings and comments is displayed on <br/> machine. config. in comments, the file is usually located in <br/>/Windows/Microsoft. net/framework/v2.x/config <br/> --> <br/> <configuration> <br/> <configsections> <br/> <sectiongroup name = "system. web. extensions "type =" system. web. configuration. systemwebextensionssectiongroup, system. web. extensions, version = 3.5.0.0, culture = neutral, publickeytoken = 31bf3856ad364e35 "> <br/> <sectiongroup name =" Scripting "Type =" system. web. configuration. scriptingsectiongroup, system. web. extensions, version = 3.5.0.0, culture = neutral, publickeytoken = 31bf3856ad364e35 "> <br/> <section name =" scriptresourcehandler "type =" system. web. configuration. scriptingscriptresourcehandlersection, system. web. extensions, version = 3.5.0.0, culture = neutral, publickeytoken = 31bf3856ad364e35 "requirepermission =" false "allowdefinition =" Machine Toapplication "/> <br/> <sectiongroup name =" WebServices "type =" system. web. configuration. scriptingwebservicessectiongroup, system. web. extensions, version = 3.5.0.0, culture = neutral, publickeytoken = 31bf3856ad364e35 "> <br/> <section name =" jsonserialization "type =" system. web. configuration. scriptingjsonserializationsection, system. web. extensions, version = 3.5.0.0, culture = neutral, publickeytoken = 31bf3856ad36 4e35 "requirepermission =" false "allowdefinition =" everywhere "/> <br/> <section name =" profileservice "type =" system. web. configuration. scriptingprofileservicesection, system. web. extensions, version = 3.5.0.0, culture = neutral, publickeytoken = 31bf3856ad364e35 "requirepermission =" false "allowdefinition =" machinetoapplication "/> <br/> <section name =" authenticationservice "type =" system. web. configuration. scripti Ngauthenticationservicesection, system. web. extensions, version = 3.5.0.0, culture = neutral, publickeytoken = 31bf3856ad364e35 "requirepermission =" false "allowdefinition =" machinetoapplication "/> <br/> <section name =" roleservice "type =" system. web. configuration. scriptingroleservicesection, system. web. extensions, version = 3.5.0.0, culture = neutral, publickeytoken = 31bf3856ad364e35 "requirepermission =" false "Al Lowdefinition = "machinetoapplication"/> <br/> </sectiongroup> <br/> </configsections> <br/> <etettings/> <br/> <connectionstrings> <br/> <Add name = "aspnetdbconnectionstring" connectionstring = "Data Source = .; initial catalog = aspnetdb; Integrated Security = true "providername =" system. data. sqlclient "/> <br/> </connectionstrings> <br/> <system. web> <br/> <anonymousidenti Fication enabled = "true"/> </P> <p> <profile enabled = "true" automaticsaveenabled = "true" defaultprovider = "sqlprovider"> <br/> <providers> <br/> <clear/> <br/> <Add name = "sqlprovider" type = "system. web. profile. sqlprofileprovider "<br/> connectionstringname =" aspnetdbconnectionstring "applicationname =" profilesample "Description =" sample for ASP. NET profile and profile service "/> <br/> </providers> <br/> <Properties> <br/> <Add name = "name" allowanonymous = "true"/> <br/> <Add name = "lastvisit" type = "system. datetime "allowanonymous =" true "/> <br/> </Properties> <br/> </profile> </P> <p> <! -- <Br/> set compilation DEBUG = "true" to insert the debugging symbol into the compiled page. <br/>. However, this <br/> affects performance, so this value is set to true only during development. <Br/> --> <br/> <rolemanager enabled = "true"/> <br/> <compilation DEBUG = "true"> <br/> <assemblies> <br /> <add Assembly = "system. core, version = 3.5.0.0, culture = neutral, publickeytoken = b77a5c561934e089 "/> <br/> <add Assembly =" system. web. extensions, version = 3.5.0.0, culture = neutral, publickeytoken = 31bf3856ad364e35 "/> <br/> <add Assembly =" system. data. datasetextensions, version = 3.5.0.0, culture = neutral, Publ Ickeytoken = b77a5c561934e089 "/> <br/> <add Assembly =" system. XML. LINQ, version = 3.5.0.0, culture = neutral, publickeytoken = b77a5c561934e089 "/> <br/> </assemblies> <br/> </compilation> <br/> <! -- <Br/> you can configure ASP. net in the <authentication> section to <br/> identify the Security Authentication Mode of the user. <br/>. <Br/> --> <br/> <Authentication mode = "forms"/> <br/> <! -- <Br/> if an error is not handled during request execution, <br/> You can configure the corresponding processing steps in the <customerrors> section. Specifically, <br/> developers can configure the <br/> HTML error page to be displayed <br/> to replace the error stack trace. </P> <p> <customerrors mode = "remoteonly" defaultredirect = "genericerrorpage.htm"> <br/> <error statuscode = "403" Redirect = "noaccess.htm"/> <br /> <error statuscode = "404" Redirect = "filenotfound.htm"/> <br/> </customerrors> <br/> --> <br/> <pages> <br/> <controls> <br/> <add tagprefix = "asp" namespace = "system. web. ui "assembly =" system. web. extensions, version = 3.5.0.0, culture = neutral, publickeytoken = 31bf3856 Ad364e35 "/> <br/> <add tagprefix =" asp "namespace =" system. web. UI. webcontrols "assembly =" system. web. extensions, version = 3.5.0.0, culture = neutral, publickeytoken = 31bf3856ad364e35 "/> <br/> </controls> <br/> </pages> <br/> <pttphandlers> <br/> <remove verb = "*" path = "*. asmx "/> <br/> <add verb =" * "Path = "*. asmx "Validate =" false "type =" system. web. script. services. scripthandlerfactory, system. web. extensions, versi On = 3.5.0.0, culture = neutral, publickeytoken = 31bf3856ad364e35 "/> <br/> <add verb =" * "Path =" * _ appservice. axd "Validate =" false "type =" system. web. script. services. scripthandlerfactory, system. web. extensions, version = 3.5.0.0, culture = neutral, publickeytoken = 31bf3856ad364e35 "/> <br/> <add verb =" Get, head "Path =" scriptresource. axd "type =" system. web. handlers. scriptresourcehandler, system. web. extensions, versi On = 3.5.0.0, culture = neutral, publickeytoken = 31bf3856ad364e35 "Validate =" false "/> <br/> </pttphandlers> <br/> <pttpmodules> <br/> <Add name =" scriptmodule "type =" system. web. handlers. scriptmodule, system. web. extensions, version = 3.5.0.0, culture = neutral, publickeytoken = 31bf3856ad364e35 "/> <br/> </pttpmodules> <br/> </system. web> <br/> <system. codedom> <br/> <compilers> <br/> <compiler language = "C #; CS; CSHARP" Extension = ". CS "WarningLevel =" 4 "type =" Microsoft. CSHARP. csharpcodeprovider, system, version = 2.0.0.0, culture = neutral, publickeytoken = b77a5c561934e089 "> <br/> <provideroption name =" compilerversion "value =" v3.5 "/> <br/> <provideroption name =" warnaserror "value =" false "/> <br/> </compiler> <br/> <compiler language = "VB; vbs; VisualBasic; VBScript "extension = ". VB "WarningLevel =" 4 "type =" Microsoft. visualBasic. V Bcodeprovider, system, version = 2.0.0.0, culture = neutral, publickeytoken = b77a5c561934e089 "> <br/> <provideroption name =" compilerversion "value =" v3.5 "/> <br/> <provideroption name =" optioninfer "value =" true "/> <br/> <provideroption name = "warnaserror" value = "false"/> <br/> </compiler> <br/> </compilers> <br/> </system. codedom> <br/> <! -- <Br/> system. webserver <br/> is required to run ASP. NET Ajax in Internet Information Service 7.0. This section is not required for earlier versions of IIS. <Br/> --> <br/> <system. webserver> <br/> <validation validateintegratedmodeconfiguration = "false"/> <br/> <modules> <br/> <remove name = "scriptmodule"/> <br/> <add name = "scriptmodule" precondition = "managedhandler" type = "system. web. handlers. scriptmodule, system. web. extensions, version = 3.5.0.0, culture = neutral, publickeytoken = 31bf3856ad364e35 "/> <br/> </modules> <br/> <pandlers> <br/> <remove name =" webservicehandlerfactory-integrated "/> <br/> <remove name = "scripthandlerfactory"/> <br/> <remove name = "scripthandlerfactoryappservices"/> <br/> <remove name = "scriptresource"/> <br/> <add name = "scripthandlerfactory" verb = "*" Path = "*. asmx "precondition =" integratedmode "type =" system. web. script. services. scripthandlerfactory, system. web. extensions, version = 3.5.0.0, culture = neutral, publickeytoken = 31bf3856ad364e35 "/> <br/> <Add name =" scripthandlerfactoryappservices "verb =" * "Path =" * _ appservice. axd "precondition =" integratedmode "type =" system. web. script. services. scripthandlerfactory, system. web. extensions, version = 3.5.0.0, culture = neutral, publickeytoken = 31bf3856ad364e35 "/> <br/> <Add name =" scriptresource "precondition =" integratedmode "verb =" get, head "Path =" scriptresource. axd "type =" system. web. handlers. scriptresourcehandler, system. web. extensions, version = 3.5.0.0, culture = neutral, publickeytoken = 31bf3856ad364e35 "/> <br/> </pandlers> <br/> </system. webserver> <br/> <runtime> <br/> <assemblybinding xmlns = "urn: Schemas-Microsoft-com: ASM. v1 "> <br/> <dependentassembly> <br/> <assemblyidentity name =" system. web. extensions "publickeytoken =" 31bf3856ad364e35 "/> <br/> <bindingredirect oldversion =" 1.0.0.0-1.1.0.0 "newversion =" 3.5.0.0 "/> <br/> </dependentassembly> <br/> <dependentassembly> <br/> <assemblyidentity name = "system. web. extensions. design "publickeytoken =" 31bf3856ad364e35 "/> <br/> <bindingredirect oldversion =" 1.0.0.0-1.1.0.0 "newversion =" 3.5.0.0 "/> <br/> </dependentassembly> <br/> </assemblybinding> <br/> </runtime> <br/> </configuration> <br/>

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.