记录详细错误信息
2014-07-03 16:47
246 查看
utils.ToLog.WriteLog(AboutConfig.LogPath, "\r\n方法:" + System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName + "." + System.Reflection.MethodBase.GetCurrentMethod().Name + "[##本地##文件不存在]\r\n导致异常的应用程序或对象名称:" + ex.Source + "\r\n引发异常的方法:" + ex.TargetSite + "\r\n详细消息:" + ex.Message + "\r\n当前调用文件路径:" + filepath + "\r\n", 1);
相关文章推荐
- C#中错误日志记录方法,信息比较详细易定位
- Asp.Net 2.0 中错误处理的几种方法(发邮件及记录信息到系统事件中)
- 说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。
- 在绑定控件中查询一条记录的详细信息的实现方法
- 为什么调试时,有时能出现详细错误信息。而有时只是提示“运行时错误”,...
- 在处理向该请求提供服务所需的配置文件时出错。请检查下面的特定错误详细信息并适当地修改配置文件。
- 在系统启动时至少有一个服务器或驱动程序产生错误。详细信息请用事件查看器查看事件日志。
- 创建TFS团队项目日志记录和错误信息位置
- 关闭MOSS的友好提示 ,显示详细的错误信息ZZ
- 在SQL Server 2005中获得详细错误处理信息
- Tip - SharePoint - 显示详细的Debug错误信息
- 服务器上出现应用程序错误。此应用程序的当前自定义错误设置禁止远程查看应用程序错误的详细信息(出于安全原因)。
- 关于serv-u公网访问出现“打开ftp服务器上的文件夹时发生错误。请检查是否有权限访问该文件夹。详细信息:操作超时”的解决方法
- 在Windows 2008 IIS7中如何显示ASP的详细错误信息
- 在系统启动时至少有一个服务器或驱动程序产生错误。详细信息请用事件查看器查看事件日志。
- 在处理向该请求提供服务所需的配置文件时出错。请检查下面的特定错误详细信息并适当地修改配置文件。
- 关于serv-u公网访问出现“打开ftp服务器上的文件夹时发生错误。请检查是否有权限访问该文件夹。详细信息:操作超时”的解决方法
- 关于serv-u公网访问出现“打开ftp服务器上的文件夹时发生错误。请检查是否有权限访问该文件夹。详细信息:操作超时”的解决方法
- web Services “/”应用程序中的服务器错误。异常详细信息: System.IO.IOException: 磁盘空间不足。
- 让SharePoint站点输出详细错误信息