using System; using System.Configuration; using System.IO; using System.Web; namespace SingingEels Web.config <?xml version="1.0"?> <configuration> <configSections> <section name="WebSiteErrorLogger" type="SingingEels.ErrorLoggerSection"/> </configSections> <WebSiteErrorLogger logFilePath="~/Log/"/> <system.web> <compilation debug="true"/> </system.web> <system.web> <customErrors mode="RemoteOnly" defaultRedirect="~/Error.htm"></customErrors> </system.web> </configuration> Global.asax <%@ Application Language="C#" %> <script runat="server"> void Application_Start(object sender, EventArgs e) 源代码 相关文章: