仅当编译 debug=“false”时,_events 为 null 或不是对象错误

发布于 2024-09-26 09:19:50 字数 668 浏览 2 评论 0原文

我在开发环境上创建和使用一个页面已经有一段时间了,它是一个面向搜索的页面,大量使用 ASP.NET AJAX 控件。我最近尝试将其转移到生产中,但是,每当我在 Web.Config 文件中设置值时:

<compilation debug="false">

单击页面上的任何内容都会导致 UpdatePanel 更新或 AJAX 回发,从而引发 JavaScript 错误:

Message: '_events' is null or not an object
Line: 5
Char: 36005

然而,一旦我

<compilation debug="true">

再次设置:一切都会再次完美。

有没有人有任何关于我可能在代码中检查哪些内容会导致此错误的提示,以及为什么编译参数中的 debug="false" 设置会导致此错误?

设置 debug="false" 不太可能是此错误的直接原因,但也许如果我获得有关 debug="false" 可能会执行不同操作的一些详细信息,我可能会更好地知道在 ASP.Net/ 内部查看何处AJAX 代码修复该问题。

编辑:我在 IE 和 Firefox 中都尝试过,结果相同。

谢谢!

I have been creating and using a page on the development environment for awhile, it is a search oriented page that is heavy on the ASP.NET AJAX controls. I've recently tried to move this to production, however, whenever I set the value in the Web.Config file:

<compilation debug="false">

Clicking on anything on the page which would result in an UpdatePanel update or an AJAX postback causes a JavaScript error to be thrown:

Message: '_events' is null or not an object
Line: 5
Char: 36005

However, as soon as I set:

<compilation debug="true">

again, everything works perfectly again.

Does anyone have any tips as to what I might check in my code that would be causing this error, and why it is that the setting of this debug="false" in the compilation param causes this?

It is unlikely that setting debug="false" is the direct cause of this error, but maybe if I got some details about what debug="false" might be doing differently, I might know better where to look inside my ASP.Net/AJAX code to fix the problem.

Edit: I've tried this both in IE and in Firefox with the same results.

Thanks!

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

秋风の叶未落 2024-10-03 09:19:50

事实证明,这是 AjaxControlToolkit 中的一个错误,已在下一版本中得到解决。更新后,这些错误已得到解决。

This turned out to be a bug in the AjaxControlToolkit that was addressed in the next version. Upon updating, these errors were resolved.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文