我正在尝试向Reporting服务添加自定义HttpModule MyHttpModuler
。但是当我将自定义HttpModule部署到位于远程机器中的SSRS时。然后在报告管理网站中浏览一些报告。我的页面中出现了一些错误。我曾经检查过SSRS日志文件夹下的日志文件,看看发生了什么。我总是在其中找到一些异常信息。但异常日志不显示代码行号。
日志的例子如下所示。
library!ReportServer_0-1!728!08/22/2012-13:36:29:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details., ;
Info: Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at HandlerLib.MyHttpModuler.TryAuthenticate(HttpApplication context)
at HandlerLib.MyHttpModuler.Application_BeginRequest(Object sender, EventArgs e)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
有没有办法显示异常日志的代码行,以便我可以了解我的代码缺陷的更多细节?感谢