自最新的Firefox更新以来,我们在网站上获得了Sys.Webforms未定义的错误。
Asp.net,.Net 3.5,Aspx页面包含ascx控件,其中javascripts附加在带有ScriptManager.RegisterStartupScript的ascx OnPreRender中。
Sys已定义,但Sys.Webforms在Sys.Application.add_load和$(document).ready中仍未定义。
看起来,但不是100%肯定,这只发生在https上。
没有其他浏览器重现此错误。
在附加脚本的这一部分中发生错误:
Sys.Application.add_init(AppInit); function AppInit(sender) { Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(that.onBeginRequest); }任何想法都会有帮助。
Since the latest Firefox update, we are getting a Sys.Webforms is undefined error on a website.
Asp.net, .Net 3.5, Aspx page containing ascx controls with javascripts attached in the ascx OnPreRender with ScriptManager.RegisterStartupScript.
Sys is defined but Sys.Webforms remains undefined also in the Sys.Application.add_load and $(document).ready.
It looks like, but not 100% sure, that this happens only over https.
No other browser reproduces this error.
The error happens in this part of the attached script:
Sys.Application.add_init(AppInit); function AppInit(sender) { Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(that.onBeginRequest); }Any idea would help.
最满意答案
事实证明,51degrees.mobi高级设备数据文件是罪魁祸首。 删除文件,从而不从中加载定义,解决了这个问题。 看起来我们的版本没有很好地处理firefox 14.0.1用户代理字符串。
As it turns out, 51degrees.mobi premium device data file was the culprit. Deleting the file, thus not loading definitions from it, solves this problem. It looks like our version is not handling firefox 14.0.1 user agent string well.
更多推荐
发布评论