Sys.WebForms.PageRequestManager是IE11未定义的错误,在IE10及以下工作正常 [英] Sys.WebForms.PageRequestManager is undefined error in IE11, working fine in IE10 and below

查看:1014
本文介绍了Sys.WebForms.PageRequestManager是IE11未定义的错误,在IE10及以下工作正常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的客户都更新了他们的IE10浏览器IE11。
我收到以下错误的页面刷新
Sys.WebForms.PageRequestManager是不确定的。

My clients have updated their browser to IE11 from IE10. I am getting below error on page refresh Sys.WebForms.PageRequestManager is undefined.

请检查我的code

<asp:ScriptManager ID="scmMain" EnableCdn="false" runat="server" AsyncPostBackTimeout="0"
    ScriptMode="Release">
   </asp:ScriptManager>

<script type="text/javascript">
    Sys.Application.add_init(function () {
        Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(ieAjaxPageLoaded);
        Sys.WebForms.PageRequestManager.getInstance().add_pageLoaded(ieAjaxPageLoaded);
        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(ieAjaxEndRequest);
        Sys.Application.add_load(NeoSpin_PageLoad);
    });

    function header_onclick() {
    }
    function End(sender, args) { }
</script>

这工作正常的IE10及以下

This works fine on IE10 and below

我已经尝试下面的链接 - 但没有任何帮助 -

I have already tried below links - but no help -

<一个href=\"http://stackoverflow.com/questions/7062286/sys-webforms-pagerequestmanager-is-null-or-not-an-object\">'Sys.WebForms.PageRequestManager'为空或不是对象

<一个href=\"http://stackoverflow.com/questions/1931701/microsoft-jscript-runtime-error-sys-is-undefined\">Microsoft JScript运行时错误:'SYS'是不确定的

http://encosia.com/updated-your -webconfig,但是-SYS-IS-仍然不确定/

<一个href=\"http://www.$c$cproject.com/Questions/543002/Unableplustoplusgetpluspropertyplus-27PageRequestM\" rel=\"nofollow\">http://www.$c$cproject.com/Questions/543002/Unableplustoplusgetpluspropertyplus-27PageRequestM

谢谢
法赫德Mullaji

Thanks Fahad Mullaji

推荐答案

问题是与IE 11发的userAgent字符串,其中点网4.0框架或下方不承认与Internet Explorer。
你可以通过你的服务器升级到斑点网4.5或任何解决这个问题
您可以添加在Web应用程序的文件夹内App_Browsers文件具有以下条目添加一个ie.Browser文件

The problem is with the userAgent string sent by IE 11 where Dot Net 4.0 frameworks or below do not recognize as Internet Explorer. You can fix this problem either by upgrading your server to Dot Net 4.5 or you can add add an ie.Browser file in your web application within the folder App_Browsers with the following entry

<browser id="InternetExplorer" parentID="Mozilla">
    <identification>
        <userAgent match="Trident/(?'layoutVersion'[7-9]|0*[1-9]\d+)(\.\d+)?;(.*;)?\s*rv:(?'version'(?'major'\d+)(\.(?'minor'\d+)))" />
        <userAgent nonMatch="IEMobile" />
        <userAgent nonMatch="MSIE " />
    </identification>

    <capabilities>
        <capability name="browser"              value="InternetExplorer" />
        <capability name="version"              value="${version}" />
        <capability name="majorversion"         value="${major}" />
        <capability name="minorversion"         value="${minor}" />
        <capability name="layoutEngine"         value="Trident" />
        <capability name="layoutEngineVersion"  value="${layoutVersion}" />
        <capability name="type"                 value="InternetExplorer${major}" />
    </capabilities>
</browser>

这篇关于Sys.WebForms.PageRequestManager是IE11未定义的错误,在IE10及以下工作正常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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