周口郸城医院 DanChengCallCenter_API

Web.config 4.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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_Dancheng;" />
  21. <add name="oracleconn" connectionString="Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.8.3)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=orcl)));User Id=zhangkun;Password=123456;Pooling=true;Min Pool Size=1;Max Pool Size=255;" />
  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. <dependentAssembly>
  48. <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
  49. <bindingRedirect oldVersion="0.0.0.0-11.0.0.0" newVersion="11.0.0.0" />
  50. </dependentAssembly>
  51. </assemblyBinding>
  52. </runtime>
  53. <system.codedom>
  54. <compilers>
  55. <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:6 /nowarn:1659;1699;1701" />
  56. <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" 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" preCondition="managedHandler" />
  73. </modules>
  74. </system.webServer>
  75. </configuration>