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:
http://msdn.microsoft.com/en-us/library/dd410597.aspx

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
wademiAsked:
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
0
 
mrjoltcolaCommented:
There error appears to be in your test project, not the MVC app.

Add a reference to the main project from your test project.
0
 
wademiAuthor Commented:
mrjoltcola: the reference is already added to the main project. Look at the last line of my question
0
 
wademiAuthor Commented:
No other resolution was provided
0
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.