Нет описания

Web.config 3.8KB

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