Web.config常用的配置

2017-02-18 14:49:42  访问(1409) 赞(0) 踩(0)

<?xml version="1.0" encoding="UTF-8"?>
<!-- 
    注意: 除了手动编辑此文件,还可用 
    Web 管理工具配置应用程序设置。可使用
    Visual Studio 中的“网站”->“Asp.Net 配置”选项。
    所有设置和注释都列在 
    machine.config.comments 中,该文件通常位于 
    \Windows\Microsoft.Net\Framework\vx.x\Config 中
-->
<configuration>
	<configSections>
		<section name="FineUI" type="FineUI.ConfigSection, FineUI" requirePermission="false" />
		<sectionGroup name="ajaxNet">
			<!--
				If you are using Microsoft .NET 1.1 please remove the two attributes
				requirePermission and restartOnExternalChanges, they are only supported
				with .NET 2.0.
			-->
			<section name="ajaxSettings" type="AjaxPro.AjaxSettingsSectionHandler,AjaxPro.2" requirePermission="false" restartOnExternalChanges="true" />
		</sectionGroup>
	</configSections>
	<!-- 可用的配置项(这里列的都是默认值): Language="zh_CN" AjaxTimeout="60" EnableAjax="true" Theme="blue" FormMessageTarget="qtip" FormOffsetRight="20" FormLabelWidth="100" FormLabelSeparator=":" IconBasePath="~/icon" EnableAjaxLoading="true" AjaxLoadingType="default" CustomTheme="" CustomThemeBasePath="~/theme" -->
	<FineUI EnableBigFont="true" DebugMode="true" />
	<appSettings>
		<!-- 数据库相关的配置 -->
    <!-- 缺省 -->
    <!-- 数据库连接串 -->
    <add key="SlowX.DAL.DBConnectionString" value="" />
    <!-- 数据库类型 -->
    <add key="SlowX.DAL.Enums.DataBaseHelper.EmDataBaseHelper" value="2" />
    <!-- 数据库版本 -->
    <add key="SlowX.DAL.Enums.DataBaseVersion" value="3" />
    <!-- 加密方式 -->
    <add key="SlowX.DAL.EmDbConnStringEncrypt" value="1" />
    <!-- 加密密码 -->
    <add key="SlowX.DAL.DBConnectionStringPwdEnKey" value="" />
    <!-- 密码 -->
    <add key="SlowX.DAL.DBConnectionStringPwd" value="" />
    <!-- 缺省End -->
    
    <!-- 实现多个DB切换的KEY -->
    <add key="SlowX.DAL.DBConnectionStringKey" value="" />
		<!-- 启用日志 -->
		<add key="SlowX.DAL.Recorder.RecordLog.EnabledLog" value="1" />
		<!-- 管理Url地址 -->
		<add key="AdmUrl" value="http://adm.slowx.net/" />
		<!-- 页面加密密钥 -->
		<add key="SlowX.WebSite.BLL.WebSiteBasicBLL.pageSignKey" value="" />
		<!-- 页面加密密钥 -->
		<add key="VersionCtrlWebService.signKEY" value="" />
		<!-- 代码签名密钥 -->
		<add key="VersionCtrlWebService.codeKEY" value="" />
		<!-- 静态模式 -->
		<add key="SlowX.WebSite.EmUrlRewriterModelValue" value="2" />
		<!-- 接口密钥 -->
		<add key="SlowX.WebCallInfo.Classes.HandlerParams.BaseHandlerParams.SignKey" value="" />
	</appSettings>
	<connectionStrings />
	<system.web>
    <!-- 
            设置 compilation debug="true" 可将调试符号插入 
            已编译的页面中。但由于这会 
            影响性能,因此请仅在开发过程中将此值 
            设置为 true。
         -->
    <compilation debug="true" />
    <!--
          通过 <authentication> 节,可配置 
      ASP.NET 用于识别进入用户的 
      安全身份验证模式。
        -->
    <authentication mode="Windows" />
    <!--
           通过 <customErrors> 节,可以配置
       在执行请求的过程中出现未处理的错误时要执行 
       的操作。具体而言,
       开发人员通过该节可配置要显示的 html 错误页,
       以代替错误堆栈跟踪。
    -->
		<customErrors mode="On" defaultRedirect="GenericErrorPage.aspx">
			  <error statusCode="403" redirect="Page403.aspx" />
			  <error statusCode="404" redirect="Page404.aspx" />
		</customErrors>
      
    <pages>
      <controls>
        <add assembly="FineUI" namespace="FineUI" tagPrefix="x" />
        <add assembly="FineUI" namespace="FineUI" tagPrefix="f" />
        <add assembly="AspNetPager" namespace="Wuqi.Webdiyer" tagPrefix="wuqi" />
      </controls>
    </pages>
    <httpModules>
      <add name="FineUIScriptModule" type="FineUI.ScriptModule, FineUI" />
      <add name="HttpCompressionModule" type="AjaxPro.HttpCompressionModule,AjaxPro.2" />
    </httpModules>
    <httpHandlers>
      <add verb="POST,GET" path="ajaxpro/*.ashx" type="AjaxPro.AjaxHandlerFactory, AjaxPro.2" />
       <!--使用自定义UrlRewriter类-->
      <add verb="*" path="*/page_?*.html" type="UrlRewriter" />
    </httpHandlers>
    
  </system.web>
  <system.data>
    <DbProviderFactories>
      <remove invariant="System.Data.SQLite" />
      <add name="SQLite Data Provider" invariant="System.Data.SQLite" description=".Net Framework Data Provider for SQLite" type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite" />
    </DbProviderFactories>
  </system.data>
    <system.webServer>
        <handlers>
            <add name="NetUrlRewrite" path="*" verb="*" modules="IsapiModule" scriptProcessor="c:\windows\microsoft.net\framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="None" preCondition="classicMode,runtimeVersionv2.0,bitness32" />
        </handlers>
    </system.webServer>
</configuration>


标签:Web.config常用的配置 

上一条:

下一条:


 

相关评论

评论加载中……
 

发表评论

类型:
内容:
  (Alt+Enter)