Got InvalidCastException: Failed casting content to 'MyCustomPart', check you have registered your content part with AddContentPart while trying to querying orchard core content items #17004
Unanswered
PaariMobimp
asked this question in
Q&A
Replies: 1 comment
-
This is a You don't need |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Looking from the tutorial video here, I am trying to fetch my content items. I already have a content type which includes a custom content part as shown below:
Below image is my custom part
And the controller code is below:
MyCustomPart :
startup.cs code:
Can someone help how do I overcome this exception even after adding addContentPart under Services() in my startup file
Beta Was this translation helpful? Give feedback.
All reactions