首页 > 技术文章 > Asp.net MVC 出现“Failed to map the path '/'.”错误

nidongde 2016-04-08 08:41 原文

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网站 都无效。

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

推荐阅读