MVC Error

I am getting the following error when I try to build a basic MVC application;

Error      1      The type or namespace name 'Controllers' does not exist in the namespace 'MvcBasicWalkthrough' (are you missing an assembly reference?)      c:\users\milligram\documents\visual studio 2010\Projects\MvcBasicWalkThrough\MvcBasicWalkThrough.Tests\Controllers\MapsControllerTest.cs      8      27      MvcBasicWalkThrough.Tests

I am following the  isntructions found here:

I am building at the section "Adding Unit Tests for Action Methods"

The MvcBasicWalkThrough is a added as a reference under MvcBasicWalkThrough

I have the
Who is Participating?
wademiAuthor Commented:
I found the problem:
I didnt know that using a namespace is case sensitive.

I had: using MvcBasicWalkthrough.Controllers
instead of
using MvcBasicWalkThrough.Controllers
There error appears to be in your test project, not the MVC app.

Add a reference to the main project from your test project.
wademiAuthor Commented:
mrjoltcola: the reference is already added to the main project. Look at the last line of my question
wademiAuthor Commented:
No other resolution was provided
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.