I am trying to split my templates up into partials and when I takea chunk of code out of the tempalte and instead put it into a partial, I am getting this error:
CS0234: The type or namespace name 'Field' does not exist in the namespace 'Umbraco'
All I have done so far is take this chunk of code out of the Master template and put it into a partial.
*> Compilation Error Description: An error occurred during the
compilation of a resource required to service this request. Please
review the following specific error details and modify your source
code appropriately.
Compiler Error Message: CS0234: The type or namespace name 'Field'
does not exist in the namespace 'Umbraco' (are you missing an assembly
reference?)
Error when using Umbraco field in partial v7.5
Hi,
I am trying to split my templates up into partials and when I takea chunk of code out of the tempalte and instead put it into a partial, I am getting this error:
CS0234: The type or namespace name 'Field' does not exist in the namespace 'Umbraco'
All I have done so far is take this chunk of code out of the Master template and put it into a partial.
the partial code going into the Master is:
Why is it not liking it?
Error details:
*> Compilation Error Description: An error occurred during the
Any ideas?
Thanks
Hi Chris,
Check please that your view inherits from right namespace.
It should be UmbracoTemplatePage or UmbracoViewPage
Thanks,
Alex
That's great Alex. Thanks very much for the quick response.
I knew it would be something trivial but it's been a while since I've used standard Umbraco and it's alwasy the little things that get forgotten!
Happy to help.
Topic is solved, have a nice day!
/Alex
is working on a reply...