Web.config 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <?xml version="1.0"?>
  2. <!--
  3. 有关如何配置 ASP.NET 应用程序的详细信息,请访问
  4. http://go.microsoft.com/fwlink/?LinkId=301880
  5. -->
  6. <configuration>
  7. <configSections>
  8. <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/>
  9. <sectionGroup name="spring">
  10. <!--Spring声明容器-->
  11. <section name="context" type="Spring.Context.Support.MvcContextHandler, Spring.Web.Mvc5"/>
  12. <section name="objects" type="Spring.Context.Support.DefaultSectionHandler, Spring.Core"/>
  13. </sectionGroup>
  14. </configSections>
  15. <!--Spring配置指向-->
  16. <spring>
  17. <context>
  18. <!--WebPage-->
  19. <resource uri="assembly://ChangFa.Machinery.WebPage/ChangFa.Machinery.WebPage.Config/IndexControllers.xml"/>
  20. <resource uri="assembly://ChangFa.Machinery.WebPage/ChangFa.Machinery.WebPage.Config/Controllers.xml"/>
  21. <resource uri="assembly://ChangFa.Machinery.WebPage/ChangFa.Machinery.WebPage.Config/ComControllers.xml"/>
  22. <!--Service-->
  23. <resource uri="assembly://MES.Production.Service/MES.Production.Service.Config/Service.xml"/>
  24. <resource uri="assembly://MES.Production.Service/MES.Production.Service.Config/ComService.xml"/>
  25. </context>
  26. </spring>
  27. <connectionStrings>
  28. <!--通用数据库连接字符串-->
  29. <add name="SqlConnectionString" connectionString="Data Source=121.196.23.238;Initial Catalog=MESProduction;User ID=sa;Password=A1B2C3D4@admin;" providerName="System.Data.SqlClient"/>
  30. <!-- EF数据库连接字符串-->
  31. <add name="Entities" connectionString="metadata=res://*/Sql_Wkdb.csdl|res://*/Sql_Wkdb.ssdl|res://*/Sql_Wkdb.msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=121.196.23.238;Initial Catalog=MESProduction;User ID=sa;Password=A1B2C3D4@admin;MultipleActiveResultSets=True;Application Name=EntityFramework&quot;" providerName="System.Data.EntityClient"/>
  32. </connectionStrings>
  33. <appSettings file="Config/WebSet.config">
  34. <add key="webpages:Version" value="3.0.0.0"/>
  35. <add key="webpages:Enabled" value="false"/>
  36. <add key="ClientValidationEnabled" value="true"/>
  37. <add key="UnobtrusiveJavaScriptEnabled" value="true"/>
  38. <add key="dataRe" value="NT_"/>
  39. <add key="AndroidName" value=""/>
  40. <add key="IOSName" value=""/>
  41. <add key="DataConfigUrl" value="/App_Data/Config/DataAccess.config"/>
  42. <add key="ConfigureUrl_Line" value="/App_Data/Config/Configure_Line.config"/>
  43. <add key="ConfigureUrl_Test" value="/App_Data/Config/Configure_Test.config"/>
  44. <add key="Default" value="Huoxing"/>
  45. <add key="ip" value="47.96.20.14"/>
  46. <add key="port" value="8089"/>
  47. <add key="mongoip" value="147.96.20.14"/>
  48. <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"/>
  49. <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"/>
  50. </appSettings>
  51. <!--
  52. 有关 web.config 更改的说明,请参见 http://go.microsoft.com/fwlink/?LinkId=235367。
  53. 可在 <httpRuntime> 标记上设置以下特性。
  54. <system.Web>
  55. <httpRuntime targetFramework="4.8" />
  56. </system.Web>
  57. -->
  58. <system.web>
  59. <compilation debug="true" targetFramework="4.6">
  60. <assemblies>
  61. <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
  62. </assemblies>
  63. </compilation>
  64. <!--Session超时-->
  65. <sessionState mode="InProc" timeout="120"/>
  66. <!--上传请求文件大小-->
  67. <httpRuntime maxRequestLength="1048576" executionTimeout="60000" requestValidationMode="2.0" targetFramework="4.5"/>
  68. <globalization requestEncoding="utf-8" responseEncoding="utf-8"/>
  69. </system.web>
  70. <system.webServer>
  71. <defaultDocument>
  72. <files>
  73. <add value="pages/index.aspx"/>
  74. </files>
  75. </defaultDocument>
  76. <handlers>
  77. <remove name="ExtensionlessUrlHandler-Integrated-4.0"/>
  78. <remove name="OPTIONSVerbHandler"/>
  79. <remove name="TRACEVerbHandler"/>
  80. <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0"/>
  81. </handlers>
  82. <!--URL传值过长的问题-->
  83. <security>
  84. <requestFiltering>
  85. <requestLimits maxQueryString="102800"/>
  86. </requestFiltering>
  87. </security>
  88. <staticContent>
  89. <!--<mimeMap fileExtension=".woff" mimeType="application/x-font-woff" />-->
  90. </staticContent>
  91. </system.webServer>
  92. <runtime>
  93. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  94. <dependentAssembly>
  95. <assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35"/>
  96. <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0"/>
  97. </dependentAssembly>
  98. <dependentAssembly>
  99. <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35"/>
  100. <bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234"/>
  101. </dependentAssembly>
  102. <dependentAssembly>
  103. <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35"/>
  104. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0"/>
  105. </dependentAssembly>
  106. <dependentAssembly>
  107. <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
  108. <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0"/>
  109. </dependentAssembly>
  110. <dependentAssembly>
  111. <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35"/>
  112. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0"/>
  113. </dependentAssembly>
  114. <dependentAssembly>
  115. <assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral"/>
  116. <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0"/>
  117. </dependentAssembly>
  118. <dependentAssembly>
  119. <assemblyIdentity name="System.Web.Http.WebHost" publicKeyToken="31bf3856ad364e35" culture="neutral"/>
  120. <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0"/>
  121. </dependentAssembly>
  122. <dependentAssembly>
  123. <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral"/>
  124. <bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0"/>
  125. </dependentAssembly>
  126. </assemblyBinding>
  127. </runtime>
  128. <entityFramework>
  129. <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
  130. <parameters>
  131. <parameter value="mssqllocaldb"/>
  132. </parameters>
  133. </defaultConnectionFactory>
  134. <providers>
  135. <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer"/>
  136. </providers>
  137. </entityFramework>
  138. </configuration>