168 lines
9.3 KiB
XML
168 lines
9.3 KiB
XML
<?xml version="1.0"?>
|
|
<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="redis" type="WX.CRM.DAL.Redis.RedisConfigurationSection, DAL, Version=1.0.0.0, Culture=neutral"/>
|
|
<section name="Oracle.ManagedDataAccess.Client" type="OracleInternal.Common.ODPMSectionHandler, Oracle.ManagedDataAccess, Version=4.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342"/>
|
|
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
|
|
</configSections>
|
|
<connectionStrings>
|
|
<add name="crmContext" connectionString="DATA SOURCE=192.168.1.41:1521/ZJZXCRM;PERSIST SECURITY INFO=True;USER ID=UPDEV;PASSWORD=sa123456." providerName="Oracle.ManagedDataAccess.Client"/>
|
|
<add name="Entities" connectionString="DATA SOURCE=192.168.1.41:1521/ZJZXCRM;PASSWORD=sa123456.;PERSIST SECURITY INFO=True;USER ID=WSKUSER" providerName="Oracle.ManagedDataAccess.Client"/>
|
|
<add name="AYCRMConn" connectionString="Database=WeiXin;Server=192.168.1.46;UID=sa;Password=sa123456.;" providerName="System.Data.SqlClient"/>
|
|
<add name="OracleDbContext" providerName="Oracle.ManagedDataAccess.Client" connectionString="User Id=oracle_user;Password=oracle_user_password;Data Source=oracle"/>
|
|
<add name="yunContext" connectionString="DATA SOURCE=192.168.1.41:1521/ZJZXCRM;PASSWORD=sa123456.;PERSIST SECURITY INFO=True;USER ID=YUDEV" providerName="Oracle.ManagedDataAccess.Client"/>
|
|
</connectionStrings>
|
|
<redis>
|
|
<add name="Redis0" connectionString="192.168.1.45:6379" db="0"/>
|
|
</redis>
|
|
<appSettings>
|
|
<add key="aspnet:UseTaskFriendlySynchronizationContext" value="true"/>
|
|
<add key="fileHost" value="http://192.168.1.45:809"/>
|
|
<add key="ZxPassword" value="abc123"/>
|
|
<add key="ZxFrom" value="guangzhou"/>
|
|
<add key="ZxTeam" value="19"/>
|
|
<add key="CRMClientKey" value="gd_crm"/>
|
|
<add key="WeiXinRcontactUpload" value="http://120.197.36.210:709/WxMessageSvr.svc/RContact/Put"/>
|
|
<add key="WxXinFriendsUpload" value="http://120.197.36.210:709/WxMessageSvr.svc/Friend/Put"/>
|
|
<add key="WeiXinUserAlive" value="http://120.197.36.210:709/WxMessageSvr.svc/Alive/Put"/>
|
|
<add key="FriendAndRcontactPut" value="http://120.197.36.210:709/WxMessageSvr.svc/FriendAndRcontactPut/Put"/>
|
|
<add key="AppVersion" value="1"/>
|
|
<add key="ShowBT" value="1"/>
|
|
</appSettings>
|
|
<!--
|
|
有关 web.config 更改的说明,请参见 http://go.microsoft.com/fwlink/?LinkId=235367。
|
|
|
|
可在 <httpRuntime> 标记上设置以下特性。
|
|
<system.Web>
|
|
<httpRuntime targetFramework="4.5.2" />
|
|
</system.Web>
|
|
-->
|
|
<system.web>
|
|
<compilation debug="true" targetFramework="4.5.2"/>
|
|
<httpRuntime targetFramework="4.5" maxRequestLength="2147483644" executionTimeout="300"/>
|
|
<httpModules>
|
|
<add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web"/>
|
|
</httpModules>
|
|
</system.web>
|
|
<system.serviceModel>
|
|
<services>
|
|
<service behaviorConfiguration="ServiceBehaviour" name="WxService.WxMessageSvr">
|
|
<endpoint address="" behaviorConfiguration="web" binding="webHttpBinding" contract="WxService.IWxMessageSvr"/>
|
|
</service>
|
|
<service behaviorConfiguration="ServiceBehaviour" name="WxService.WeiXinService">
|
|
<endpoint address="" behaviorConfiguration="web" binding="webHttpBinding" contract="WxService.IWeiXinService"/>
|
|
</service>
|
|
</services>
|
|
<behaviors>
|
|
<endpointBehaviors>
|
|
<behavior name="web">
|
|
<webHttp/>
|
|
</behavior>
|
|
<behavior name="WxService.WxOrderSvrAspNetAjaxBehavior">
|
|
<webHttp/>
|
|
</behavior>
|
|
</endpointBehaviors>
|
|
<serviceBehaviors>
|
|
<behavior name="ServiceBehaviour">
|
|
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/>
|
|
<serviceDebug includeExceptionDetailInFaults="true"/>
|
|
</behavior>
|
|
<behavior name="">
|
|
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/>
|
|
<serviceDebug includeExceptionDetailInFaults="true"/>
|
|
</behavior>
|
|
</serviceBehaviors>
|
|
</behaviors>
|
|
<bindings>
|
|
<basicHttpBinding>
|
|
<binding name="LargeDataTransferServicesBinding" sendTimeout="00:10:00" maxReceivedMessageSize="2147483647" transferMode="Streamed" messageEncoding="Text">
|
|
<readerQuotas maxArrayLength="2147483647" maxStringContentLength="2147483647" maxBytesPerRead="2147483647"/>
|
|
<security mode="None"/>
|
|
</binding>
|
|
</basicHttpBinding>
|
|
<webHttpBinding>
|
|
<!--crossDomainScriptAccessEnabled make the WCF 4 service support the JSONP-->
|
|
<binding name="HttpJsonpBinding" crossDomainScriptAccessEnabled="true" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" maxBufferPoolSize="2147483647"/>
|
|
</webHttpBinding>
|
|
</bindings>
|
|
<standardEndpoints>
|
|
<webHttpEndpoint>
|
|
<standardEndpoint name="max" transferMode="Buffered" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" defaultOutgoingResponseFormat="Json" helpEnabled="true" automaticFormatSelectionEnabled="true">
|
|
<readerQuotas maxDepth="64" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647"/>
|
|
</standardEndpoint>
|
|
</webHttpEndpoint>
|
|
</standardEndpoints>
|
|
<protocolMapping>
|
|
<add binding="basicHttpsBinding" scheme="https"/>
|
|
</protocolMapping>
|
|
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true"/>
|
|
</system.serviceModel>
|
|
<system.webServer>
|
|
<modules runAllManagedModulesForAllRequests="true">
|
|
<remove name="ApplicationInsightsWebTracking"/>
|
|
<add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" preCondition="managedHandler"/>
|
|
</modules>
|
|
<!--
|
|
若要在调试过程中浏览 Web 应用程序根目录,请将下面的值设置为 True。
|
|
在部署之前将该值设置为 False 可避免泄露 Web 应用程序文件夹信息。
|
|
-->
|
|
<directoryBrowse enabled="true"/>
|
|
<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>
|
|
<httpProtocol>
|
|
<customHeaders>
|
|
<add name="Access-Control-Allow-Origin" value="*"/>
|
|
<add name="Access-Control-Max-Age" value="3600"/>
|
|
<add name="Access-Control-Allow-Headers" value="Content-Type, Accept, MaxDataServiceVersion"/>
|
|
<add name="Access-Control-Allow-Methods" value="PUT, POST, GET, DELETE, MERGE, OPTIONS"/>
|
|
</customHeaders>
|
|
</httpProtocol>
|
|
<validation validateIntegratedModeConfiguration="false"/>
|
|
</system.webServer>
|
|
<entityFramework>
|
|
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
|
|
<parameters>
|
|
<parameter value="v11.0"/>
|
|
</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"/>
|
|
</providers>
|
|
</entityFramework>
|
|
<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>
|
|
<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"/>
|
|
</DbProviderFactories>
|
|
</system.data>
|
|
<runtime>
|
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30AD4FE6B2A6AEED" culture="neutral"/>
|
|
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0"/>
|
|
</dependentAssembly>
|
|
<dependentAssembly>
|
|
<publisherPolicy apply="no"/>
|
|
<assemblyIdentity name="Oracle.ManagedDataAccess" publicKeyToken="89b483f429c47342" culture="neutral"/>
|
|
</dependentAssembly>
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="MySql.Data" publicKeyToken="c5687fc88969c44d" culture="neutral"/>
|
|
<bindingRedirect oldVersion="0.0.0.0-6.9.9.0" newVersion="6.9.9.0"/>
|
|
</dependentAssembly>
|
|
</assemblyBinding>
|
|
</runtime>
|
|
</configuration>
|