Web.config 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <?xml version="1.0"?>
  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. <configSections>
  8. <!--配置log4net节点-->
  9. <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/>
  10. <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
  11. <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/>
  12. <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
  13. </configSections>
  14. <entityFramework>
  15. <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework"/>
  16. <providers>
  17. <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer"/>
  18. </providers>
  19. </entityFramework>
  20. <log4net>
  21. <appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender">
  22. <!--定义文件存放位置-->
  23. <file value="C:\\Logs\\YZXYH2017\\"/>
  24. <appendToFile value="true"/>
  25. <lockingModel type="log4net.Appender.FileAppender+MinimalLock"/>
  26. <Encoding value="UTF-8"/>
  27. <rollingStyle value="Date"/>
  28. <datePattern value="yyyyMMdd'.txt'"/>
  29. <param name="maximumFileSize" value="500KB"/>
  30. <staticLogFileName value="false"/>
  31. <param name="MaxSizeRollBackups" value="100"/>
  32. <layout type="log4net.Layout.PatternLayout">
  33. <conversionPattern value="%date [%thread] %-5level %logger - %message%newline"/>
  34. </layout>
  35. </appender>
  36. <root>
  37. <level value="INFO"/>
  38. <!--文件形式记录日志-->
  39. <appender-ref ref="RollingLogFileAppender"/>
  40. </root>
  41. </log4net>
  42. <appSettings>
  43. <add key="AliMsgUrlCode" value="http://www.shvber.com:5081/AliyunMsg/Code"/>
  44. <add key="AliMsgUrlMsg" value="http://www.shvber.com:5081/AliyunMsg/Msg"/>
  45. <add key="UserInfoSession" value="YZXYHQWERREWQ"/>
  46. <add key="SysUserInfoSession" value="YZXYHQWERTTREWQ"/>
  47. <add key="SysUserInfoCookie" value="YZXYHQWERTYTREWQ"/>
  48. <add key="SysUserDefaultPwd" value="QQQqqq"/>
  49. <add key="WeChat.AppId" value="wx904caa77de2359ba"/>
  50. <add key="WeChat.AppSecret" value="70a3c3720627b2c97fb37dafd92515df"/>
  51. <add key="WeChat.RedirectUrl" value="http://www.shvber.com"/>
  52. <add key="UserDefaultPwd" value="QWEqwe"/>
  53. <add key="webpages:Version" value="3.0.0.0"/>
  54. <add key="webpages:Enabled" value="false"/>
  55. <add key="ClientValidationEnabled" value="true"/>
  56. <add key="UnobtrusiveJavaScriptEnabled" value="true"/>
  57. <add key="AssemblyName" value="YZXYH.Repository.dll"/>
  58. <add key="NameSpace" value="YZXYH.Repository.Models"/>
  59. </appSettings>
  60. <!--
  61. 有关 web.config 更改的说明,请参见 http://go.microsoft.com/fwlink/?LinkId=235367。
  62. 可在 <httpRuntime> 标记上设置以下特性。
  63. <system.Web>
  64. <httpRuntime targetFramework="4.8" />
  65. </system.Web>
  66. -->
  67. <system.web>
  68. <!--<compilation debug="true" targetFramework="4.5.2" />
  69. <httpRuntime targetFramework="4.5.2" />-->
  70. <compilation debug="true" targetFramework="4.8"/>
  71. <httpRuntime maxRequestLength="102400"/>
  72. <!--RemoteOnly-->
  73. <customErrors mode="On" defaultRedirect="/Error/E500">
  74. <error statusCode="404" redirect="/Error/E404"/>
  75. <error statusCode="500" redirect="/Error/E500"/>
  76. </customErrors>
  77. <globalization requestEncoding="UTF-8" responseEncoding="UTF-8" culture="zh-CN" fileEncoding="UTF-8"/>
  78. </system.web>
  79. <!--<system.webServer>
  80. <httpErrors errorMode="DetailedLocalOnly">
  81. <remove statusCode="404" />
  82. <error statusCode="404" path="/View/Error/404.html" responseMode="File" />
  83. <remove statusCode="500" />
  84. <error statusCode="500" path="/View/Error/500.html" responseMode="File" />
  85. </httpErrors>
  86. </system.webServer>-->
  87. <runtime>
  88. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  89. <dependentAssembly>
  90. <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35"/>
  91. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0"/>
  92. </dependentAssembly>
  93. <dependentAssembly>
  94. <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35"/>
  95. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0"/>
  96. </dependentAssembly>
  97. <dependentAssembly>
  98. <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
  99. <bindingRedirect oldVersion="1.0.0.0-5.2.3.0" newVersion="5.2.3.0"/>
  100. </dependentAssembly>
  101. <dependentAssembly>
  102. <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral"/>
  103. <bindingRedirect oldVersion="0.0.0.0-7.0.0.0" newVersion="7.0.0.0"/>
  104. </dependentAssembly>
  105. <dependentAssembly>
  106. <assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral"/>
  107. <bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0"/>
  108. </dependentAssembly>
  109. </assemblyBinding>
  110. </runtime>
  111. <system.codedom>
  112. <compilers>
  113. <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"/>
  114. <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+"/>
  115. </compilers>
  116. </system.codedom>
  117. <system.serviceModel>
  118. <bindings>
  119. <basicHttpBinding>
  120. <binding name="SmsWebservicesSoap">
  121. <security mode="Transport"/>
  122. </binding>
  123. <binding name="SmsWebservicesSoap1"/>
  124. <binding name="SmsWebservicesSoap2">
  125. <security mode="Transport"/>
  126. </binding>
  127. <binding name="SmsWebservicesSoap3"/>
  128. </basicHttpBinding>
  129. </bindings>
  130. <client>
  131. <endpoint address="https://www.shvber.com:8082/SmsWebservices.asmx" binding="basicHttpBinding" bindingConfiguration="SmsWebservicesSoap" contract="SmsService.SmsWebservicesSoap" name="SmsWebservicesSoap"/>
  132. </client>
  133. </system.serviceModel>
  134. </configuration>