温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:漂亮无限级分类源代码(三层实现)
当前文件路径:JohnTree/JohnTree.Web/Web.config

1<?xml version="1.0" encoding="utf-8"?> 2
<configuration> 3
4
<configSections> 5
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> 6
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> 7
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/> 8
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> 9
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere" /> 10
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" /> 11
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" /> 12
</sectionGroup> 13
</sectionGroup> 14
</sectionGroup> 15
</configSections> 16
17
<connectionStrings> 18
<add name="ConnectionString" connectionString="Server=.;DataBase=JohnTree;user id=sa;password=sa;"/> 19
</connectionStrings> 20
21
<system.web> 22
<pages> 23
<controls> 24
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> 25
</controls> 26
</pages> 27
<globalization culture="zh-CN" requestEncoding="utf-8" responseEncoding="utf-8"/> 28
<!-- 29
璁剧疆 compilation debug="true" 灏嗚皟璇曠鍙锋彃鍏? 30
宸茬紪璇戠殑椤甸潰涓備絾鐢变簬杩欎細 31
褰卞搷鎬ц兘锛屽洜姝ゅ彧鍦ㄥ紑鍙戣繃绋嬩腑灏嗘鍊? 32
璁剧疆涓?true銆? 33
--> 34
<compilation debug="true"> 35
<assemblies> 36
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> 37
</assemblies> 38
</compilation> 39
<!-- 40
閫氳繃 <authentication> 鑺傚彲浠ラ厤缃?ASP.NET 浣跨敤鐨? 41
瀹夊叏韬唤楠岃瘉妯″紡锛? 42
浠ユ爣璇嗕紶鍏ョ殑鐢ㄦ埛銆? 43
--> 44
<authentication mode="Windows"/> 45
<!-- 46
濡傛灉鍦ㄦ墽琛岃姹傜殑杩囩▼涓嚭鐜版湭澶勭悊鐨勯敊璇紝 47
鍒欓氳繃 <customErrors> 鑺傚彲浠ラ厤缃浉搴旂殑澶勭悊姝ラ銆傚叿浣撹鏉ワ紝 48
寮鍙戜汉鍛橀氳繃璇ヨ妭鍙互閰嶇疆 49
瑕佹樉绀虹殑 html 閿欒椤? 50
浠ヤ唬鏇块敊璇爢鏍堣窡韪? 51
52
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm"> 53
<error statusCode="403" redirect="NoAccess.htm" /> 54
<error statusCode="404" redirect="FileNotFound.htm" /> 55
</customErrors> 56
--> 57
58
<httpHandlers> 59
<remove verb="*" path="*.asmx"/> 60
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> 61
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> 62
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/> 63
</httpHandlers> 64
65
<httpModules> 66
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> 67
</httpModules> 68
</system.web> 69
70
<system.web.extensions> 71
<scripting> 72
<webServices> 73
<!-- Uncomment this line to customize maxJsonLength and add a custom converter --> 74
<!-- 75
<jsonSerialization maxJsonLength="500"> 76
<converters> 77
<add name="ConvertMe" type="Acme.SubAcme.ConvertMeTypeConverter"/> 78
</converters> 79
</jsonSerialization> 80
--> 81
<!-- Uncomment this line to enable the authentication service. Include requireSSL="true" if appropriate. --> 82
<!-- 83
<authenticationService enabled="true" requireSSL = "true|false"/> 84
--> 85
86
<!-- Uncomment these lines to enable the profile service. To allow profile properties to be retrieved 87
and modified in ASP.NET AJAX applications, you need to add each property name to the readAccessProperties and 88
writeAccessProperties attributes. --> 89
<!-- 90
<profileService enabled="true" 91
readAccessProperties="propertyname1,propertyname2" 92
writeAccessProperties="propertyname1,propertyname2" /> 93
--> 94
</webServices> 95
<!-- 96
<scriptResourceHandler enableCompression="true" enableCaching="true" /> 97
--> 98
</scripting> 99
</system.web.extensions> 100
101
<system.webServer> 102
<validation validateIntegratedModeConfiguration="false"/> 103
<modules> 104
<add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> 105
</modules> 106
<handlers> 107
<remove name="WebServiceHandlerFactory-Integrated" /> 108
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" 109
type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> 110
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" 111
type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> 112
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> 113
</handlers> 114
</system.webServer> 115
</configuration>


