123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- <?xml version="1.0" encoding="utf-8"?>
- <!--
- 有关如何配置 ASP.NET 应用程序的详细信息,请访问
- http://go.microsoft.com/fwlink/?LinkId=301880
- -->
- <configuration>
- <configSections>
- <section name="userPrivilegeProvider" type="Befri.Web.Mvc.UserPrivilegeProviderSection,Befri.Web.Mvc" />
- <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" />
- <section name="exceptionHandling" type="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Configuration.ExceptionHandlingSettings, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling" />
- </configSections>
- <userPrivilegeProvider defaultProvider="sqlProvider" enabled="true" actionNames="增加,修改,删除,打印,导出,审核,反审核" splitChar=",">
- <providers>
- <add name="sqlProvider" type="Befri.Web.Mvc.Security.SqlUserPrivilegeProvider, Befri.Web.Mvc" defaultDatabase="localhost" userModPrivilegesProcName="[Admin].[p_GetUserPrivilegesByLoginName]"></add>
- </providers>
- </userPrivilegeProvider>
- <dataConfiguration defaultDatabase="Test_Goldhoo" />
- <connectionStrings>
- <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" />
- <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" />
- <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" />
- </connectionStrings>
- <exceptionHandling>
- <exceptionPolicies>
- <add name="defaultPolicy">
- <exceptionTypes>
- <!--<add type="Artech.VM.Models.InvalidUserNameException, Artech.VM" postHandlingAction="ThrowNewException" name="InvalidUserNameException">
- <exceptionHandlers>
- <add name="ErrorMessageHandler" type="Artech.Mvc.Extensions.ErrorMessageHandler, Artech.Mvc.Extensions" errorMessage="用户名不存在" />
- </exceptionHandlers>
- </add>
- <add type="Artech.VM.Models.InvalidPasswordException, Artech.VM" postHandlingAction="ThrowNewException" name="InvalidPasswordException">
- <exceptionHandlers>
- <add name="ErrorMessageHandler" type="Artech.Mvc.Extensions.ErrorMessageHandler, Artech.Mvc.Exten
- sions" errorMessage="密码与用户名不匹配" />
- </exceptionHandlers>
- </add>
- <add type="Artech.VM.Models.OutOfStockException, Artech.VM" postHandlingAction="ThrowNewException" name="OutOfStockException">
- <exceptionHandlers>
- <add name="ErrorMessageHandler" type="Artech.Mvc.Extensions.ErrorMessageHandler, Artech.Mvc.Extensions" errorMessage="库存不足!" />
- </exceptionHandlers>
- </add>-->
- </exceptionTypes>
- </add>
- </exceptionPolicies>
- </exceptionHandling>
- <appSettings>
- <add key="WebApi:ResourceUrl" value="http://localhost:12965" />
- <!--<add key="webapi:resourceurl" value="http://39.106.194.30:8080/goldhoowebapi" />-->
- <add key="WebApi:BackstageUrl" value="http://localhost:2693" />
- <add key="WebApi:ShoppingUrl" value="http://106.15.35.130:8089/Mobile(2021)" />
- <add key="WebApi:MobileUrl" value="http://localhost:2734" />
- <add key="webapi:u8url" value="http://182.138.106.120:8083/U8WebApi/api/" />
- <add key="webpages:Version" value="3.0.0.0" />
- <add key="webpages:Enabled" value="false" />
- <add key="ClientValidationEnabled" value="true" />
- <add key="UnobtrusiveJavaScriptEnabled" value="true" />
- </appSettings>
- <system.web>
- <authentication mode="Forms">
- <forms loginUrl="~/Account/Login" timeout="144000" />
- </authentication>
- <compilation debug="true" targetFramework="4.5" />
- <httpRuntime targetFramework="4.5" />
- </system.web>
- <system.webServer>
- <security>
- <requestFiltering>
- <requestLimits maxAllowedContentLength="1073741824" />
- </requestFiltering>
- </security>
- <modules>
- <remove name="FormsAuthenticationModule" />
- </modules>
- </system.webServer>
- <runtime>
- <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
- <dependentAssembly>
- <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
- <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
- <bindingRedirect oldVersion="0.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
- <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
- <bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" />
- <bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="log4net" publicKeyToken="669e0ddf0bb1aa2a" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-2.0.12.0" newVersion="2.0.12.0" />
- </dependentAssembly>
- </assemblyBinding>
- </runtime>
- </configuration>
|