In Experience editor, the following error appears in the F12 Console when adding a new component with any rendering: 'Could not find the rendering in the HTML loaded from server'. I am logged in as admin/b.
2 Answers
- Find out the name of the placeholder that you are inserting into by hovering the mouse over the "Add here" button.
- Let's assume it is the 'content' placeholder, go to Content Editor > navigate to content (/sitecore/layout/Placeholder Settings/content),
- Go to the "Data" section, "Allowed Controls", click Edit and then add the desired rendering (or all of them which is not recommended).
- Save. Error should be resolved.
For reference we were experiencing the same error and found that it was caused by having a Controller HTTP Post action with the same name as the view (when using SXA). Changing the action name resolved our issue.