1

I do this lesson from: http://www.codeproject.com/Articles/1010152/Learn-MVC-Project-in-Days-Day I'am at the end lab 32. I did everything step by step but I have this error:

The type or namespace name 'BusinessEnties' (or ViewModel) could not be found (are you missing a using directive or an assembly reference?)

When I add any reference to WebApplication1 I see BusinessEnties or ViewModel and I have no errors but when I build this errors back.

UPDATED

My class tree:

enter image description here

And dependecy map

enter image description here

6
  • 1
    We can't help you without seeing what you're doing. How are you adding the reference? Are you sure the library contains the classes you seek? Commented Oct 3, 2016 at 15:52
  • Did you add a using statement to the top of the file(s) that make use of classes in this library? Commented Oct 3, 2016 at 16:02
  • @Amy I updated question Commented Oct 3, 2016 at 16:21
  • @ChrisPratt yes, but are invisible Commented Oct 3, 2016 at 16:21
  • 1
    This typically happens to me when the .Net versions don't match. Check the type of the MVC project and Class Library. Commented Oct 3, 2016 at 16:22

2 Answers 2

3

Check your projects .Net versions. If the MVC Project has a lesser version then the class Library it most likely won't work.

Sign up to request clarification or add additional context in comments.

1 Comment

Found this to be the case for me. Had to upgrade the versions to match
0

Make sure the classes are Public

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.