In my test MVC web application, I've created custom class, which retrieves data from database. I have created also another folder in MVC app called Data and i have placed that data class in this folder. When i want to use this class from Controller and when importing with:
using TestMvcApp.Data;
i get an error:
The type or namespace name 'Data' does not exist in the namespace 'TestMvcApp'
(are you missing an assembly reference?)
Where can be the problem? Why it cannot find my class? I have tried a lot of things like placing that class in controller folder, but nothing helped yet. I created my test MVC app according to this article Using MvcContrib Grid in ASP.NET MVC Project Thanks for tips and answers.
EDIT: Name of my class is "ProductDB" and i have specified the namespace in it. I imported that class into project, than i created DATA folder, then i placed that class in there and finally i have changed its namespace name to TestMvcApp.Data! That class is from my another project.