protected void Application_Error(object sender, EventArgs e)

  路思永  18:17:42
string HostUrl = ConfigurationManager.AppSettings["AppPath"];
ILog log = LogManager.GetLogger(typeof(MvcApplication));
Exception objErr = Server.GetLastError().GetBaseException();
log.Error(objErr);
Server.ClearError();
Response.Redirect(string.Format("{0}/Home.mvc/ErrorInfo?sid={1}", HostUrl, Request["sid"

posted @ 2009-07-30 18:30  肚肚  阅读(257)  评论(0编辑  收藏  举报