Web.config 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?xml version="1.0"?>
  2. <!--
  3. 有关如何配置 ASP.NET 应用程序的详细信息,请访问
  4. https://go.microsoft.com/fwlink/?LinkId=169433
  5. -->
  6. <configuration>
  7. <connectionStrings>
  8. <!--三水服务器-->
  9. <add name="ConnectionString" connectionString="Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=172.18.32.116)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=dkmes)));User Id=hgiboss;Password=dongke" providerName="Oracle.ManagedDataAccess.Client"/>
  10. <!--<add name="ConnectionString" connectionString="Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=172.18.32.30)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=hgmestest)));User Id=hgiboss;Password=dk" providerName="Oracle.ManagedDataAccess.Client"/>-->
  11. </connectionStrings>
  12. <appSettings>
  13. <!--MES服务器地址-->
  14. <add key="MesServer" value="http://172.18.32.32:5678"/>
  15. <!--定时器启动标识-->
  16. <add key="TimerLoadFlag" value="0"/>
  17. </appSettings>
  18. <system.web>
  19. <webServices>
  20. <protocols>
  21. <add name="HttpPost"/>
  22. <add name="HttpGet"/>
  23. <add name="HttpSoap"/>
  24. <add name="Documentation"/>
  25. </protocols>
  26. </webServices>
  27. <customErrors mode="Off"/>
  28. <compilation targetFramework="4.0" debug="true"/>
  29. <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID" validateRequest="false"/>
  30. <httpRuntime/>
  31. <!--<sessionState mode="StateServer" stateConnectionString="tcpip=127.0.0.1:42424" cookieless="false" timeout="1440"/>-->
  32. </system.web>
  33. <system.data>
  34. <DbProviderFactories>
  35. <remove invariant="Oracle.ManagedDataAccess.Client"/>
  36. <add name="ODP.NET, Managed Driver" invariant="Oracle.ManagedDataAccess.Client" description="Oracle Data Provider for .NET, Managed Driver" type="Oracle.ManagedDataAccess.Client.OracleClientFactory, Oracle.ManagedDataAccess, Version=4.122.19.1, Culture=neutral, PublicKeyToken=89b483f429c47342"/>
  37. </DbProviderFactories>
  38. </system.data>
  39. <system.webServer>
  40. <security>
  41. <requestFiltering>
  42. <requestLimits maxAllowedContentLength="1048576000"/>
  43. </requestFiltering>
  44. </security>
  45. <staticContent>
  46. <mimeMap fileExtension=".log" mimeType="text/plain"/>
  47. <!--<mimeMap fileExtension=".woff2" mimeType="image/svg+xml" />-->
  48. </staticContent>
  49. <defaultDocument>
  50. <files>
  51. <add value="index.ashx"/>
  52. </files>
  53. </defaultDocument>
  54. <directoryBrowse enabled="true"/>
  55. </system.webServer>
  56. <system.serviceModel>
  57. <bindings/>
  58. <client/>
  59. </system.serviceModel>
  60. </configuration>