App.config 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <configuration>
  3. <configSections>
  4. <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net " />
  5. </configSections>
  6. <startup useLegacyV2RuntimeActivationPolicy="true">
  7. <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
  8. </startup>
  9. <connectionStrings>
  10. <add name="PostgreSQL" connectionString="Server=localhost;Port=5432;User Id=postgres;Password=123456;Database=postgres;Enlist=true;Preload Reader = true;" />
  11. </connectionStrings>
  12. <appSettings>
  13. <add key="IsSimulationMode" value="false" />
  14. <add key="dbName" value="elk01_db"/>
  15. <add key="RobotAddress" value="127.0.0.1:10110" />
  16. <add key="AlignerAddress" value="127.0.0.1:10111" />
  17. <add key="WIDReaderAddress" value="127.0.0.1:23" />
  18. <add key="Su" value="21232f297a57a5a743894a0e4a801fc3" />
  19. <add key="ClientSettingsProvider.ServiceUri" value="" />
  20. </appSettings>
  21. <log4net>
  22. <appender name="fileAppender" type="log4net.Appender.RollingFileAppender">
  23. <param name="Encoding" value="utf-8" />
  24. <param name="File" value="Logs\log" />
  25. <param name="AppendToFile" value="true" />
  26. <param name="RollingStyle" value="Date" />
  27. <param name="StaticLogFileName" value="false" />
  28. <datePattern value="yyyyMMdd'.txt'" />
  29. <layout type="log4net.Layout.PatternLayout,log4net">
  30. <param name="ConversionPattern" value="%m%n" />
  31. <param name="Header" value="&lt;== " />
  32. <param name="Footer" value="==&gt;" />
  33. </layout>
  34. </appender>
  35. <root>
  36. <level value="ALL" />
  37. <appender-ref ref="fileAppender" />
  38. </root>
  39. </log4net>
  40. <system.diagnostics>
  41. <sources>
  42. <source name="System.ServiceModel" switchValue="Information,ActivityTracing" propagateActivity="true">
  43. <listeners>
  44. <add name="xml" />
  45. </listeners>
  46. </source>
  47. <source name="System.ServiceModel.MessageLogging">
  48. <listeners>
  49. <add name="xml" />
  50. </listeners>
  51. </source>
  52. </sources>
  53. <sharedListeners>
  54. <add initializeData="C:\logs\TracingAndLogging-service.svclog" type="System.Diagnostics.XmlWriterTraceListener" name="xml" />
  55. </sharedListeners>
  56. <trace autoflush="true" />
  57. </system.diagnostics>
  58. <!--<system.diagnostics>
  59. <sources>
  60. <source name="System.ServiceModel.MessageLogging">
  61. <listeners>
  62. <add name="messages"
  63. type="System.Diagnostics.XmlWriterTraceListener"
  64. initializeData="c:\logs\mitrt.svclog" />
  65. </listeners>
  66. </source>
  67. </sources>
  68. </system.diagnostics>-->
  69. <system.serviceModel>
  70. <!--<diagnostics>
  71. <messageLogging logEntireMessage="true" logMalformedMessages="false" logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="false" maxMessagesToLog="3000" maxSizeOfMessageToLog="2000" />
  72. </diagnostics>-->
  73. <bindings>
  74. <netTcpBinding>
  75. <binding name="Aitex_netTcpBinding" maxReceivedMessageSize="2147483647" receiveTimeout="infinite">
  76. <readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
  77. <security mode="None">
  78. <transport clientCredentialType="None" />
  79. <message clientCredentialType="None" />
  80. </security>
  81. </binding>
  82. </netTcpBinding>
  83. </bindings>
  84. <services>
  85. <service behaviorConfiguration="BasicBehavior" name="Aitex.Core.Account.AccountService">
  86. <endpoint address="net.tcp://localhost:8775/AccountService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="Aitex.Core.Account.IAccountService" />
  87. </service>
  88. <service behaviorConfiguration="BasicBehavior" name="MECF.Framework.Common.OperationCenter.InvokeService">
  89. <endpoint address="net.tcp://localhost:8751/InvokeService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.OperationCenter.IInvokeService" />
  90. </service>
  91. <service behaviorConfiguration="BasicBehavior" name="Aitex.Core.WCF.EventService">
  92. <endpoint address="net.tcp://localhost:8752/EventService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="Aitex.Core.WCF.Interface.IEventService" />
  93. </service>
  94. <service behaviorConfiguration="BasicBehavior" name="MECF.Framework.Common.DataCenter.QueryDataService">
  95. <endpoint address="net.tcp://localhost:8771/QueryDataService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.DataCenter.IQueryDataService" />
  96. </service>
  97. <service behaviorConfiguration="BasicBehavior" name="MECF.Framework.Common.RecipeCenter.RecipeService">
  98. <endpoint address="net.tcp://localhost:8773/RecipeService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.RecipeCenter.IRecipeService" />
  99. </service>
  100. <service behaviorConfiguration="BasicBehavior" name="MECF.Framework.Common.ParameterCenter.ParameterService">
  101. <endpoint address="net.tcp://localhost:8777/ParameterService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.ParameterCenter.IParameterService" />
  102. </service>
  103. <service behaviorConfiguration="BasicBehavior" name="MECF.Framework.Common.Alarms.AlarmDefineService">
  104. <endpoint address="net.tcp://localhost:8779/AlarmDefineService" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.Alarms.IAlarmDefineService" />
  105. </service>
  106. </services>
  107. <client>
  108. <endpoint address="net.tcp://localhost:6701/SimulatorPlcService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.PLC.IWcfPlcService" name="WcfPlc_PM1" />
  109. <endpoint address="net.tcp://localhost:6702/SimulatorPlcService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.PLC.IWcfPlcService" name="WcfPlc_Heater" />
  110. <endpoint address="net.tcp://localhost:6703/SimulatorPlcService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.PLC.IWcfPlcService" name="WcfPlc_GasLine1" />
  111. <endpoint address="net.tcp://localhost:6704/SimulatorPlcService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.PLC.IWcfPlcService" name="WcfPlc_GasLine2" />
  112. <endpoint address="net.tcp://localhost:6705/SimulatorPlcService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.PLC.IWcfPlcService" name="WcfPlc_GasLine3" />
  113. <endpoint address="net.tcp://localhost:6706/SimulatorPlcService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.PLC.IWcfPlcService" name="WcfPlc_GasLine4" />
  114. <endpoint address="net.tcp://localhost:6707/SimulatorPlcService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.PLC.IWcfPlcService" name="WcfPlc_GasLine6" />
  115. <endpoint address="net.tcp://localhost:6708/SimulatorPlcService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.PLC.IWcfPlcService" name="WcfPlc_GasLine7" />
  116. <endpoint address="net.tcp://localhost:6709/SimulatorPlcService" behaviorConfiguration="EndpointBehavior" binding="netTcpBinding" bindingConfiguration="Aitex_netTcpBinding" contract="MECF.Framework.Common.PLC.IWcfPlcService" name="WcfPlc_GasLine8" />
  117. </client>
  118. <behaviors>
  119. <serviceBehaviors>
  120. <behavior name="BasicBehavior">
  121. <dataContractSerializer maxItemsInObjectGraph="2147483647" />
  122. <serviceMetadata httpGetEnabled="false" />
  123. <serviceDebug includeExceptionDetailInFaults="true" />
  124. <serviceAuthorization impersonateCallerForAllOperations="false" />
  125. </behavior>
  126. <behavior name="SingleModeBehavior">
  127. <dataContractSerializer maxItemsInObjectGraph="2147483647" />
  128. <serviceMetadata httpGetEnabled="false" />
  129. <serviceDebug includeExceptionDetailInFaults="true" />
  130. <serviceAuthorization impersonateCallerForAllOperations="false" />
  131. </behavior>
  132. </serviceBehaviors>
  133. <endpointBehaviors>
  134. <behavior name="EndpointBehavior">
  135. <dataContractSerializer maxItemsInObjectGraph="2147483647" />
  136. </behavior>
  137. </endpointBehaviors>
  138. </behaviors>
  139. </system.serviceModel>
  140. <system.web>
  141. <membership defaultProvider="ClientAuthenticationMembershipProvider">
  142. <providers>
  143. <add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" />
  144. </providers>
  145. </membership>
  146. <roleManager defaultProvider="ClientRoleProvider" enabled="true">
  147. <providers>
  148. <add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" />
  149. </providers>
  150. </roleManager>
  151. </system.web>
  152. <runtime>
  153. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  154. <dependentAssembly>
  155. <assemblyIdentity name="log4net" publicKeyToken="669e0ddf0bb1aa2a" culture="neutral" />
  156. <bindingRedirect oldVersion="0.0.0.0-2.0.9.0" newVersion="2.0.9.0" />
  157. </dependentAssembly>
  158. </assemblyBinding>
  159. </runtime>
  160. </configuration>