我在默认网站下的IIS上运行了2个项目,项目A& B.他们有两种不同的物理路径。
当我尝试运行项目A时,我收到此错误:
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0234: The type or namespace name 'Helpers' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
Source Error:
Line 27: <pages>
Line 28: <namespaces>
Line 29: <add namespace="System.Web.Helpers" />
Line 30: <add namespace="System.Web.Mvc" />
Line 31: <add namespace="System.Web.Mvc.Ajax" />
Source File: c:\inetpub\wwwroot\B\EnrollmentPortal\Web.config Line: 29
项目A试图读取项目B的web.config。这怎么可能?我找不到从项目A到项目B的任何路径,也没有在IIS中设置指定web.config路径的设置。
我该如何解决这个问题?