SparkViewEngine 在渲染视图时自发出现 NullReferenceException

发布于 2024-09-09 05:26:39 字数 842 浏览 1 评论 0原文

我们正在为 www.stribe.nl 使用 SparkViewEngine 的最新稳定版本。 渲染主页时有时会出现问题。 当您查看主页时,它通常会完美呈现,但我注意到访问主页的人的事件日志中存在一些异常。

异常消息是“执行处理程序‘System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerAsyncWrapper’的子请求时出错”,这意味着在控制器上执行 ChildAction 时发生异常。

因此,我在 VS2010 调试模式下运行该站点,并启动了一个压力测试工具,该工具每 10 秒请求几次主页。 运行几个 10 秒的周期后,它会侵入我的代码(参见屏幕截图)。

输出(即 SparkView 输出缓冲区)为空。 当我在异常后继续运行代码时,它将给出有关子请求失败的异常,然后它将其余部分渲染得很好(下一个请求整个页面再次渲染而不会出现问题)

这种情况一遍又一遍地发生,但是它发生的时间似乎是随机的,与代码中发生的位置似乎是随机的相同。 我不知道这里出了什么问题(这是“有时会发生”的错误之一),也没有办法比我现在更进一步地分析它。

有没有有 SparkView 经验的人也可能遇到这个问题或者有任何线索知道可能是什么问题? 或者有人对我如何更好地分析这个问题有想法吗?

替代文本 http://www.stribe.nl/sparkerror_null.png

We are using the latest stable release of SparkViewEngine for www.stribe.nl.
There is a problem that occurs -sometimes- while rendering the homepage.
When you look at the homepage it will usually render perfectly fine, but i noticed some exceptions in the EventLog from people visiting the homepage.

The exception message is "Error executing child request for handler 'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerAsyncWrapper'" which means an exception occured while executing a ChildAction on the controller.

So i ran the site in VS2010 debug mode and started a stresstest tool that requests the homepage a few times per 10 seconds.
After running it for a few cycles of 10 seconds it breaks into my code (see screenshot).

Output (which is the sparkview output buffer) is null.
When i continue running the code after the exception it will give the exception about child request failing and then it renders the rest fine (and next request the whole page just renders without problems again)

This happens over and over again, but the times on which it happens seem random, same as the location in code where it happens seems random.
I have no idea what is going wrong here (it's one of those "it happens sometimes" bugs) and also no way of analysing it further than i did now.

Is there anyone with SparkView experience that maybe got this problem too or has any clue on to what may be the problem?
Or anyone with ideas on how i can analyse this issue better?

alt text http://www.stribe.nl/sparkerror_null.png

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文