У меня есть приложение asp.net mvc4. У меня есть проблема в файле Global.asax
исправление синтаксической ошибки в global.asax
в Global.asax.cs
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 integration_finale
{
public class MvcApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();
WebApiConfig.Register(GlobalConfiguration.Configuration);
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
RouteConfig.RegisterRoutes(RouteTable.Routes);
}
}
}
, когда я запустить приложение я получил эту ошибку:
переведен на английский
Server Error in '/' Application. Analysis error Description: An error occurred during the analysis of a requirement to meet this demand resource. Please see below the details of the error analysis in question and modify your source file appropriately.
Message Parser Error: Could not load type 'integration_finale.MvcApplication'.
Source Error:
Line 1: <% @ Application Codebehind = "Global.asax.cs" Inherits = "integration_finale.MvcApplication" Language = "C#"%>
Source File:/global.asax Line: 1
Version Information: Microsoft NET Framework Version:. 4.0.30319; ASP.NET Version: 4.0.30319.18056
Так в чем же проблема и как я могу это исправить?
Вы пытались поставить точку останова в свой метод Application_Start()? – Liam
Да, но я не дошел до точки останова !!! –
Попробуйте очистить и перестроить все решение. – DGibbs