I have my project setup so that when my DD4T controllers throw an error they get redirected to an Error.aspx page. This page is setup in tridion and published. The redirect and loading of that page works just fine however in the event log for ever error I get this.
'System.Web.Mvc.HandleErrorInfo', but this dictionary requires a model item of type 'DD4T.ContentModel.IPage'.
I cannot get this to go away or figure out why it thinks it is getting the wrong model. When I look at the model on the page it says it is an IPage model type.
Any idea?
Not a lot of relevant code as it is pretty standard out of the box stuff:
<customErrors mode="RemoteOnly" defaultRedirect="~/Error.aspx" />
Page controller
public override ActionResult Page(string pageId)
{
pageId = UriHelper.ParseUrl(pageId);
return base.Page(pageId);
}
Component controller
public ActionResult Error(IComponentPresentation componentPresentation, [Bind(Prefix = QueryStringParameters.ClientId)] int? clientId)
{
... stuff here
ViewBag.Logo = Logo;
}
return this.View();
}