You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lj_plc/Main/MCRun/App.config

117 lines
5.2 KiB
XML

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="log4net" type="System.Configuration.IgnoreSectionHandler" />
</configSections>
<appSettings>
<add key="IsDaPing" value="false"/>
<!--控件属性列表文件-->
<add key="componentsPropertyFile" value="\data\ComponentProperty.xml" />
<!--控件动画列表文件-->
<add key="componentsActionFile" value="\data\ComponentAction.xml" />
<!--控件事件列表文件-->
<add key="componentsEventFile" value="\data\ComponentEvent.xml" />
<!--自定义插件目录-->
<add key="MesnacPlugInPath" value="Data\MesnacPlugIn" />
<!--组态工程目录-->
<add key="MCProjectPath" value="Data\MCProject" />
<!--系统工程配置目录-->
<add key="SysConfigPath" value="Data\SysConfig" />
<add key="ClientSettingsProvider.ServiceUri" value="" />
<!--Socket通信最大连接数-->
<add key="MaxConnection" value="50" />
<!--Socket通信侦听的IP地址-->
<add key="ListenServerIP" value="192.168.1.11" />
<!--Socket通信侦听的端口号-->
<add key="Port" value="1000" />
<!--机台号-->
<add key="EquipCode" value="01" />
<!--设备时钟类型值包括Thread或Timer-->
<add key="BASE_EQUIP_CLOCKTYPE" value="Thread" />
<!-- 是否加载数据源树 -->
<add key="IsLoadDataSourceTree" value="false" />
<!--是否开启保存回放数据-->
<add key="IsSaveBackViewData" value="false" />
<!--时序数据库InfluxDb的根目录-->
<add key="InfluxDb_Path" value="D:\influxdb-1.4.3-1" />
<!--时序数据库服务器的访问Uri-->
<add key="InfluxDb_EndPointUri" value="http://localhost:8086" />
<!--时序数据库服务器用户名-->
<add key="InfluxDb_UserName" value="root" />
<!--时序数据服务器密码-->
<add key="InfluxDb_Password" value="root" />
<!--回放数据保留的天数-->
<add key="BackViewDataSaveDays" value="30" />
</appSettings>
<log4net>
<appender name="ColoredConsoleAppender" type="log4net.Appender.ColoredConsoleAppender">
<mapping>
<level value="FATAL" />
<foreColor value="Red, HighIntensity" />
</mapping>
<mapping>
<level value="ERROR" />
<foreColor value="Red" />
</mapping>
<mapping>
<level value="WARN" />
<foreColor value="Yellow" />
</mapping>
<mapping>
<level value="INFO" />
<foreColor value="White" />
</mapping>
<mapping>
<level value="DEBUG" />
<foreColor value="Green" />
</mapping>
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level- %c - %message%newline" />
</layout>
</appender>
<appender name="FileAppender" type="log4net.Appender.RollingFileAppender">
<file value="D:\App_Log_Run\" />
<appendToFile value="true" />
<rollingStyle value="Date" />
<datePattern value="yyyyMMdd&quot;.txt&quot;" />
<maxSizeRollBackups value="90" />
<StaticLogFileName value="false" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level- %c - %message%newline" />
</layout>
<!--多线程写入支持-->
<lockingModel type="log4net.Appender.FileAppender+MinimalLock" />
</appender>
<root>
<level value="DEBUG" />
<appender-ref ref="ColoredConsoleAppender" />
<appender-ref ref="FileAppender"/>
</root>
</log4net>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
<system.web>
<membership defaultProvider="ClientAuthenticationMembershipProvider">
<providers>
<add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" />
</providers>
</membership>
<roleManager defaultProvider="ClientRoleProvider" enabled="true">
<providers>
<add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" />
</providers>
</roleManager>
</system.web>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-7.0.0.0" newVersion="7.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>