程序集发出错误

时间:2016-02-23 10:16:37

标签: c# asp.net .net visual-studio

我收到了这样的错误

  

错误112类型或命名空间名称' Repatriation_BO'不可能   发现(您是否缺少using指令或程序集引用?)

这是什么解决方案?

using System; 
using System.Collections; 
using System.Data; 
using System.ComponentModel; 
using System.Data.SqlClient; 
using System.Web.UI.WebControls; 
using BusinessObject.BusinessObject;
using BusinessLayer.BusinessLayer; 
using System.Text; using System.Reflection; 
using Excel = Microsoft.Office.Interop.Excel; 
using System.Configuration; 
using System.Web; 
using System.Web.UI; 
using System.Web.UI.HtmlControls; 
using ParameterPasser; using System.Diagnostics; 
using System.Runtime.InteropServices; 
using System.Web.Security; 
using System.Web.UI.WebControls.WebParts; 
using System.DirectoryServices; 
using System.Net.Mail; 
using System.Drawing; 
using System.Globalization; 
using System.Configuration;  

public partial class ISE_Repatriation : System.Web.UI.Page 
{

   GlobalFunctions gb = new GlobalFunctions();
   Common cs = new Common();    
   CommonBAL cbal = new CommonBAL();     
   public string Urlpage_name;     string lenght_Url;     
   Repatriation_BO repatbo = new Repatriation_BO();     
   Repatriation_BL repatbl = new Repatriation_BL();     
   ISE_Search_BL objISESearch = new ISE_Search_BL();     
   ISEHelper objISE = new ISEHelper();     
   SqlDataReader sdr;  

1 个答案:

答案 0 :(得分:0)

问题是编译器无法实例化对象Repatriation_BO,因为它不了解它,您需要做的是将此引用添加到项目中。 对于我看到的Repatriation_BO似乎是第三方组件或其他项目,请尝试在本地目录中查找类似的名称。

在这里,您可以在Visual Studio中添加引用:

How to: Add a project reference in VS