FindSearchPage Controller

Vote:
 

Get errors on the Search Page if I enter content into any of the attributes as the header title or any other xhtmlstring type property. If I just let the page render with search results it works fine but any other attributes even the footer links cause it to error:

Get following type of error:

System.InvalidOperationException: The model item passed into the ViewDataDictionary is of type 'EPiServer.Core.ContentArea', but this ViewDataDictionary instance requires a model item of type 'QDX.Models.ViewModels.FindSearchPageViewModel'.

Thanks

Daman

#295795
Feb 02, 2023 6:05
Eric Herlitz - Feb 02, 2023 9:51
Seems unlikely that that error is related to any Xhtmlstring property. It appears as if you somewhere have a mapping to the ViewDataDictionary that is bad.
Greg J - Feb 02, 2023 18:18
What Eric said, it sounds like your controller is passing down the wrong object to the search page view.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.