|
|
@@ -1,4 +1,4 @@ |
|
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
|
<?xml version="1.0"?> |
|
|
|
<!-- |
|
|
|
有关如何配置 ASP.NET 应用程序的详细信息,请访问 |
|
|
|
http://go.microsoft.com/fwlink/?LinkId=169433 |
|
|
@@ -6,16 +6,16 @@ |
|
|
|
<configuration> |
|
|
|
<configSections> |
|
|
|
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --> |
|
|
|
<section name="redisconfig" type="Learun.Cache.Redis.RedisConfigInfo,Learun.Cache.Redis" /> |
|
|
|
<section name="unity" type="Microsoft.Practices.Unity.Configuration.UnityConfigurationSection,Microsoft.Practices.Unity.Configuration" /> |
|
|
|
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" /> |
|
|
|
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> |
|
|
|
<section name="oracle.manageddataaccess.client" type="OracleInternal.Common.ODPMSectionHandler, Oracle.ManagedDataAccess, Version=4.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342" /> |
|
|
|
<section name="redisconfig" type="Learun.Cache.Redis.RedisConfigInfo,Learun.Cache.Redis"/> |
|
|
|
<section name="unity" type="Microsoft.Practices.Unity.Configuration.UnityConfigurationSection,Microsoft.Practices.Unity.Configuration"/> |
|
|
|
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/> |
|
|
|
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/> |
|
|
|
<section name="oracle.manageddataaccess.client" type="OracleInternal.Common.ODPMSectionHandler, Oracle.ManagedDataAccess, Version=4.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342"/> |
|
|
|
</configSections> |
|
|
|
<unity configSource="XmlConfig\ioc.config" /> |
|
|
|
<connectionStrings configSource="XmlConfig\database.config" /> |
|
|
|
<appSettings configSource="XmlConfig\system.config" /> |
|
|
|
<log4net configSource="XmlConfig\log4net.config" /> |
|
|
|
<unity configSource="XmlConfig\ioc.config"/> |
|
|
|
<connectionStrings configSource="XmlConfig\database.config"/> |
|
|
|
<appSettings configSource="XmlConfig\system.config"/> |
|
|
|
<log4net configSource="XmlConfig\log4net.config"/> |
|
|
|
<!-- |
|
|
|
有关 web.config 更改的说明,请参见 http://go.microsoft.com/fwlink/?LinkId=235367。 |
|
|
|
|
|
|
@@ -25,101 +25,101 @@ |
|
|
|
</system.Web> |
|
|
|
--> |
|
|
|
<system.web> |
|
|
|
<compilation debug="true" targetFramework="4.6.1" /> |
|
|
|
<pages controlRenderingCompatibilityVersion="4.0" /> |
|
|
|
<compilation debug="true" targetFramework="4.6.2"/> |
|
|
|
<pages controlRenderingCompatibilityVersion="4.0"/> |
|
|
|
<!--最大请求长度,单位为KB(千字节),默认为4M,设置为1G,上限为2G --> |
|
|
|
<httpRuntime maxRequestLength="1048576" executionTimeout="3600" /> |
|
|
|
<httpRuntime maxRequestLength="1048576" executionTimeout="3600"/> |
|
|
|
<httpHandlers> |
|
|
|
<add verb="*" type="Nancy.Hosting.Aspnet.NancyHttpRequestHandler" path="*" /> |
|
|
|
<add verb="*" type="Nancy.Hosting.Aspnet.NancyHttpRequestHandler" path="*"/> |
|
|
|
</httpHandlers> |
|
|
|
</system.web> |
|
|
|
<entityFramework> |
|
|
|
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework"> |
|
|
|
<parameters> |
|
|
|
<parameter value="mssqllocaldb" /> |
|
|
|
<parameter value="mssqllocaldb"/> |
|
|
|
</parameters> |
|
|
|
</defaultConnectionFactory> |
|
|
|
<providers> |
|
|
|
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" /> |
|
|
|
<provider invariantName="Oracle.ManagedDataAccess.Client" type="Oracle.ManagedDataAccess.EntityFramework.EFOracleProviderServices, Oracle.ManagedDataAccess.EntityFramework, Version=6.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342" /> |
|
|
|
<provider invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6, Version=6.9.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" /> |
|
|
|
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer"/> |
|
|
|
<provider invariantName="Oracle.ManagedDataAccess.Client" type="Oracle.ManagedDataAccess.EntityFramework.EFOracleProviderServices, Oracle.ManagedDataAccess.EntityFramework, Version=6.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342"/> |
|
|
|
<provider invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6, Version=6.9.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d"/> |
|
|
|
</providers> |
|
|
|
</entityFramework> |
|
|
|
<system.webServer> |
|
|
|
<validation validateIntegratedModeConfiguration="false" /> |
|
|
|
<httpErrors existingResponse="PassThrough" /> |
|
|
|
<validation validateIntegratedModeConfiguration="false"/> |
|
|
|
<httpErrors existingResponse="PassThrough"/> |
|
|
|
<handlers> |
|
|
|
<add name="Nancy" verb="*" type="Nancy.Hosting.Aspnet.NancyHttpRequestHandler" path="*" /> |
|
|
|
<remove name="ExtensionlessUrlHandler-Integrated-4.0" /> |
|
|
|
<remove name="OPTIONSVerbHandler" /> |
|
|
|
<remove name="TRACEVerbHandler" /> |
|
|
|
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" /> |
|
|
|
<add name="Nancy" verb="*" type="Nancy.Hosting.Aspnet.NancyHttpRequestHandler" path="*"/> |
|
|
|
<remove name="ExtensionlessUrlHandler-Integrated-4.0"/> |
|
|
|
<remove name="OPTIONSVerbHandler"/> |
|
|
|
<remove name="TRACEVerbHandler"/> |
|
|
|
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0"/> |
|
|
|
</handlers> |
|
|
|
</system.webServer> |
|
|
|
<system.data> |
|
|
|
<DbProviderFactories> |
|
|
|
<remove invariant="Oracle.ManagedDataAccess.Client" /> |
|
|
|
<add name="ODP.NET, Managed Driver" invariant="Oracle.ManagedDataAccess.Client" description="Oracle Data Provider for .NET, Managed Driver" type="Oracle.ManagedDataAccess.Client.OracleClientFactory, Oracle.ManagedDataAccess, Version=4.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342" /> |
|
|
|
<remove invariant="MySql.Data.MySqlClient" /> |
|
|
|
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.9.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" /> |
|
|
|
<remove invariant="Oracle.ManagedDataAccess.Client"/> |
|
|
|
<add name="ODP.NET, Managed Driver" invariant="Oracle.ManagedDataAccess.Client" description="Oracle Data Provider for .NET, Managed Driver" type="Oracle.ManagedDataAccess.Client.OracleClientFactory, Oracle.ManagedDataAccess, Version=4.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342"/> |
|
|
|
<remove invariant="MySql.Data.MySqlClient"/> |
|
|
|
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.9.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d"/> |
|
|
|
</DbProviderFactories> |
|
|
|
</system.data> |
|
|
|
<runtime> |
|
|
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> |
|
|
|
<dependentAssembly> |
|
|
|
<publisherPolicy apply="no" /> |
|
|
|
<assemblyIdentity name="Oracle.ManagedDataAccess" publicKeyToken="89b483f429c47342" culture="neutral" /> |
|
|
|
<publisherPolicy apply="no"/> |
|
|
|
<assemblyIdentity name="Oracle.ManagedDataAccess" publicKeyToken="89b483f429c47342" culture="neutral"/> |
|
|
|
</dependentAssembly> |
|
|
|
<dependentAssembly> |
|
|
|
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" /> |
|
|
|
<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" /> |
|
|
|
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral"/> |
|
|
|
<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0"/> |
|
|
|
</dependentAssembly> |
|
|
|
<dependentAssembly> |
|
|
|
<assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" /> |
|
|
|
<bindingRedirect oldVersion="0.0.0.0-3.1.0.0" newVersion="3.1.0.0" /> |
|
|
|
<assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral"/> |
|
|
|
<bindingRedirect oldVersion="0.0.0.0-3.1.0.0" newVersion="3.1.0.0"/> |
|
|
|
</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="1.0.0.0-5.2.3.0" newVersion="5.2.3.0" /> |
|
|
|
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/> |
|
|
|
<bindingRedirect oldVersion="1.0.0.0-5.2.3.0" newVersion="5.2.3.0"/> |
|
|
|
</dependentAssembly> |
|
|
|
<dependentAssembly> |
|
|
|
<assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" culture="neutral" /> |
|
|
|
<bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" /> |
|
|
|
<assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" culture="neutral"/> |
|
|
|
<bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234"/> |
|
|
|
</dependentAssembly> |
|
|
|
<dependentAssembly> |
|
|
|
<assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" /> |
|
|
|
<bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1" /> |
|
|
|
<assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral"/> |
|
|
|
<bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1"/> |
|
|
|
</dependentAssembly> |
|
|
|
<dependentAssembly> |
|
|
|
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" /> |
|
|
|
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" /> |
|
|
|
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral"/> |
|
|
|
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0"/> |
|
|
|
</dependentAssembly> |
|
|
|
<dependentAssembly> |
|
|
|
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> |
|
|
|
<bindingRedirect oldVersion="0.0.0.0-4.0.6.0" newVersion="4.0.6.0" /> |
|
|
|
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/> |
|
|
|
<bindingRedirect oldVersion="0.0.0.0-4.0.6.0" newVersion="4.0.6.0"/> |
|
|
|
</dependentAssembly> |
|
|
|
<dependentAssembly> |
|
|
|
<assemblyIdentity name="System.Numerics.Vectors" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> |
|
|
|
<bindingRedirect oldVersion="0.0.0.0-4.1.4.0" newVersion="4.1.4.0" /> |
|
|
|
<assemblyIdentity name="System.Numerics.Vectors" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/> |
|
|
|
<bindingRedirect oldVersion="0.0.0.0-4.1.4.0" newVersion="4.1.4.0"/> |
|
|
|
</dependentAssembly> |
|
|
|
<dependentAssembly> |
|
|
|
<assemblyIdentity name="Microsoft.Bcl.AsyncInterfaces" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" /> |
|
|
|
<bindingRedirect oldVersion="0.0.0.0-1.0.0.0" newVersion="1.0.0.0" /> |
|
|
|
<assemblyIdentity name="Microsoft.Bcl.AsyncInterfaces" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral"/> |
|
|
|
<bindingRedirect oldVersion="0.0.0.0-1.0.0.0" newVersion="1.0.0.0"/> |
|
|
|
</dependentAssembly> |
|
|
|
</assemblyBinding> |
|
|
|
</runtime> |
|
|
|
<oracle.manageddataaccess.client> |
|
|
|
<version number="*"> |
|
|
|
<dataSources> |
|
|
|
<dataSource alias="SampleDataSource" descriptor="(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=ORCL))) " /> |
|
|
|
<dataSource alias="SampleDataSource" descriptor="(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=ORCL))) "/> |
|
|
|
</dataSources> |
|
|
|
</version> |
|
|
|
</oracle.manageddataaccess.client> |