123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- <?xml version="1.0"?>
- <!--
- 有关如何配置 ASP.NET 应用程序的详细信息,请访问
- http://go.microsoft.com/fwlink/?LinkId=301880
- -->
- <configuration>
- <configSections>
- <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/>
- <sectionGroup name="spring">
- <!--Spring声明容器-->
- <section name="context" type="Spring.Context.Support.MvcContextHandler, Spring.Web.Mvc5"/>
- <section name="objects" type="Spring.Context.Support.DefaultSectionHandler, Spring.Core"/>
- </sectionGroup>
- </configSections>
- <!--Spring配置指向-->
- <spring>
- <context>
- <!--WebPage-->
- <resource uri="assembly://ChangFa.Machinery.WebPage/ChangFa.Machinery.WebPage.Config/IndexControllers.xml"/>
- <resource uri="assembly://ChangFa.Machinery.WebPage/ChangFa.Machinery.WebPage.Config/Controllers.xml"/>
- <resource uri="assembly://ChangFa.Machinery.WebPage/ChangFa.Machinery.WebPage.Config/ComControllers.xml"/>
- <!--Service-->
- <resource uri="assembly://MES.Production.Service/MES.Production.Service.Config/Service.xml"/>
- <resource uri="assembly://MES.Production.Service/MES.Production.Service.Config/ComService.xml"/>
- </context>
- </spring>
- <connectionStrings>
- <!--通用数据库连接字符串-->
- <add name="SqlConnectionString" connectionString="Data Source=121.196.23.238;Initial Catalog=MESProduction;User ID=sa;Password=A1B2C3D4@admin;" providerName="System.Data.SqlClient"/>
- <!-- EF数据库连接字符串-->
- <add name="Entities" connectionString="metadata=res://*/Sql_Wkdb.csdl|res://*/Sql_Wkdb.ssdl|res://*/Sql_Wkdb.msl;provider=System.Data.SqlClient;provider connection string="Data Source=121.196.23.238;Initial Catalog=MESProduction;User ID=sa;Password=A1B2C3D4@admin;MultipleActiveResultSets=True;Application Name=EntityFramework"" providerName="System.Data.EntityClient"/>
- </connectionStrings>
- <appSettings file="Config/WebSet.config">
- <add key="webpages:Version" value="3.0.0.0"/>
- <add key="webpages:Enabled" value="false"/>
- <add key="ClientValidationEnabled" value="true"/>
- <add key="UnobtrusiveJavaScriptEnabled" value="true"/>
- <add key="dataRe" value="NT_"/>
- <add key="AndroidName" value=""/>
- <add key="IOSName" value=""/>
- <add key="DataConfigUrl" value="/App_Data/Config/DataAccess.config"/>
- <add key="ConfigureUrl_Line" value="/App_Data/Config/Configure_Line.config"/>
- <add key="ConfigureUrl_Test" value="/App_Data/Config/Configure_Test.config"/>
- <add key="Default" value="Huoxing"/>
- <add key="ip" value="47.96.20.14"/>
- <add key="port" value="8089"/>
- <add key="mongoip" value="147.96.20.14"/>
- <add key="MESProduction" value="user id=sa;password=A1B2C3D4@admin;DataBase=MESProduction;server=121.196.23.238;pooling=true;connection lifetime=0;min pool size = 10;max pool size=4000"/>
- <add key="ChangFaMachinery_Log" value="user id=sa;password=A1b2c3d4@admin;DataBase=CentralControlSystem_Log;server=47.96.20.14;pooling=true;connection lifetime=0;min pool size = 10;max pool size=4000"/>
- </appSettings>
- <!--
- 有关 web.config 更改的说明,请参见 http://go.microsoft.com/fwlink/?LinkId=235367。
- 可在 <httpRuntime> 标记上设置以下特性。
- <system.Web>
- <httpRuntime targetFramework="4.8" />
- </system.Web>
- -->
- <system.web>
- <compilation debug="true" targetFramework="4.6">
- <assemblies>
- <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
- </assemblies>
- </compilation>
- <!--Session超时-->
- <sessionState mode="InProc" timeout="120"/>
- <!--上传请求文件大小-->
- <httpRuntime maxRequestLength="1048576" executionTimeout="60000" requestValidationMode="2.0" targetFramework="4.5"/>
- <globalization requestEncoding="utf-8" responseEncoding="utf-8"/>
- </system.web>
- <system.webServer>
- <defaultDocument>
- <files>
- <add value="pages/index.aspx"/>
- </files>
- </defaultDocument>
- <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>
- <!--URL传值过长的问题-->
- <security>
- <requestFiltering>
- <requestLimits maxQueryString="102800"/>
- </requestFiltering>
- </security>
- <staticContent>
- <!--<mimeMap fileExtension=".woff" mimeType="application/x-font-woff" />-->
- </staticContent>
- </system.webServer>
- <runtime>
- <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
- <dependentAssembly>
- <assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35"/>
- <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0"/>
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35"/>
- <bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234"/>
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35"/>
- <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0"/>
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
- <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0"/>
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35"/>
- <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0"/>
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral"/>
- <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0"/>
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="System.Web.Http.WebHost" publicKeyToken="31bf3856ad364e35" culture="neutral"/>
- <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0"/>
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral"/>
- <bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0"/>
- </dependentAssembly>
- </assemblyBinding>
- </runtime>
- <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"/>
- </providers>
- </entityFramework>
- </configuration>
|