我有这个类:
using System;
using System.Web.Mvc;
using System.Data;
using BLL;
namespace LicenseManager.Controllers
{
public class ValidationController : BaseController
{
public ActionResult Default()
{
return View("Default");
}
[HttpPost]
public JsonResult ClearInstallation(FormCollection form)
{
var jr = new JsonResult();
try
{
var licMgr = new BLL.LicManager();
licMgr.ClearInstall(form["regKey"], form["checkKey"]);
}
catch (Exception exc)
{
jr = Json(new { success = "false", error = exc.Message });
}
return jr;
}
}
}
当我尝试重建或调试时,我收到以下错误:
The type of namespace name 'BLL' could not be found (are you missing a using directive or an assembly reference?)
。我可以看到它被引用了:
![enter image description here](https://istack.dev59.com/WDDiq.webp)
我已经尝试过:
- 清空解决方案 - 重新构建 - 清除引用并重新添加
我还能尝试什么?
更新:如果你遇到这个错误,请确保阅读输出。它对我有解决方案。