Web.config
上传用户:cha0314
上传日期:2014-03-02
资源大小:12522k
文件大小:1k
源码类别:

C#编程

开发平台:

C#

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <configuration>
  3. <appSettings>
  4. <add key="ConnectionString" value="server=(local);database=UDS;User Id=sa;pwd=sasasa;"/>
  5. <!-- <add key="ConnectionString" value="server=xm2003;database=uds_dongzhou_net2.0;User Id=sa;pwd=;"/>-->
  6. <add key="IndexConnectionString" value="Provider=MSIDXS; Data Source=UDS;"/>
  7. </appSettings>
  8. <system.web>
  9. <compilation defaultLanguage="c#" debug="true">
  10. <assemblies>
  11. </assemblies>
  12. </compilation>
  13. <customErrors defaultRedirect="Error.aspx" mode="Off"/>
  14. <authentication mode="Forms">
  15. <forms name="UDSAuth" loginUrl="SubModule/Login/index.aspx" protection="None" timeout="216000" path="/"/>
  16. </authentication>
  17. <globalization requestEncoding="gb2312" responseEncoding="gb2312" fileEncoding="gb2312" culture="zh-cn"/>
  18. <httpRuntime maxRequestLength="102400" useFullyQualifiedRedirectUrl="true" executionTimeout="300"/>
  19. </system.web>
  20. <!-- set secure paths -->
  21. <location path="Inc">
  22. <system.web>
  23. <authorization>
  24. <deny users="?"/>
  25. </authorization>
  26. </system.web>
  27. </location>
  28. <location path="SubModule">
  29. <system.web>
  30. <authorization>
  31. <deny users="?"/>
  32. </authorization>
  33. </system.web>
  34. </location>
  35. </configuration>