鄂尔多斯-招源科技

Web.config 4.0KB

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