将 MVC 项目添加为另一个引用时出错

Error adding MVC project as a reference in another

我有一个非常大的项目,控制器很少,我想把它分成 2 个项目,并在项目 1 中添加项目 2 作为参考。

我已经复制了项目并清除了所有不需要的控制器、js、cshtml exc。
我在第一个项目中所做的相同,删除了新项目中的控制器。 然后我在第一个项目中添加了新项目 dll 作为参考。

但现在 运行 主项目 (project_1) 时出现错误:

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: The type 'XXX.MvcApplication' is ambiguous: 
it could come from assembly 'project2\xxx\bin\project2.DLL' or from assembly 'project1\bin\project1.DLL'. Please specify the assembly explicitly in the type name.

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

我现在要做什么???

感谢https://whosebug.com/users/243245/rup

问题是在这两个项目中我都有 Global.asax.cs 文件。 从引用的项目中删除文件时,它是 运行!!!