- 5
when i install your theme i get this below error.now how can i solve this error ?
The model item passed into the dictionary is of type 'System.Collections.Generic.List`1[Nop.Web.Models.Cms.RenderWidgetModel]', but this dictionary requires a model item of type 'System.Collections.Generic.List`1[Nop.Admin.Models.Cms.RenderWidgetModel]'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: The model item passed into the dictionary is of type 'System.Collections.Generic.List`1[Nop.Web.Models.Cms.RenderWidgetModel]', but this dictionary requires a model item of type 'System.Collections.Generic.List`1[Nop.Admin.Models.Cms.RenderWidgetModel]'.
Source Error:
Line 409: public static MvcHtmlString Widget(this HtmlHelper helper, string widgetZone, object additionalData = null)
Line 410: {
Line 411: return helper.Action("WidgetsByZone", "Widget", new { widgetZone = widgetZone, additionalData = additionalData });
Line 412: }
Line 413:
Source File: f:\Sangeet Learn\Website Devloping\Project\onlineshopping\nop 10-5\Presentation\Nop.Web.Framework\HtmlExtensions.cs Line: 411
The model item passed into the dictionary is of type 'System.Collections.Generic.List`1[Nop.Web.Models.Cms.RenderWidgetModel]', but this dictionary requires a model item of type 'System.Collections.Generic.List`1[Nop.Admin.Models.Cms.RenderWidgetModel]'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: The model item passed into the dictionary is of type 'System.Collections.Generic.List`1[Nop.Web.Models.Cms.RenderWidgetModel]', but this dictionary requires a model item of type 'System.Collections.Generic.List`1[Nop.Admin.Models.Cms.RenderWidgetModel]'.
Source Error:
Line 409: public static MvcHtmlString Widget(this HtmlHelper helper, string widgetZone, object additionalData = null)
Line 410: {
Line 411: return helper.Action("WidgetsByZone", "Widget", new { widgetZone = widgetZone, additionalData = additionalData });
Line 412: }
Line 413:
Source File: f:\Sangeet Learn\Website Devloping\Project\onlineshopping\nop 10-5\Presentation\Nop.Web.Framework\HtmlExtensions.cs Line: 411