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>
|
2015-11-13 23:25:46 +08:00
|
|
|
|
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" />
|
|
|
|
|
2015-10-30 23:14:31 +08:00
|
|
|
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
|
2015-11-13 23:25:46 +08:00
|
|
|
|
|
|
|
<section name="autofac" type="Autofac.Configuration.SectionHandler, Autofac.Configuration"/>
|
|
|
|
</configSections>
|
2015-09-23 00:10:11 +08:00
|
|
|
|
|
|
|
<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">
|
|
|
|
<!--定义文件存放位置-->
|
2015-10-30 23:14:31 +08:00
|
|
|
<file value="log\\" />
|
|
|
|
<appendToFile value="true" />
|
|
|
|
<rollingStyle value="Date" />
|
|
|
|
<datePattern value="yyyyMMdd'.txt'" />
|
|
|
|
<staticLogFileName value="false" />
|
|
|
|
<param name="MaxSizeRollBackups" value="100" />
|
2015-10-26 21:58:12 +08:00
|
|
|
<layout type="log4net.Layout.PatternLayout">
|
|
|
|
<conversionPattern value="%date [%thread] %-5level %logger [%property{NDC}] - %message%newline" />
|
|
|
|
</layout>
|
|
|
|
</appender>
|
|
|
|
<root>
|
2015-10-30 23:14:31 +08:00
|
|
|
<level value="INFO" />
|
2015-10-26 21:58:12 +08:00
|
|
|
<!--文件形式记录日志-->
|
2015-10-30 23:14:31 +08:00
|
|
|
<appender-ref ref="RollingLogFileAppender" />
|
2015-10-26 21:58:12 +08:00
|
|
|
</root>
|
|
|
|
</log4net>
|
2015-11-13 23:25:46 +08:00
|
|
|
|
|
|
|
<autofac defaultAssembly=" OpenAuth.Repository">
|
|
|
|
<components>
|
|
|
|
<component type=" OpenAuth.Repository.UserRepository" service=" OpenAuth.Domain.Interface.IUserRepository,OpenAuth.Domain" />
|
|
|
|
<component type=" OpenAuth.Repository.OrgRepository" service="OpenAuth.Domain.Interface.IOrgRepository,OpenAuth.Domain" />
|
2015-11-19 21:49:39 +08:00
|
|
|
<component type=" OpenAuth.Repository.RoleRepository" service="OpenAuth.Domain.Interface.IRoleRepository,OpenAuth.Domain" />
|
2015-11-13 23:25:46 +08:00
|
|
|
</components>
|
|
|
|
</autofac>
|
|
|
|
|
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">
|
2015-11-13 23:25:46 +08:00
|
|
|
<dependentAssembly>
|
|
|
|
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30AD4FE6B2A6AEED" culture="neutral" />
|
|
|
|
<bindingRedirect oldVersion="0.0.0.0-7.0.0.0" newVersion="7.0.0.0" />
|
|
|
|
</dependentAssembly>
|
2015-09-23 00:10:11 +08:00
|
|
|
<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>
|
2015-10-30 23:14:31 +08:00
|
|
|
<dependentAssembly>
|
|
|
|
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
|
|
|
|
<bindingRedirect oldVersion="0.0.0.0-7.0.0.0" newVersion="7.0.0.0" />
|
|
|
|
</dependentAssembly>
|
2015-09-23 00:10:11 +08:00
|
|
|
</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>
|
2015-11-13 23:25:46 +08:00
|
|
|
</configuration>
|