After upgrade from 3.3 to 3.4 for all my plugins I get error about @model in my views

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
9 năm cách đây
I made something wrong in all my plugins because I get the same type of error:
Compiler Error Message: CS0103: The name 'model' does not exist in the current context
...
Line 2:      Layout = "";
Line 3:  }
Line 4:  @model ConfigurationModel
...

I checked namespaces (anyway, they don't change) and nothing.
Any tips ?!
9 năm cách đây
hi, based on my experiences, it supposed because you specified different model between controller and view. also, you need to recompile your plugin to newest 3.4 nopcommerce framework. GL
9 năm cách đây
But I didn't change passed model type between controler and view.
"Funny" thing is that this problem apear in all my plugins which working well in version 3.3.

I changed reference to MVC ver 5.2, views are not embedded and so on.
My plugins are recompiled with all Nop 3.4 solution and nothing.
9 năm cách đây
OK I fixed ;)
My web.config was wrong.
I just simply copy from other plugin (shiping by weight) and done.
After that I should correct grid sizes for:
var defaultGridPageSize = EngineContext.Current.Resolve<Nop.Core.Domain.Common.AdminAreaSettings>().DefaultGridPageSize;
    var gridPageSizes = EngineContext.Current.Resolve<Nop.Core.Domain.Common.AdminAreaSettings>().GridPageSizes;

and it's working ;)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.