在启用了“Break on Exceptions”的visual studio中,我看到引发了以下异常(Object reference为null) - 请参阅下面的调用堆栈。
这在我的控制器方法被击中之前发生。任何想法为什么会发生这种情况?
我使用的是Asp.net mvc3和版本0.87.0.0的glimpse.mvc3。
Glimpse.Core.DLL!Glimpse.Core.Extensions.HttpContextBaseExtensions.GetGlimpseRequestId(System.Web.HttpContextBase context = {System.Web.HttpContextWrapper})+ 0x55 bytes
Glimpse.Core.DLL!Glimpse.Core.Module.BeginRequest(System.Web.HttpContextBase context = {System.Web.HttpContextWrapper})+ 0xad bytes
Glimpse.Core.DLL!Glimpse.Core.Module.OnBeginRequest(object sender = {ASP.global_asax},System.EventArgs e = {System.EventArgs})+ 0x7e bytes
System.Web.dll!System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()+ 0x95 bytes
System.Web.dll!System.Web.HttpApplication.ExecuteStep(System.Web.HttpApplication.IExecutionStep step = {System.Web.HttpApplication.SyncEventExecutionStep},ref bool completedSynchronously = false)+ 0x4c bytes
System.Web.dll!System.Web.HttpApplication.PipelineStepManager.ResumeSteps(System.Exception error)+ 0x39f bytes System.Web.dll!System.Web.HttpApplication.BeginProcessRequestNotification(System.Web.HttpContext context,System.AsyncCallback cb)+ 0x5a bytes System.Web.dll!System.Web.HttpRuntime.ProcessRequestNotificationPrivate(System.Web.Hosting.IIS7WorkerRequest wr = {System.Web.Hosting.IIS7WorkerRequest},System.Web.HttpContext context = {System.Web.HttpContext})+ 0xbe字节
System.Web.dll!System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(System.IntPtr managedHttpContext,System.IntPtr nativeRequestContext = 543781828,System.IntPtr moduleData,int flags)+ 0x247 bytes System.Web.dll!System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(System.IntPtr managedHttpContext,System.IntPtr nativeRequestContext,System.IntPtr moduleData,int flags)+ 0x29 bytes
答案 0 :(得分:1)
是的,我在vs2011测试版的Intellitrace中也看到了它;我不担心它:o)我认为你可以通过转到http://localhost/glimpse.axd然后转过一瞥来阻止它。设置cookie并找到id。没有例外...
无论如何,这是我的猜测..
干杯, 0