导入 Visual Basic ASP.NET 项目中的错误



我目前正在为一个项目设置一个本地环境,我只得到了源代码。设置 IIS7 和其中的站点后,当我在浏览器中访问localhost时出现以下错误:

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: BC30002: Type XXXLibrary.XXX_ObjectManager' is not defined.
Source Error:

Line 5:      Inherits System.Web.UI.MasterPage
Line 6:  
Line 7:      Dim xxxManager As XXXLibrary.XXX_ObjectManager
Line 8:  
Line 9:      Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

在寻找类似于名称结构XXXLibrary.XXX_ObjectManager,我找到了一个名为XXXLibrary的单独项目(存储库(,其结构如下:

XXXLibrary/ObjectManager/XXX_ObjectManagerMain.vb

那里还有其他.vb文件,但XXX_ObjectManagerMain.vb包含以下类Partial Public Class XXX_ObjectManager,我相信这是我的原始项目正在搜索的文件。

我的问题是我如何修复这个imports语句?我在VB和Windows技术方面的经验非常有限,所以我觉得自己有点像一只盲人小猫,试图找到解决基本问题的方法。

任何帮助,不胜感激。

添加对其他项目的引用。

1( 在解决方案资源管理器中右键单击现有项目

2( 转到添加>参考

3(选中您的XXXLibrary项目旁边的框

最新更新