Web.config 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. 有关如何配置 ASP.NET 应用程序的详细信息,请访问
  4. http://go.microsoft.com/fwlink/?LinkId=301880
  5. -->
  6. <configuration>
  7. <configSections>
  8. <section name="userPrivilegeProvider" type="Befri.Web.Mvc.UserPrivilegeProviderSection,Befri.Web.Mvc" />
  9. <section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="true" />
  10. <section name="exceptionHandling" type="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Configuration.ExceptionHandlingSettings, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling" />
  11. </configSections>
  12. <userPrivilegeProvider defaultProvider="sqlProvider" enabled="true" actionNames="增加,修改,删除,打印,导出,审核,反审核" splitChar=",">
  13. <providers>
  14. <add name="sqlProvider" type="Befri.Web.Mvc.Security.SqlUserPrivilegeProvider, Befri.Web.Mvc" defaultDatabase="localhost" userModPrivilegesProcName="[Admin].[p_GetUserPrivilegesByLoginName]"></add>
  15. </providers>
  16. </userPrivilegeProvider>
  17. <dataConfiguration defaultDatabase="Test_Goldhoo" />
  18. <connectionStrings>
  19. <add name="befri_Goldhoo" connectionString="data source=106.15.35.130;packet size=4096;user id=sa;Password=jinhu2016!;persist security info=False;initial catalog=befri_Goldhoo;" providerName="System.Data.SqlClient" />
  20. <add name="Test_Goldhoo" connectionString="data source=171.220.242.38;packet size=4096;user id=sa;Password=5tgb*UHB;persist security info=False;initial catalog=befri_Goldhoo;" providerName="System.Data.SqlClient" />
  21. <add name="localhost" connectionString="data source=localhost;packet size=4096;user id=sa;Password=123456;persist security info=False;initial catalog=befri_Goldhoo;" providerName="System.Data.SqlClient" />
  22. </connectionStrings>
  23. <exceptionHandling>
  24. <exceptionPolicies>
  25. <add name="defaultPolicy">
  26. <exceptionTypes>
  27. <!--<add type="Artech.VM.Models.InvalidUserNameException, Artech.VM" postHandlingAction="ThrowNewException" name="InvalidUserNameException">
  28. <exceptionHandlers>
  29. <add name="ErrorMessageHandler" type="Artech.Mvc.Extensions.ErrorMessageHandler, Artech.Mvc.Extensions" errorMessage="用户名不存在" />
  30. </exceptionHandlers>
  31. </add>
  32. <add type="Artech.VM.Models.InvalidPasswordException, Artech.VM" postHandlingAction="ThrowNewException" name="InvalidPasswordException">
  33. <exceptionHandlers>
  34. <add name="ErrorMessageHandler" type="Artech.Mvc.Extensions.ErrorMessageHandler, Artech.Mvc.Exten
  35. sions" errorMessage="密码与用户名不匹配" />
  36. </exceptionHandlers>
  37. </add>
  38. <add type="Artech.VM.Models.OutOfStockException, Artech.VM" postHandlingAction="ThrowNewException" name="OutOfStockException">
  39. <exceptionHandlers>
  40. <add name="ErrorMessageHandler" type="Artech.Mvc.Extensions.ErrorMessageHandler, Artech.Mvc.Extensions" errorMessage="库存不足!" />
  41. </exceptionHandlers>
  42. </add>-->
  43. </exceptionTypes>
  44. </add>
  45. </exceptionPolicies>
  46. </exceptionHandling>
  47. <appSettings>
  48. <add key="WebApi:ResourceUrl" value="http://localhost:12965" />
  49. <!--<add key="webapi:resourceurl" value="http://39.106.194.30:8080/goldhoowebapi" />-->
  50. <add key="WebApi:BackstageUrl" value="http://localhost:2693" />
  51. <add key="WebApi:ShoppingUrl" value="http://106.15.35.130:8089/Mobile(2021)" />
  52. <add key="WebApi:MobileUrl" value="http://localhost:2734" />
  53. <add key="webapi:u8url" value="http://182.138.106.120:8083/U8WebApi/api/" />
  54. <add key="webpages:Version" value="3.0.0.0" />
  55. <add key="webpages:Enabled" value="false" />
  56. <add key="ClientValidationEnabled" value="true" />
  57. <add key="UnobtrusiveJavaScriptEnabled" value="true" />
  58. </appSettings>
  59. <system.web>
  60. <authentication mode="Forms">
  61. <forms loginUrl="~/Account/Login" timeout="144000" />
  62. </authentication>
  63. <compilation debug="true" targetFramework="4.5" />
  64. <httpRuntime targetFramework="4.5" />
  65. </system.web>
  66. <system.webServer>
  67. <security>
  68. <requestFiltering>
  69. <requestLimits maxAllowedContentLength="1073741824" />
  70. </requestFiltering>
  71. </security>
  72. <modules>
  73. <remove name="FormsAuthenticationModule" />
  74. </modules>
  75. </system.webServer>
  76. <runtime>
  77. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  78. <dependentAssembly>
  79. <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
  80. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  81. </dependentAssembly>
  82. <dependentAssembly>
  83. <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
  84. <bindingRedirect oldVersion="0.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
  85. </dependentAssembly>
  86. <dependentAssembly>
  87. <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
  88. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  89. </dependentAssembly>
  90. <dependentAssembly>
  91. <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
  92. <bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
  93. </dependentAssembly>
  94. <dependentAssembly>
  95. <assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" />
  96. <bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
  97. </dependentAssembly>
  98. <dependentAssembly>
  99. <assemblyIdentity name="log4net" publicKeyToken="669e0ddf0bb1aa2a" culture="neutral" />
  100. <bindingRedirect oldVersion="0.0.0.0-2.0.12.0" newVersion="2.0.12.0" />
  101. </dependentAssembly>
  102. </assemblyBinding>
  103. </runtime>
  104. </configuration>