This functionality isn't really anything to do with Umbraco, but just standard ASP.NET MVC.
May seem like a really obvious point, but have you actually built the Controllers and have the DLLs in the main websites /bin/ folder? It's sometimes easy to overlook (maybe a compilation error prevented it).
NB. You can also add namespaces into the <namespaces> element within the web.config file in the root of the /Views/ folder. These get imported into every view.
Thanks Dan, I actually managed to get this sorted and embarrassingly I hadn't added them to the project and to think I call myself a developer :P Well seeing as it's Monday I will let myself off.
Namespace not found
Creating a search controller as part of a project and have created the controller and model in the appropriate folders.
Within my search.cshtml file I have declared:
and within the controller and model I have:
Error I am getting upon entering a term for search is:
Can anyone provide some help as to why Umbraco is making me pull my hair out with this :P It would be great to get it working.
This functionality isn't really anything to do with Umbraco, but just standard ASP.NET MVC.
May seem like a really obvious point, but have you actually built the Controllers and have the DLLs in the main websites /bin/ folder? It's sometimes easy to overlook (maybe a compilation error prevented it).
NB. You can also add namespaces into the
<namespaces>
element within theweb.config
file in the root of the/Views/
folder. These get imported into every view.Thanks Dan, I actually managed to get this sorted and embarrassingly I hadn't added them to the project and to think I call myself a developer :P Well seeing as it's Monday I will let myself off.
Thanks for your reply though! :)
is working on a reply...