<?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" />
|
</configSections>
|
<appSettings>
|
<add key="aspnet:UseTaskFriendlySynchronizationContext" value="true"/>
|
<add key="IgnoringAntPathRequestMatcher"
|
value="CalculateDataServices.svc,EarthquakeAffectedAreaServices.svc,GrasslandFloodDisasterServices.svc,GrasslandFireDisasterServices.svc" />
|
</appSettings>
|
<connectionStrings>
|
<add name="Default" connectionString="Data Source=47.121.117.123;port=3306;Initial Catalog=calculte;user id=root;password=abcd,.1234;" providerName="MySql.Data.MySqlClient" />
|
<!--<add name="Default" connectionString="data source=.;initial catalog=GTDBOMTS;Uid=sa;pwd=sasa;App=EntityFramework" providerName="System.Data.SqlClient" />-->
|
</connectionStrings>
|
<system.web>
|
<customErrors mode="Off" />
|
<compilation debug="true" targetFramework="4.6.1" />
|
<authentication mode="None" />
|
<httpRuntime maxRequestLength="2097151" />
|
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID" />
|
</system.web>
|
<system.webServer>
|
<httpProtocol>
|
<customHeaders>
|
<!--<add name="Access-Control-Allow-Origin" value="*" />
|
<add name="Access-Control-Allow-Headers" value="Content-Type, Accept" />
|
<add name="Access-Control-Allow-Methods" value="GET, POST, PUT, DELETE" />
|
<add name="Access-Control-Max-Age" value="1728000" />-->
|
</customHeaders>
|
</httpProtocol>
|
<modules runAllManagedModulesForAllRequests="false" />
|
<staticContent>
|
<mimeMap fileExtension=".apk" mimeType="application/vnd.android.package-archive" />
|
<mimeMap fileExtension=".svc" mimeType="application/octet-stream" />
|
</staticContent>
|
<directoryBrowse enabled="false" />
|
</system.webServer>
|
<!--<system.diagnostics>
|
<trace autoflush="true" />
|
<sources>
|
<source name="System.ServiceModel.MessageLogging">
|
<listeners>
|
<add name="ServiceModelMessageLoggingListener">
|
<filter type="" />
|
</add>
|
</listeners>
|
</source>
|
</sources>
|
<sharedListeners>
|
<add initializeData="Logs\Messages.svclog"
|
type="System.Diagnostics.XmlWriterTraceListener"
|
name="ServiceModelMessageLoggingListener"
|
traceOutputOptions="Timestamp">
|
<filter type="" />
|
</add>
|
</sharedListeners>
|
</system.diagnostics>-->
|
<system.serviceModel>
|
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
|
<diagnostics>
|
<messageLogging logEntireMessage="true"
|
logMalformedMessages="true"
|
logMessagesAtServiceLevel="true"
|
logMessagesAtTransportLevel="true"
|
maxMessagesToLog="2147483647"
|
maxSizeOfMessageToLog="2147483647" />
|
</diagnostics>
|
<services>
|
<service behaviorConfiguration="Yokogawa.TLSVP.Api.AppServiceBehavior"
|
name="Yokogawa.TLSVP.Api.WebSite.CalculateDataServices">
|
<endpoint address="" behaviorConfiguration="WebHttpBindingBehavior"
|
binding="webHttpBinding" bindingConfiguration="MyServiceBinding"
|
contract="Yokogawa.TLSVP.Api.Contract.ICalculateDataServices" />
|
</service>
|
<service behaviorConfiguration="Yokogawa.TLSVP.Api.AppServiceBehavior"
|
name="Yokogawa.TLSVP.Api.WebSite.EarthquakeAffectedAreaServices">
|
<endpoint address="" behaviorConfiguration="WebHttpBindingBehavior"
|
binding="webHttpBinding" bindingConfiguration="MyServiceBinding"
|
contract="Yokogawa.TLSVP.Api.Contract.IEarthquakeAffectedAreaServices" />
|
</service>
|
<service behaviorConfiguration="Yokogawa.TLSVP.Api.AppServiceBehavior"
|
name="Yokogawa.TLSVP.Api.WebSite.GrasslandFloodDisasterServices">
|
<endpoint address="" behaviorConfiguration="WebHttpBindingBehavior"
|
binding="webHttpBinding" bindingConfiguration="MyServiceBinding"
|
contract="Yokogawa.TLSVP.Api.Contract.IGrasslandFloodDisasterServices" />
|
</service>
|
<service behaviorConfiguration="Yokogawa.TLSVP.Api.AppServiceBehavior"
|
name="Yokogawa.TLSVP.Api.WebSite.GrasslandFireDisasterServices">
|
<endpoint address="" behaviorConfiguration="WebHttpBindingBehavior"
|
binding="webHttpBinding" bindingConfiguration="MyServiceBinding"
|
contract="Yokogawa.TLSVP.Api.Contract.IGrasslandFireDisasterServices" />
|
</service>
|
</services>
|
<behaviors>
|
<endpointBehaviors>
|
<behavior name="WebHttpBindingBehavior">
|
<webHttp />
|
</behavior>
|
<behavior name="webHttp">
|
<webHttp helpEnabled="true" />
|
</behavior>
|
</endpointBehaviors>
|
<serviceBehaviors>
|
<behavior name="Yokogawa.TLSVP.Api.AppServiceBehavior">
|
<serviceMetadata httpGetEnabled="true" />
|
<serviceDebug includeExceptionDetailInFaults="true" />
|
</behavior>
|
<behavior name="">
|
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
|
<serviceDebug includeExceptionDetailInFaults="false" />
|
</behavior>
|
</serviceBehaviors>
|
</behaviors>
|
<bindings>
|
<webHttpBinding>
|
<binding name="MyServiceBinding" sendTimeout="00:10:00" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" maxBufferPoolSize="2147483647">
|
<readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
|
<security mode="None" />
|
</binding>
|
<binding name="webHttpBindConfig" receiveTimeout="00:30:00" sendTimeout="00:30:00" maxReceivedMessageSize="104857600" transferMode="Streamed">
|
<readerQuotas maxStringContentLength="2147483647" maxArrayLength="2147483647" />
|
<security mode="None" />
|
</binding>
|
</webHttpBinding>
|
<basicHttpBinding />
|
</bindings>
|
<client />
|
</system.serviceModel>
|
|
<entityFramework>
|
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
|
<parameters>
|
<parameter value="mssqllocaldb" />
|
</parameters>
|
</defaultConnectionFactory>
|
<providers>
|
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
|
<provider invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6, Version=6.10.8.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
|
<provider invariantName="System.Data.SQLite.EF6" type="System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6" />
|
</providers>
|
</entityFramework>
|
<system.data>
|
<DbProviderFactories>
|
<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.10.8.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
|
<remove invariant="System.Data.SQLite.EF6" />
|
<add name="SQLite Data Provider (Entity Framework 6)" invariant="System.Data.SQLite.EF6" description=".NET Framework Data Provider for SQLite (Entity Framework 6)" type="System.Data.SQLite.EF6.SQLiteProviderFactory, System.Data.SQLite.EF6" />
|
<remove invariant="System.Data.SQLite" />
|
<add name="SQLite Data Provider" invariant="System.Data.SQLite" description=".NET Framework Data Provider for SQLite" type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite" />
|
</DbProviderFactories>
|
</system.data>
|
</configuration>
|