Ei kuvausta

Web.config 3.6KB

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