Here is a portion of the exception:
'Nop.Web.Framework.Models.BaseSearchModel Nop.Web.Framework.Models.BaseSearchModel.<Clone>$()'. ---> System.Exception: Plugin 'Shopping List'. Method not found: 'Nop.Web.Framework.Models.BaseSearchModel Nop.Web.Framework.Models.BaseSearchModel.<Clone>$()'. ---> System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Method not found: 'Nop.Web.Framework.Models.BaseSearchModel Nop.Web.Framework.Models.BaseSearchModel.<Clone>$()'. at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) at System.Reflection.RuntimeModule.GetTypes() at
Another piece of information that seems to hint toward whatever my issue is is that in the production site, a nopStation plugin (nopStation.ScheduleDelivery) is installed and running.
However when I try to install this same plugin into my local 4.40.4 environment, the environment where I’m working on my plugin, I get a similar type of exception during the install phase of that nopStation.ScheduleDelivery plugin. Here’s a portion of that exception:
System.Exception HResult=0x80131500 Message=Plugin 'Nop-Station Core'. Return type in method 'Nop.Plugin.NopStation.Core.Models.CoreLocaleResourceModel.$()' on type 'Nop.Plugin.NopStation.Core.Models.CoreLocaleResourceModel' from assembly 'Nop.Plugin.NopStation.Core, Version=4.4.6.0, Culture=neutral, PublicKeyToken=null' is not compatible with base type method 'Nop.Web.Framework.Models.BaseNopEntityModel.$()'. Method '$' in type 'Nop.Plugin.NopStation.Core.Models.CoreLocaleResourceListModel' from assembly 'Nop.Plugin.NopStation.Core, Version=4.4.6.0, Culture=neutral, PublicKeyToken=null' does not have an implementation. Return type in method 'Nop.Plugin.NopStation.Core.Models.CoreLocaleResourceModel.$()' on type 'Nop.Plugin.NopStation.Core.Models.CoreLocaleResourceModel' from assembly 'Nop.Plugin.NopStation.Core, Version=4.4.6.0, Culture=neutral, PublicKeyToken=null' is not compatible with base type method 'Nop.Web.Framework.Models.BaseNopEntityModel.$()'. Method '$' in type 'Nop.Plugin.NopStation.Core.Models.CoreLocaleResourceSearchModel' from assembly 'Nop.Plugin.NopStation.Core, Version=4.4.6.0, Culture=neutral, PublicKeyToken=null' does not have an implementation. Unable to load one or more of the requested types. Return type in method 'Nop.Plugin.NopStation.Core.Models.CoreLocaleResourceModel.$()' on type 'Nop.Plugin.NopStation.Core.Models.CoreLocaleResourceModel' from assembly 'Nop.Plugin.NopStation.Core, Version=4.4.6.0, Culture=neutral, PublicKeyToken=null' is not compatible with base type method
Production is running .NET 5.0.11 while my local environment is running .NET 5.0.12 and they both show nopCommerce 4.40.4 for the version.
I haven’t done a lot of plugin development, so maybe my process should be modified. I just thought that if I worked with the 4.40.4 package with source code that any plugin I developed should be able to install/work in a 4.40.4 setup based on 4.40.4 package without source code.
I appreciate any guidance/insight that can be provided on this.
Thank you,
Bill