日期:2014-05-17 浏览次数:20438 次
<?xml version="1.0" encoding="UTF-8"?> <configuration> <appSettings /> <connectionStrings> <!--数据库连接字符串--> </connectionStrings> <system.web> <compilation targetFramework="4.0"> <assemblies> <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" /> <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /></assemblies></compilation> <!-- 通过 <authentication> 节可以配置 安全身份验证模式,ASP.NET 使用该模式来识别来访用户身份。 --> <customErrors mode="None"/> <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm"> <error statusCode="403" redirect="Error.aspx?type=403" /> <error statusCode="404" redirect="Error.aspx?type=404" /> <error statusCode="500" redirect="Error.aspx?type=500" /> </customErrors> </system.web> <system.web> <siteMap defaultProvider="XmlSiteMapProvider" enabled="true"> <providers> <add name="XmlSiteMapProvider" description="SiteMap provider which reads in .sitemap XML files." type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" siteMapFile="web.sitemap" /> </providers> </siteMap> </system.web> </configuration>