I am not able to save any of my content page and hence not able to publish them (refer the attached image).
Things which I have tried so far:
Changing "Umbraco.ModelsBuilder.ModelsMode" to Dll, LiveDll and PureLive.
Cleared nu cache.
This issue have appeared before in my project, but at that time I changed the mode to live which allowed me to save & publish the content, then switching back to Dll solved it. But this time, I have tried every combination but still not able to solve it.
The generated models in Modelsbuilder are designed to implement IPublishedContent...
What properties do you have on BlogLandingPage document type?
The odd thought I had is maybe a custom property you have defined on the doc type - clashes in name with one on IPublishedContent, but with a different signature, and therefore is generating a version of the model that now doesn't implement IPublishedContent properly!
Are there any errors logged when you regenerated models?
Has the BlogLandingPage got 'Is Element Type' ticked for it in the 'permissions section'
Yes, BlogLandingPage has a field for nested content (having a document type with "Is an Element type" ticked).
About the clash you mention, how can I refresh the content in IPublishedContent, only way I know is to clear nu cache from "Published Status" tab under settings under templating.
Just in case this helps anyone else, I was having the same problem with the error above.
In my situation I was trying to create nodes programatically, but realised it was because I was creating a document type that had 'Is element type' selected as Marc suggested. Just switch that back off and it should work.
Not sure if this is a bug - I was having this issue with the latest issue of V10.1.1
My issue was started when I changed a doc type with element "enabled" to "disabled".
After playing with Memory Cache and Database Cache to no avail, I went back into the generated models and saw that all was ok there as far as IPublishContent was concerned, so I rebuilt and still nothing. Restarted the IIS app pool and bam - works.
So, when this happens, make sure you regenerate your models, rebuild your source and then start the website process, should be good.
Factory returned model of type which does not implement IPublishedContent.
I am not able to save any of my content page and hence not able to publish them (refer the attached image).
Things which I have tried so far:
This issue have appeared before in my project, but at that time I changed the mode to live which allowed me to save & publish the content, then switching back to Dll solved it. But this time, I have tried every combination but still not able to solve it.
Hi Bhawna
The generated models in Modelsbuilder are designed to implement IPublishedContent...
What properties do you have on BlogLandingPage document type?
The odd thought I had is maybe a custom property you have defined on the doc type - clashes in name with one on IPublishedContent, but with a different signature, and therefore is generating a version of the model that now doesn't implement IPublishedContent properly!
Are there any errors logged when you regenerated models?
Has the BlogLandingPage got 'Is Element Type' ticked for it in the 'permissions section'
regards
Marc
Yes, BlogLandingPage has a field for nested content (having a document type with "Is an Element type" ticked).
About the clash you mention, how can I refresh the content in IPublishedContent, only way I know is to clear nu cache from "Published Status" tab under settings under templating.
Just in case this helps anyone else, I was having the same problem with the error above.
In my situation I was trying to create nodes programatically, but realised it was because I was creating a document type that had 'Is element type' selected as Marc suggested. Just switch that back off and it should work.
I can't reproduce this in the latest version of the codebase, so I'm going to assume it's been fixed already along the way! 9apps Vidmate
Not sure if this is a bug - I was having this issue with the latest issue of V10.1.1
My issue was started when I changed a doc type with element "enabled" to "disabled".
After playing with Memory Cache and Database Cache to no avail, I went back into the generated models and saw that all was ok there as far as IPublishContent was concerned, so I rebuilt and still nothing. Restarted the IIS app pool and bam - works.
So, when this happens, make sure you regenerate your models, rebuild your source and then start the website process, should be good.
is working on a reply...