I know this is probably something stupid-simple, but I recently added a folder to my Models project and placed all of my models in there. Once I did that, I get an error saying “the type or namespace ‘filler’ cannot be found in CapWorx.QuikCap.Models”. As expected, because I moved ‘filler’ to a new location. I placed ‘filler’ in CapWorx.QuikCap.Models.Data. Here’s the error:

I get the error when I click the filler item on my page and the page is supposed to go to the Edit form for that item: here’s what my Edit method looks like in my controller. Keep in mind though that I never get any errors in the code when stepping through it. In fact, if I hover over “filler”, it will show me all of the properties, which is what’s supposed to be shown on the NEXT screen (Edit), but I get the error.
public ActionResult Edit(int id, int cappk)
{
filler filler = db.fillers.Find(id);
if (filler == null)
{
return HttpNotFound();
}
ViewBag.capsule_fk = new SelectList(db.capsules, "pk", "name", filler.capsule_fk);
return View(filler);
}
I’ve already updated my using statements to using CapWorx.QuikCap.Models.Data, from using CapWorx.QuikCap.Models.
Is there some sort of caching going on that’s retaining the old location? Here’s a screen-shot of my CapWorx.QuikCap.Models project, below. ‘filler’ is defined in DataModel.edmx:

The solution to this problem is the Edit view for my filler object (which is what the app was trying to go to before it threw this error) declared an incorrect reference to my filler object at the top of the page. Before, this is what the top of my page looked like:
Then, I changed it to:
And then, it worked. This was something that could have easily been overlooked by most people because I wasn’t getting any compile time errors, even though I had red squigglies on this page. Thanks for all of the suggestions.