[Last Call] Learn how to a build a cloud-first strategyRegister Now


MVC Error

Posted on 2011-04-30
Medium Priority
Last Modified: 2012-05-11
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
Question by:wademi
  • 3
LVL 40

Expert Comment

ID: 35497941
There error appears to be in your test project, not the MVC app.

Add a reference to the main project from your test project.

Author Comment

ID: 35498156
mrjoltcola: the reference is already added to the main project. Look at the last line of my question

Accepted Solution

wademi earned 0 total points
ID: 35498227
I found the problem:
I didnt know that using a namespace is case sensitive.

I had: using MvcBasicWalkthrough.Controllers
instead of
using MvcBasicWalkThrough.Controllers

Author Closing Comment

ID: 35696404
No other resolution was provided

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question