96 lines
5.4 KiB
XML
96 lines
5.4 KiB
XML
<?xml version="1.0"?>
|
|
<!--
|
|
有关如何配置 ASP.NET 应用程序的详细信息,请访问
|
|
https://go.microsoft.com/fwlink/?LinkId=301879
|
|
-->
|
|
<configuration>
|
|
<configSections>
|
|
<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.122.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342" />-->
|
|
</configSections>
|
|
<connectionStrings>
|
|
<add name="DataSyncMySql" connectionString="Data Source=192.168.11.141;Port=3306;Initial Catalog=DataSync;user id=tafadmin;password=tafadmin2017;" providerName="MySql.Data.MySqlClient"/>
|
|
<add name="DataSyncOracle" providerName="Oracle.ManagedDataAccess.Client" connectionString="DATA SOURCE=192.168.1.41:1521/Orcl_CrmZXD;PERSIST SECURITY INFO=True;USER ID=WSKUSER;PASSWORD=sa123456."/>
|
|
</connectionStrings>
|
|
<appSettings>
|
|
<!--数据库类型只可以为ORACLE,MYSQL-->
|
|
<add key="DatabaseType" value="MYSQL"/>
|
|
</appSettings>
|
|
<!--
|
|
有关 web.config 更改的说明,请参见 http://go.microsoft.com/fwlink/?LinkId=235367。
|
|
|
|
可在 <httpRuntime> 标记上设置以下特性。
|
|
<system.Web>
|
|
<httpRuntime targetFramework="4.6.1" />
|
|
</system.Web>
|
|
-->
|
|
<system.web>
|
|
<compilation debug="true" targetFramework="4.6.2"/>
|
|
<httpRuntime targetFramework="4.5.2"/>
|
|
<httpModules>
|
|
<add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web"/>
|
|
</httpModules>
|
|
</system.web>
|
|
<system.webServer>
|
|
<handlers>
|
|
<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>
|
|
<validation validateIntegratedModeConfiguration="false"/>
|
|
<modules>
|
|
<remove name="ApplicationInsightsWebTracking"/>
|
|
<add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" preCondition="managedHandler"/>
|
|
</modules>
|
|
</system.webServer>
|
|
<runtime>
|
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed"/>
|
|
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0"/>
|
|
</dependentAssembly>
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" culture="neutral"/>
|
|
<bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0"/>
|
|
</dependentAssembly>
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral"/>
|
|
<bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0"/>
|
|
</dependentAssembly>
|
|
<dependentAssembly>
|
|
<publisherPolicy apply="no"/>
|
|
<assemblyIdentity name="Oracle.ManagedDataAccess" publicKeyToken="89b483f429c47342" culture="neutral"/>
|
|
</dependentAssembly>
|
|
</assemblyBinding>
|
|
</runtime>
|
|
<system.codedom>
|
|
<compilers>
|
|
<compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.8.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:6 /nowarn:1659;1699;1701"/>
|
|
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.8.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\"Web\" /optionInfer+"/>
|
|
</compilers>
|
|
</system.codedom>
|
|
<entityFramework>
|
|
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
|
|
<parameters>
|
|
<parameter value="v13.0"/>
|
|
</parameters>
|
|
</defaultConnectionFactory>
|
|
<providers>
|
|
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer"/>
|
|
</providers>
|
|
</entityFramework>
|
|
<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.122.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342"/>
|
|
</DbProviderFactories>
|
|
</system.data>
|
|
<oracle.manageddataaccess.client>
|
|
<version number="*">
|
|
<dataSources>
|
|
<dataSource alias="SampleDataSource" descriptor="(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=ORCL))) "/>
|
|
</dataSources>
|
|
</version>
|
|
</oracle.manageddataaccess.client>
|
|
</configuration> |