You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
3.2 KiB
59 lines
3.2 KiB
4 years ago
|
<?xml version="1.0"?>
|
||
|
<configuration>
|
||
|
<appSettings>
|
||
|
<add key="OPCServerIP" value="10.111.226.150" />
|
||
|
<add key="OPCServerName" value="Kepware.KEPServerEX.V4" />
|
||
|
<add key="logFilePath" value="D:\项目文件夹\FJC_CC_B9\truck\B9\ServicesCenter\WCF\EQUIPINTERFACETEST\logText.txt"/>
|
||
|
</appSettings>
|
||
|
<connectionStrings>
|
||
|
<!--主数据库连接-->
|
||
|
<!--<add name="maindb" connectionString="Data Source=192.168.0.133\SQL2008R2;Initial Catalog=B9DB;User Id=B9_se;Password=qm;" providerName="System.Data.SqlClient"/>-->
|
||
|
<add name="maindb" connectionString="Data Source=YANYG-PC\YANYG;Initial Catalog=B9DB133;max pool size=512;connect timeout = 100;User Id=sa;Password=db2012;" providerName="System.Data.SqlClient" />
|
||
|
<!--<add name="maindb" connectionString="Data Source=192.168.3.178;Initial Catalog=B9DB;User Id=sa;Password=qm;" providerName="System.Data.SqlClient"/>-->
|
||
|
</connectionStrings>
|
||
|
<startup>
|
||
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
|
||
|
</startup>
|
||
|
<system.serviceModel>
|
||
|
<bindings>
|
||
|
<basicHttpBinding>
|
||
|
<binding name="BasicHttpBinding_IOpcService" closeTimeout="00:10:00"
|
||
|
openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00"
|
||
|
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
|
||
|
maxBufferSize="2147483647" maxBufferPoolSize="524288000" maxReceivedMessageSize="2147483647"
|
||
|
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
|
||
|
useDefaultWebProxy="true">
|
||
|
<readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="16384"
|
||
|
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
|
||
|
<security mode="None">
|
||
|
<transport clientCredentialType="None" proxyCredentialType="None"
|
||
|
realm="" />
|
||
|
<message clientCredentialType="UserName" algorithmSuite="Default" />
|
||
|
</security>
|
||
|
</binding>
|
||
|
</basicHttpBinding>
|
||
|
<netTcpBinding>
|
||
|
<binding name="NetTcpBinding_ITaskService" closeTimeout="00:10:00"
|
||
|
openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00"
|
||
|
transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions"
|
||
|
hostNameComparisonMode="StrongWildcard" listenBacklog="10" maxBufferPoolSize="524288"
|
||
|
maxBufferSize="2024000000" maxConnections="10" maxReceivedMessageSize="2024000000">
|
||
|
<readerQuotas maxDepth="32" maxStringContentLength="2024000000"
|
||
|
maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
|
||
|
<reliableSession ordered="true" inactivityTimeout="00:10:00"
|
||
|
enabled="false" />
|
||
|
<security mode="None">
|
||
|
<transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" />
|
||
|
<message clientCredentialType="Windows" />
|
||
|
</security>
|
||
|
</binding>
|
||
|
</netTcpBinding>
|
||
|
</bindings>
|
||
|
<client>
|
||
|
<endpoint address="http://localhost:8938/OpcService.svc" binding="basicHttpBinding"
|
||
|
bindingConfiguration="BasicHttpBinding_IOpcService" contract="OpcServiceHost.IOpcService"
|
||
|
name="BasicHttpBinding_IOpcService" />
|
||
|
</client>
|
||
|
</system.serviceModel>
|
||
|
</configuration>
|