Asp.net MVC 出现“Failed to map the path '/'.”错误

Server Error in '/' Application.

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. 

Parser Error Message: Could not load type 'yl.MvcApplication'.

Source Error: 


Line 1:  <%@ Application Codebehind="Global.asax.cs" Inherits="yl.MvcApplication" Language="C#" %>

Source File: /global.asax    Line: 1 

解决方式:

重新启动服务器 重新启动IIS网站 都无效。

找到网站对应的进程池,回收进程池。

原文地址:https://www.cnblogs.com/nidongde/p/5366476.html