Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi i'm just getting started to umbraco.
I have changed the document type of a "Product"
(deleted all product details and added a new area text)
save and publish was okay.
But when i navigated to the product i got:
Server Error in '/' Application.
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: CS1061: 'Product' does not contain a definition for 'ProductName' and no extension method 'ProductName' accepting a first argument of type 'Product' could be found (are you missing a using directive or an assembly reference?)
can somebody help me? thanks
Hello There, Fede,
Your code seems correct. You should look at your product DocumentType and make sure you have a property called ProductName (pay particular attention to the alias, not just the name). If you do, then you should confirm that your @model at the top of the page is correctly defined. Please post the entire Product view & I'll tell you if I see something wrong.
You may also want to check your modelsbuilder mode in the web.config. If it is DLL, you will have to generate your models explicitly in the back office.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted