I got it work, it was because surface controller code and model code not was in the app_code folder.
But I have another question. How do I make this as an macro? I put my contact.cshtml in the MacroPartials folder and made a new macro with that view. But it dosen´t work, I get this error:
Contact form - namespace name 'Models' does not exist
Hi, I´m new to MVC, and I have followed a tutorial for building a contact form page but get this error message: namespace name 'Models' does not exist
Gets a lot of code, but I do not know what is relevant and not.
Controller
Model
Partial View
And it´s here I get the error message on the first line
What have I missed?
EDIT: Sry, I´m using Umbraco 7.0.3 and .net 4.5.
Thanks, Jonas
I really need help with this, any help is appreciated.
I got it work, it was because surface controller code and model code not was in the app_code folder.
But I have another question. How do I make this as an macro? I put my contact.cshtml in the MacroPartials folder and made a new macro with that view. But it dosen´t work, I get this error:
Error loading Partial View script (file: ~/Views/MacroPartials/ContactForm.cshtml)
Any suggestions?
Hi Jonas Gunnarsson
What is solutions for this, I got the same problem when I updated to Umbraco 8.8:
https://our.umbraco.com/forum/using-umbraco-and-getting-started//103625-umbracoformsformpicker-contactforms-errors-in-umbraco-88-rc
Peter
is working on a reply...