2010年1月20日

把错误信息写入系统日志

摘要: 在Global.asax 里,我想让程序一有异常就记录错误信息到Windos的事件查看器里.void Application_Error(object sender, EventArgs e) { Exception lastError = Server.GetLastError(); string errMessage = lastError.ToString(); string logName... 阅读全文
posted @ 2010-01-20 19:43 攀 阅读(361) 评论(1) 推荐(1)

http中错误代码含义

摘要: http错误代码含义: "100" : Continue "101" : witching Protocols "200" : OK "201" : Created "202" : Accepted "203" : Non-Authoritative Information "204" : No Content "205" : Reset Content "206" : Partial Conte... 阅读全文
posted @ 2010-01-20 19:16 攀 阅读(209) 评论(0) 推荐(0)

怎么解决?"/"应用程序中的服务器错误

摘要: 在做一个自定义错误页面时,配置web.config文件 <customErrors mode="On" defaultRedirect="Oooops.aspx"> <error statusCode="500" redirect="Oooops.aspx"></error> </customErrors>页面出错误信息如下:------------... 阅读全文
posted @ 2010-01-20 18:00 攀 阅读(1300) 评论(0) 推荐(0)