【问题标题】:Error: ASP.NET Ajax client-side framework failed to load after some updates on host错误:在主机上进行一些更新后,ASP.NET Ajax 客户端框架无法加载
【发布时间】:2020-04-13 17:41:04
【问题描述】:

我在 windows 主机中有一个网站 = https://blobloblo/WebForm5.aspx
在 FireFox 开发人员上运行该链接并查看控制台日志时, 我会看到这个错误:

错误:ASP.NET Ajax 客户端框架失败

由于此错误,本网站的许多部分无法正常工作。
昨天一切正常。
但是今天他们关闭了主机几个小时并进行了一些更新,例如 plesk 的更新。
再次运行主机后出现此错误。
我应该告诉他们什么来解决这个问题?



WebForm5 ASPX:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm5.aspx.cs" Inherits="Virtual_Visa_Cards.WebForm5" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <asp:Button ID="Button1" runat="server" Text="Button" Height="26px" OnClick="Button1_Click" />&nbsp;&nbsp;&nbsp;<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
    </form>
</body>
</html>

WebForm5 C#:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Virtual_Visa_Cards
{
    public partial class WebForm5 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            Label1.Text = "This is Ajax Call = CallBack";
        }
    }
}


相关话题:
ASP.NET Ajax client-side framework failed to load. when put the ScriptManager on a blank page
我在没有结果的情况下测试了上面主题中的所有答案。

【问题讨论】:

    标签: c# asp.net host .net-4.7.1


    【解决方案1】:

    在 plesk 中,我去了 Web Application Firewall 并将 Web 应用程序防火墙模式设置为 关闭

    我工作了一天来解决这个问题。

    【讨论】:

      猜你喜欢
      • 2011-04-11
      • 2011-04-20
      • 2023-03-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多