Нет описания

Web.config 3.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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.5.8;User ID=sa;pwd=hykj800100;Initial Catalog=CallCenter_Auto_20180905;"/>-->
  21. <add name="ConnectionString" connectionString="Data Source=192.168.4.18;User ID=sa;pwd=800100;Initial Catalog=CallCenter_Anto20190327;"/>
  22. <!--<add name="ConnectionString" connectionString="Data Source=192.168.4.18;User ID=sa;pwd=800100;Initial Catalog=CallCenter_Anto;"/>-->
  23. </connectionStrings>
  24. <system.web>
  25. <compilation debug="true" targetFramework="4.5"/>
  26. <httpRuntime targetFramework="4.5"/>
  27. <httpModules>
  28. <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web"/>
  29. </httpModules>
  30. <authentication>
  31. <forms name=".MyCookie" cookieless="UseCookies" loginUrl="/Login/login" protection="All" timeout="60"/>
  32. </authentication>
  33. </system.web>
  34. <runtime>
  35. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  36. <dependentAssembly>
  37. <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35"/>
  38. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0"/>
  39. </dependentAssembly>
  40. <dependentAssembly>
  41. <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35"/>
  42. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0"/>
  43. </dependentAssembly>
  44. <dependentAssembly>
  45. <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
  46. <bindingRedirect oldVersion="1.0.0.0-5.2.3.0" newVersion="5.2.3.0"/>
  47. </dependentAssembly>
  48. </assemblyBinding>
  49. </runtime>
  50. <system.codedom>
  51. <compilers>
  52. <compiler language="c#;cs;csharp" extension=".cs"
  53. type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
  54. warningLevel="4" compilerOptions="/langversion:6 /nowarn:1659;1699;1701"/>
  55. <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb"
  56. type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
  57. warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+"/>
  58. </compilers>
  59. </system.codedom>
  60. <system.webServer>
  61. <!--cors 支持跨域 clq新增 strat-->
  62. <httpProtocol>
  63. <customHeaders>
  64. <add name="Access-Control-Allow-Origin" value="*" />
  65. <add name="Access-Control-Allow-Headers" value="Content-Type" />
  66. <add name="Access-Control-Allow-Methods" value="GET, POST, PUT, DELETE, OPTIONS" />
  67. </customHeaders>
  68. </httpProtocol>
  69. <!--cors 支持跨域 end-->
  70. <validation validateIntegratedModeConfiguration="false"/>
  71. <modules>
  72. <remove name="ApplicationInsightsWebTracking"/>
  73. <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web"
  74. preCondition="managedHandler"/>
  75. </modules>
  76. </system.webServer>
  77. </configuration>