1

当我不是在调试模式下运行我的网站时,而是在发布之后在页面上使用更新面板在我得到的每个更新上运行:

Uncaught Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: Script entries not loaded yet. 

我找到了解决方案设置EnablePartialRendering="false"os ToolkitScriptManager,但是 UpdatePanel 无法正常工作,因为 UpdatePanel 并且整个页面都在刷新。

这是我在master中加载东西的方式:

<head runat="server">
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />

    <link rel="stylesheet" href="Content/themes/base/minified/jquery-ui.min.css" />

    <script src="/Scripts/jquery-2.0.3.min.js" type="text/javascript"></script>
    <script src="/Scripts/jquery-ui-1.10.2.min.js" type="text/javascript"></script>

    <asp:PlaceHolder runat="server">
        <%: Scripts.Render("~/bundles/modernizr") %>
        <script src="/Scripts/jquery.signalR-2.0.0.min.js" type="text/javascript"></script>
        <script src='<%: ResolveClientUrl("~/signalr/hubs") %>'></script>
    </asp:PlaceHolder>

    <webopt:BundleReference runat="server" Path="~/Content/css" />
    <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />

    <asp:ContentPlaceHolder ID="HeadHolder" runat="server">
    </asp:ContentPlaceHolder>

</head>
<body>
    <form runat="server">
        <ajaxToolkit:ToolkitScriptManager runat="server"
            ScriptMode="Auto"
            EnablePageMethods="true"
            EnablePartialRendering="true"
            LoadScriptsBeforeUI="true"
            AjaxFrameworkMode="Enabled"
            RoleService-LoadRoles="false"
            EnableCdn="false"
            EnableScriptGlobalization="false">
            <Scripts>
                <asp:ScriptReference Name="bootstrap" />
                <asp:ScriptReference Name="respond" />

                <asp:ScriptReference Name="WebForms.js" Path="~/Scripts/WebForms/WebForms.js" />
                <asp:ScriptReference Name="WebUIValidation.js" Path="~/Scripts/WebForms/WebUIValidation.js" />
                <asp:ScriptReference Name="MenuStandards.js" Path="~/Scripts/WebForms/MenuStandards.js" />
                <asp:ScriptReference Name="GridView.js" Path="~/Scripts/WebForms/GridView.js" />
                <asp:ScriptReference Name="DetailsView.js" Path="~/Scripts/WebForms/DetailsView.js" />
                <asp:ScriptReference Name="TreeView.js" Path="~/Scripts/WebForms/TreeView.js" />
                <asp:ScriptReference Name="WebParts.js" Path="~/Scripts/WebForms/WebParts.js" />
                <asp:ScriptReference Name="Focus.js" Path="~/Scripts/WebForms/Focus.js" />
                <asp:ScriptReference Name="WebFormsBundle" />
            </Scripts>
        </ajaxToolkit:ToolkitScriptManager>

难道我做错了什么?我该如何解决这个问题?

true而且...如果我将 .NET 编译调试标志设置为... ,一切都会很好。

4

2 回答 2

0

关于正在进行的问题的有用链接 http://ajaxcontroltoolkit.codeplex.com/workitem/27517

于 2014-04-18T11:34:47.127 回答
0

我知道它的旧线程,但对于任何面临这个问题的人。我不知道为什么,但对我来说,唯一的解决方法是为ToolkitScriptManager设置CombineScripts="False",试一试

于 2014-12-28T17:12:51.403 回答