Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9284881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T19:00:37+00:00 2026-06-18T19:00:37+00:00

I know this is probably something stupid-simple, but I recently added a folder to

  • 0

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:

enter image description here

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:

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T19:00:38+00:00Added an answer on June 18, 2026 at 7:00 pm

    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:

    @model CapWorx.QuikCap.Models.filler
    
    @{
        ViewBag.Title = "Edit Existing Filler";
        Layout = "~/Views/Shared/_Layout.cshtml";
    }
    

    Then, I changed it to:

    @model CapWorx.QuikCap.Models.Data.filler
    
    @{
        ViewBag.Title = "Edit Existing Filler";
        Layout = "~/Views/Shared/_Layout.cshtml";
    }
    

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is something stupid I probably should know, but Googling fails me: When compiling
I know this is probably something simple but I can't seem to find anything
I know this is probably something simple, but I can't figure it out. When
This is probably something stupid, but I don't know nearly enough about rails &
I know this probably really simple but Im not sure what im doing wrong...
I know this is probably a very simple question but how would I do
I know this is probably something very basic but I can't, for the life
This is probably something really stupid that I'm doing wrong, but I can't figure
ok, I know this is probably going to be something really easy but I
this is probably something stupid, but i can't figure it out. I'm getting a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.