gpt4 book ai didi

c# - "public class MvcApplication : System.Web.HttpApplication"行处出现编译错误 MVC4

转载 作者:行者123 更新时间:2023-11-30 17:32:22 24 4
gpt4 key购买 nike

在下面的代码中,它给了我“public class MvcApplication : System.Web.HttpApplication”行的编译错误

请帮我解决这个问题。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Routing;

namespace Simple_Calendar
{
// Note: For instructions on enabling IIS6 or IIS7 classic mode,
// visit http://go.microsoft.com/?LinkId=9394801
public class MvcApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();

WebApiConfig.Register(GlobalConfiguration.Configuration);
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
RouteConfig.RegisterRoutes(RouteTable.Routes);
}
}
}

最佳答案

我认为 System.Web.HttpApplication dll 已损坏,只需在引用中添加 dll

关于c# - "public class MvcApplication : System.Web.HttpApplication"行处出现编译错误 MVC4,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24226635/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com