OpenAuth.Net/OpenAuth.Mvc/Web.config

90 lines
4.0 KiB
Plaintext
Raw Normal View History

2015-10-26 21:58:12 +08:00
<?xml version="1.0" encoding="utf-8"?>
2015-09-23 00:10:11 +08:00
<!--
有关如何配置 ASP.NET 应用程序的详细信息,请访问
http://go.microsoft.com/fwlink/?LinkId=301880
-->
<configuration>
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
2015-10-26 21:58:12 +08:00
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/>
2015-09-23 00:10:11 +08:00
</configSections>
<connectionStrings>
2015-10-26 21:58:12 +08:00
<add name="OpenAuthDBContext" connectionString="Data Source=.;Initial Catalog=OpenAuthDB;Persist Security Info=True;User ID=sa;Password=000000;MultipleActiveResultSets=True" providerName="System.Data.SqlClient" />
2015-09-23 00:10:11 +08:00
</connectionStrings>
2015-10-26 21:58:12 +08:00
<log4net>
<appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender">
<!--定义文件存放位置-->
<file value="log\\"/>
<appendToFile value="true"/>
<rollingStyle value="Date"/>
<datePattern value="yyyyMMdd'.txt'"/>
<staticLogFileName value="false"/>
<param name="MaxSizeRollBackups" value="100"/>
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level %logger [%property{NDC}] - %message%newline" />
</layout>
</appender>
<root>
<level value="INFO"/>
<!--文件形式记录日志-->
<appender-ref ref="RollingLogFileAppender"/>
</root>
</log4net>
2015-09-23 00:10:11 +08:00
<appSettings>
2015-10-26 21:58:12 +08:00
<add key="webpages:Version" value="3.0.0.0" />
<add key="webpages:Enabled" value="false" />
<add key="ClientValidationEnabled" value="true" />
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
2015-09-23 00:10:11 +08:00
</appSettings>
<system.web>
2015-10-26 21:58:12 +08:00
<authentication mode="None" />
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
2015-09-23 00:10:11 +08:00
</system.web>
<system.webServer>
<modules>
2015-10-26 21:58:12 +08:00
<remove name="FormsAuthenticationModule" />
2015-09-23 00:10:11 +08:00
</modules>
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
2015-10-26 21:58:12 +08:00
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30AD4FE6B2A6AEED" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-7.0.0.0" newVersion="7.0.0.0" />
2015-09-23 00:10:11 +08:00
</dependentAssembly>
<dependentAssembly>
2015-10-26 21:58:12 +08:00
<assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
2015-09-23 00:10:11 +08:00
</dependentAssembly>
<dependentAssembly>
2015-10-26 21:58:12 +08:00
<assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
2015-09-23 00:10:11 +08:00
</dependentAssembly>
<dependentAssembly>
2015-10-26 21:58:12 +08:00
<assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
2015-09-23 00:10:11 +08:00
</dependentAssembly>
<dependentAssembly>
2015-10-26 21:58:12 +08:00
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-5.1.0.0" newVersion="5.1.0.0" />
2015-09-23 00:10:11 +08:00
</dependentAssembly>
<dependentAssembly>
2015-10-26 21:58:12 +08:00
<assemblyIdentity name="Autofac" publicKeyToken="17863af14b0044da" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.5.0.0" newVersion="3.5.0.0" />
2015-09-23 00:10:11 +08:00
</dependentAssembly>
</assemblyBinding>
</runtime>
<entityFramework>
2015-10-26 21:58:12 +08:00
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" />
2015-09-23 00:10:11 +08:00
<providers>
2015-10-26 21:58:12 +08:00
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
2015-09-23 00:10:11 +08:00
</providers>
</entityFramework>
</configuration>