县级监管平台

Web.config 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. For more information on how to configure your ASP.NET application, please visit
  4. http://go.microsoft.com/fwlink/?LinkId=301880
  5. -->
  6. <configuration>
  7. <appSettings>
  8. <add key="webpages:Version" value="3.0.0.0"/>
  9. <add key="webpages:Enabled" value="false"/>
  10. <add key="ClientValidationEnabled" value="true"/>
  11. <add key="UnobtrusiveJavaScriptEnabled" value="true"/>
  12. <add key="DESKey" value="123456789"/>
  13. <!--中鑫之宝短信配置-->
  14. <add key="smsurl" value="http://api.1086sms.com/api/"/>
  15. <add key="smsusername" value="zxzb"/>
  16. <add key="smspassword" value="zxzb123"/>
  17. <add key="smssign" value="中鑫之宝"/>
  18. </appSettings>
  19. <connectionStrings>
  20. <add name="ConnectionString" connectionString="Data Source=192.168.4.18;User ID=sa;pwd=800100;Initial Catalog=CityPlatform;"/>
  21. </connectionStrings>
  22. <system.web>
  23. <compilation debug="true" targetFramework="4.5"/>
  24. <httpRuntime targetFramework="4.5" maxRequestLength="20971520" executionTimeout="3600"/>
  25. <authentication>
  26. <forms name=".MyCookie" cookieless="UseCookies" loginUrl="/Login/login" protection="All" timeout="60"/>
  27. </authentication>
  28. </system.web>
  29. <runtime>
  30. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  31. <dependentAssembly>
  32. <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35"/>
  33. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0"/>
  34. </dependentAssembly>
  35. <dependentAssembly>
  36. <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35"/>
  37. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0"/>
  38. </dependentAssembly>
  39. <dependentAssembly>
  40. <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
  41. <bindingRedirect oldVersion="1.0.0.0-5.2.6.0" newVersion="5.2.6.0"/>
  42. </dependentAssembly>
  43. </assemblyBinding>
  44. </runtime>
  45. <system.webServer>
  46. <staticContent>
  47. <mimeMap fileExtension=".apk" mimeType="application/vnd.android.package-archive"/>
  48. </staticContent>
  49. <!--cors 支持跨域 clq新增 strat-->
  50. <httpProtocol>
  51. <customHeaders>
  52. <add name="Access-Control-Allow-Origin" value="*"/>
  53. <add name="Access-Control-Allow-Headers" value="Content-Type"/>
  54. <add name="Access-Control-Allow-Methods" value="GET, POST, PUT, DELETE, OPTIONS"/>
  55. </customHeaders>
  56. </httpProtocol>
  57. <!--cors 支持跨域 end-->
  58. <validation validateIntegratedModeConfiguration="false"/>
  59. </system.webServer>
  60. </configuration>