Close

After migrating to NopCommerce 3.5 the attachment plugin gives an error

svdhorst
9 years ago
#8488 Quote
Avatar
  • 2
The following error is presented when saving the configuration of Nop Attachements:


The ViewData item that has the key 'WidgetZone' is of type 'System.String' but must be of type 'IEnumerable<SelectListItem>'.




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 ViewData item that has the key 'WidgetZone' is of type 'System.String' but must be of type 'IEnumerable<SelectListItem>'.




Source Error: 








[No relevant source lines]




Source File: c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nop35.web\9da03a5d\17944200\App_Web_sevenspikes.nop.plugins.attachments.views.attachmentspluginadmin.settings.cshtml.a1a762cd.vwt6fmf_.0.cs    Line: 0 




Stack Trace: 








[InvalidOperationException: The ViewData item that has the key 'WidgetZone' is of type 'System.String' but must be of type 'IEnumerable<SelectListItem>'.]
   System.Web.Mvc.Html.SelectExtensions.GetSelectData(HtmlHelper htmlHelper, String name) +442
   System.Web.Mvc.Html.SelectExtensions.SelectInternal(HtmlHelper htmlHelper, ModelMetadata metadata, String optionLabel, String name, IEnumerable`1 selectList, Boolean allowMultiple, IDictionary`2 htmlAttributes) +151
   System.Web.Mvc.Html.SelectExtensions.DropDownListHelper(HtmlHelper htmlHelper, ModelMetadata metadata, String expression, IEnumerable`1 selectList, String optionLabel, IDictionary`2 htmlAttributes) +41
   System.Web.Mvc.Html.SelectExtensions.DropDownListFor(HtmlHelper`1 htmlHelper, Expression`1 expression, IEnumerable`1 selectList) +99
   ASP._Page_Views_AttachmentsPluginAdmin_SevenSpikes_Nop_Plugins_Attachments_Views_AttachmentsPluginAdmin_Settings_cshtml.Execute() in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nop35.web\9da03a5d\17944200\App_Web_sevenspikes.nop.plugins.attachments.views.attachmentspluginadmin.settings.cshtml.a1a762cd.vwt6fmf_.0.cs:0
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +280
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +126
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +125
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +380
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +109
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +890
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +890
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +890
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +890
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +890
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +97
   System.Web.Mvc.Async.<>c__DisplayClass21.<BeginInvokeAction>b_
hristian.dimov
9 years ago
#8490 Quote
Avatar
  • Moderator
  • 386
svdhorst wrote:
The following error is presented when saving the configuration of Nop Attachements:

The ViewData item that has the key 'WidgetZone' is of type 'System.String' but must be of type 'IEnumerable<SelectListItem>'.


Hi svdhorst,

please refer to this post: http://www.nop-templates.com/boards/topic/2027/error-saving-config-for-nop-attachments
Regards,
Hristian Dimov
Nop-Templates.com