Virtual Happy Hour is canceled this month (March) due to Good Friday.
Try our conversational search powered by Generative AI!
AI OnAI Off
Virtual Happy Hour is canceled this month (March) due to Good Friday.
Not sure if I understood you correctly, but shouldn't your content (CommentData) still inherit from PageData (or BlockData, depending on if it's a page or a block) which implements the IContent interface.
I have a gadget that lists page comments on my site. There is also an option to delete a comment by calling Delete in IContentRepository. This has been working fine for a long time, but the other day I noticed that the delete function threw an error:
EPiServer.Core.TypeMismatchException was unhandled by user code
HResult=-2146233088
Message=Content with id '2317' is of type 'Castle.Proxies.CommentDataProxy' which does not inherit required type 'EPiServer.Core.PageData'
Source=EPiServer
Of course the content doesn't inherit PageData, it inherits IContent.
Any ideas what this might be? I'm running EPiServer 7.1.