强制元数据在 ASP.Net 后更新

Force Metadata to update in ASP.Net

我不一定了解元数据,我已经对这个问题进行了一些研究,但事实证明毫无结果。

我有一个列表,在我操作 BusinessLogic 中的 class 之前一直有效(添加了一个字段,"guid",没有其他更改)。 aspx 页面没有直接 link 到我们的业务逻辑,并且(显然)通过元数据获取它需要的信息。我不知道我的措辞是否正确,所以我会添加代码。

Load()
{
    List<People> people = new List<People>();
    people = signup.GetStuff(zip, fname, lname, email) // where it's failing
}

错误信息是:

An exception of type 'System.IO.FileNotFoundException' occurred in signup.dll but was not handled in user code

Additional information: Could not load file or assembly 'DataLibrary.Manager.SignUp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

所以我单步执行了 Load()。我在 <People> 上按 F12,它没有显示我所做的更改(添加 public string Guid {get;set;})。有没有办法强制更新元数据?

尝试删除对您的 BLL 的引用,重新编译并重新添加它。这通常对我有用。 – @Hanlet Escaño

工作完美!谢谢!如果您碰巧遇到这个问题,请写下答案,我会很乐意接受!非常感谢!