什么是的错误执行的处理子请求的原因是什么? [英] What's the cause of Error executing child request for handler?

查看:129
本文介绍了什么是的错误执行的处理子请求的原因是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我打开相同的URL,我不能重现此错误,因为它很少发生。或者你有什么想法,以显示确切的错误,它是此问题的原因。

I cannot reproduce this error because it rarely happened when I open same URL. Or you have any idea to show exact error that is the cause of this problem.

执行的处理程序System.Web.Mvc.HttpHandlerUtil + ServerExecuteHttpHandlerWrapper'子请求时出错。

 at System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride)
   at System.Web.HttpServerUtility.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage)
   at System.Web.HttpServerUtility.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm)
   at System.Web.HttpServerUtilityWrapper.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm)
   at System.Web.Mvc.ViewPage.RenderView(ViewContext viewContext)
   at System.Web.Mvc.WebFormView.RenderViewPage(ViewContext context, ViewPage page)
   at System.Web.Mvc.WebFormView.RenderView(ViewContext viewContext, TextWriter writer, Object instance)
   at System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer)
   at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult)
   at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19()
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation)
   at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass1c.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b()
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation)
   at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass1c.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b()
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation)
   at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass1c.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b()
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult)
   at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName)

PS。我曾经有这个问题。但是,我的老错误不断显示错误这样,在扩展方法导致通过的ViewPage语法错误和其他错误导致由错误。

PS. I have ever got this problem. But my old bug constantly show error like this that cause by syntax error in ViewPage and another error cause by error in extension method.

推荐答案

那么有没有在你的问题中的信息是对我们说究竟的什么的错误是因为它看起来对我来说,这您在这里给堆栈跟踪实际上只有最外层的例外。我们需要看到的内部异常层次结构,以便能够更好地诊断

Well there's no way from the information in your question for us to say exactly what the error is as it looks to me like this stack trace you've given here is actually only the outermost exception. We'd need to see the inner exception hierarchy to be able to diagnose better.

不过...

这将是一个错误,而通过Asp.Net code中的任何视图渲染运行。这可能是坏的服务器端code(编译错误)或的NullReferenceException 运行时错误,例如直接在页面code,或发生该页面调用的组件(例如,照你这么说,的HtmlHelper )。

This is going to be an error whilst running through the Asp.Net code in whatever view is rendering. It could be bad server-side code (compiler error) or a run time error such as NullReferenceException occurring directly in the code of the page, or in a component that the page calls (such as, as you say, HtmlHelper).

在理论上你应该看到一个Asp.Net错误页面显示该线在ASPX是造成问题。

In theory you should be seeing an Asp.Net error page showing which line in the aspx is causing the problem.

我要附加调试器,并确保时抛出列在调试 - >例外对话框中打勾。然后再次点击同一页面,你应该看到错误发生的确切位置。

I would attach the debugger and ensure that the 'Thrown' column is ticked in the Debug->Exceptions dialog. Then hit the same page again and you should see the exact place where the error happens.

我AP preciate,在一段时间只发生一次的问题 - 所以我想那个页面内寻找code(事实上,供应其视图模型控制器),其中数据依赖一些变量(当前用户,一天中的时间甚至),然后看它是否能为空或什么的。

I appreciate that the problem occurs only once in a while - therefore I'd be looking at code within that page (And indeed the controller that serves its View Model) where the data is dependent on some variable (current user, time of day even) and then see if it could be null or whatever.

这篇关于什么是的错误执行的处理子请求的原因是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆