diff --git a/GitCandy.Web/Web.config b/GitCandy.Web/Web.config
index 9d38b38..a3d5186 100644
--- a/GitCandy.Web/Web.config
+++ b/GitCandy.Web/Web.config
@@ -1,102 +1,69 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- For more information on how to configure your ASP.NET application, please visit
- http://go.microsoft.com/fwlink/?LinkId=169433
- -->
+<?xml version="1.0"?>
<configuration>
<connectionStrings>
- <add name="GitCandy" connectionString="Data Source=..\Data\GitCandy.db;" providerName="System.Data.SQLite" />
+ <add name="GitCandy" connectionString="Data Source=..\Data\GitCandy.db;" providerName="System.Data.SQLite"/>
</connectionStrings>
<appSettings>
- <add key="webpages:Version" value="3.0.0.0" />
- <add key="webpages:Enabled" value="false" />
- <add key="RouteDebugger:Enabled" value="false" />
+ <add key="webpages:Version" value="3.0.0.0"/>
+ <add key="webpages:Enabled" value="false"/>
</appSettings>
- <!--
- 有关 web.config 更改的说明,请参见 http://go.microsoft.com/fwlink/?LinkId=235367。
-
- 可在 <httpRuntime> 标记上设置以下特性。
- <system.Web>
- <httpRuntime targetFramework="4.6" />
- </system.Web>
- -->
<system.web>
- <customErrors mode="Off" />
- <compilation debug="true" targetFramework="4.6" />
- <httpRuntime targetFramework="4.5" maxRequestLength="4194304" requestPathInvalidCharacters="" executionTimeout="1800" />
+ <customErrors mode="Off"/>
+ <httpRuntime targetFramework="4.6"/>
<pages>
<namespaces>
- <add namespace="System.Web.Helpers" />
- <add namespace="System.Web.Mvc" />
- <add namespace="System.Web.Mvc.Ajax" />
- <add namespace="System.Web.Mvc.Html" />
- <add namespace="System.Web.Routing" />
- <add namespace="System.Web.WebPages" />
+ <add namespace="System.Web.Mvc"/>
+ <add namespace="System.Web.Mvc.Ajax"/>
+ <add namespace="System.Web.Mvc.Html"/>
+ <add namespace="System.Web.Routing"/>
+ <add namespace="System.Web.WebPages"/>
</namespaces>
</pages>
+ <compilation debug="true"/>
</system.web>
<system.webServer>
- <!--<modules runAllManagedModulesForAllRequests="true">
- -->
- <!--全局错误处理模块-->
- <!--
- <add name="ErrorModule" type="NewLife.Web.ErrorModule,NewLife.Core" />
- -->
- <!--页面执行时间模块,用于在页面中输出页面执行时间和查询执行次数-->
- <!--
- <add name="DbRunTimeModule" type="NewLife.Cube.DbRunTimeModule,NewLife.Cube"/>
- </modules>-->
+ <validation validateIntegratedModeConfiguration="false" />
+ <modules runAllManagedModulesForAllRequests="true" />
<httpProtocol>
<customHeaders>
- <remove name="X-Powered-By" />
- <add name="X-Powered-By" value="NewLife.Cube http://www.NewLifeX.com" />
+ <remove name="X-Powered-By"/>
+ <add name="X-Powered-By" value="NewLife.Cube http://www.NewLifeX.com"/>
</customHeaders>
</httpProtocol>
<!--静态缓存使用浏览器缓存,超时时间之内不发出Http请求(F5除外)-->
<staticContent>
- <remove fileExtension=".woff" />
- <remove fileExtension=".woff2" />
- <mimeMap fileExtension=".woff" mimeType="application/x-font-woff" />
- <mimeMap fileExtension=".woff2" mimeType="application/x-font-woff" />
- <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="240:00:00" />
+ <remove fileExtension=".woff"/>
+ <remove fileExtension=".woff2"/>
+ <mimeMap fileExtension=".woff" mimeType="application/x-font-woff"/>
+ <mimeMap fileExtension=".woff2" mimeType="application/x-font-woff"/>
+ <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="240:00:00"/>
</staticContent>
- <security>
- <requestFiltering allowDoubleEscaping="true">
- <requestLimits maxAllowedContentLength="134217728" />
- <fileExtensions allowUnlisted="true">
- <clear />
- </fileExtensions>
- <hiddenSegments>
- <clear />
- </hiddenSegments>
- </requestFiltering>
- </security>
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
- <assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35" />
- <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0" />
+ <assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35"/>
+ <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0"/>
</dependentAssembly>
<dependentAssembly>
- <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
- <bindingRedirect oldVersion="0.0.0.0-1.6.5135.21930" newVersion="1.6.5135.21930" />
+ <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35"/>
+ <bindingRedirect oldVersion="0.0.0.0-1.6.5135.21930" newVersion="1.6.5135.21930"/>
</dependentAssembly>
<dependentAssembly>
- <assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2" />
+ <assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" culture="neutral"/>
+ <bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2"/>
</dependentAssembly>
<dependentAssembly>
- <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
- <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
+ <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35"/>
+ <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0"/>
</dependentAssembly>
<dependentAssembly>
- <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
- <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
+ <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35"/>
+ <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0"/>
</dependentAssembly>
<dependentAssembly>
- <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
- <bindingRedirect oldVersion="0.0.0.0-5.2.7.0" newVersion="5.2.7.0" />
+ <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
+ <bindingRedirect oldVersion="0.0.0.0-5.2.7.0" newVersion="5.2.7.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>