How to install plugin in NOP version 4.5

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
1 year ago
I'm using VS 2022 and I'm able to run in IIS Express, also I changed it to Nop.Web as per the solutions mentioned in our forum. And it's not sometimes but always get stopped when I install plugin. Even after the manual start, plugin not get installed. Restart button is always available in the plugins page. And plugin always have the red cross icon denoted as app not get installed.

https://drive.google.com/file/d/1tr3NRuaH2jRmxlgAbf7-OvCpE5dE_p28/view?usp=sharing
https://drive.google.com/file/d/1tr3NRuaH2jRmxlgAbf7-OvCpE5dE_p28/view?usp=sharing

Please refer the above URLs for the image
1 year ago
I just use IIS Express
Is there anything in the log to say what plugin is not installed and what error ?
1 year ago
I'm not getting any error, I'm just not able to install the plugin even after manual restart. Please refer the loom screen recording by clicking below link

https://www.loom.com/share/75d4affb44ee4e4ea05748925935b6b2
1 year ago
If there is no error in the log then you can turn on Stdout Logging and see if there is an error in hat log file
See https://www.selectsystems.com.au/checking-for-errors-on-a-new-installation-of-nopcommerce
1 year ago
Enabled the log in webconfig file and captured the logs. Looks like there is no error captured here. Please refer the some of the logs which are created recently.

info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[2]
      Executed action Nop.Web.Areas.Admin.Controllers.PluginController.ListSelect (Nop.Web) in 58.4779ms
info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1]
      Executed endpoint 'Nop.Web.Areas.Admin.Controllers.PluginController.ListSelect (Nop.Web)'
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
      Request finished HTTP/2 POST https://localhost:44369/Admin/Plugin/ListSelect application/x-www-form-urlencoded;+charset=UTF-8 1444 - 200 - application/json;+charset=utf-8 202.8465ms
info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
      Request starting HTTP/2 POST https://localhost:44369/Admin/Plugin/List application/x-www-form-urlencoded 343
info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0]
      Executing endpoint 'Nop.Web.Areas.Admin.Controllers.PluginController.ApplyChanges (Nop.Web)'
info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[3]
      Route matched with {area = "Admin", action = "List", controller = "Plugin"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] ApplyChanges() on controller Nop.Web.Areas.Admin.Controllers.PluginController (Nop.Web).
info: Microsoft.AspNetCore.Mvc.ViewFeatures.ViewResultExecutor[1]
      Executing ViewResult, running view RestartApplication.
info: Microsoft.AspNetCore.Mvc.ViewFeatures.ViewResultExecutor[4]
      Executed ViewResult - view RestartApplication executed in 282.7309ms.
info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[2]
      Executed action Nop.Web.Areas.Admin.Controllers.PluginController.ApplyChanges (Nop.Web) in 325.4195ms
info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1]
      Executed endpoint 'Nop.Web.Areas.Admin.Controllers.PluginController.ApplyChanges (Nop.Web)'
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
      Request finished HTTP/2 POST https://localhost:44369/Admin/Plugin/List application/x-www-form-urlencoded 343 - 200 - text/html;+charset=utf-8 416.2519ms
info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
      Request starting HTTP/2 GET https://localhost:44369/_framework/aspnetcore-browser-refresh.js - -
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
      Request finished HTTP/2 GET https://localhost:44369/_framework/aspnetcore-browser-refresh.js - - - 200 11984 application/javascript;+charset=utf-8 12.9261ms
info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
      Request starting HTTP/2 GET https://localhost:44369/_vs/browserLink - -
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
      Request finished HTTP/2 GET https://localhost:44369/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 56.5832ms
info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
      Request starting HTTP/2 GET https://localhost:44369/Admin/Common/RestartApplication - -
info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
      Request starting HTTP/2 GET https://localhost:44369/Admin/Plugin/AdminNavigationPlugins?_=1654945934917 - -
info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0]
      Executing endpoint 'Nop.Web.Areas.Admin.Controllers.CommonController.RestartApplication (Nop.Web)'
info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0]
      Executing endpoint 'Nop.Web.Areas.Admin.Controllers.PluginController.AdminNavigationPlugins (Nop.Web)'
info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[3]
      Route matched with {area = "Admin", action = "AdminNavigationPlugins", controller = "Plugin"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] AdminNavigationPlugins() on controller Nop.Web.Areas.Admin.Controllers.PluginController (Nop.Web).
info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[3]
      Route matched with {area = "Admin", action = "RestartApplication", controller = "Common"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] RestartApplication() on controller Nop.Web.Areas.Admin.Controllers.CommonController (Nop.Web).
info: Microsoft.AspNetCore.Mvc.NewtonsoftJson.NewtonsoftJsonResultExecutor[1]
      Executing JsonResult, writing value of type 'System.Collections.Generic.List`1[[<>f__AnonymousType19`5[[System.String, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int32, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], Nop.Web, Version=4.5.0.0, Culture=neutral, PublicKeyToken=null]]'.
info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[2]
      Executed action Nop.Web.Areas.Admin.Controllers.PluginController.AdminNavigationPlugins (Nop.Web) in 39.5921ms
info: Microsoft.Hosting.Lifetime[0]
      Application is shutting down...
info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1]
      Executed endpoint 'Nop.Web.Areas.Admin.Controllers.PluginController.AdminNavigationPlugins (Nop.Web)'
info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[2]
      Executed action Nop.Web.Areas.Admin.Controllers.CommonController.RestartApplication (Nop.Web) in 44.2609ms
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
      Request finished HTTP/2 GET https://localhost:44369/Admin/Plugin/AdminNavigationPlugins?_=1654945934917 - - - 200 - application/json;+charset=utf-8 131.7445ms
info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1]
      Executed endpoint 'Nop.Web.Areas.Admin.Controllers.CommonController.RestartApplication (Nop.Web)'
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
      Request finished HTTP/2 GET https://localhost:44369/Admin/Common/RestartApplication - - - 200 - - 173.7789ms
1 year ago
I want to add one more point now. I'm able to install other free plugins, only the problem is application stops when restarting. I need to manually restart. But I'm not able to install the plugin which I bought from the market place. I can see the plugin files in the following path "Presentation\Nop.Web\Plugins\Payments.RazorpayPayment". But in the "local plugins" page, its shows as not installed.
1 year ago
arunfromtmm wrote:
I want to add one more point now. I'm able to install other free plugins, only the problem is application stops when restarting. I need to manually restart.

Yes if running in development that is how it works

arunfromtmm wrote:
But I'm not able to install the plugin which I bought from the market place. I can see the plugin files in the following path "Presentation\Nop.Web\Plugins\Payments.RazorpayPayment". But in the "local plugins" page, its shows as not installed.

Contact the developer where you purchased the plugin
1 year ago
Hi,

Contacted plugin developer, they are claiming that this is the issue in nop commerce installation side. And I got the following error from log.

System.MissingMethodException: Method not found: 'System.Threading.Tasks.Task Nop.Services.Localization.ILocalizationService.AddLocaleResourceAsync(System.Collections.Generic.IDictionary`2<System.String,System.String>, System.Nullable`1<Int32>)'.
   at Nop.Plugin.Payments.RazorpayPayment.PaymentRazorpayProcessor.InstallAsync()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at Nop.Plugin.Payments.RazorpayPayment.PaymentRazorpayProcessor.InstallAsync()
   at Nop.Services.Plugins.PluginService.InstallPluginsAsync() in E:\BeeTechies\Projects\AmirthaAngadi-Ecom\SourceCode-4.30\src\Libraries\Nop.Services\Plugins\PluginService.cs:line 502

Please help with this.
1 year ago
a 4.5 version of the plugin will use _localizationService.AddOrUpdateLocaleResourceAsync
a previous version of the plugin will use _localizationService.AddLocaleResourceAsync

So the plugin you are using is not compatible with v4.5

Looking at this error is confusing
arunfromtmm wrote:
E:\BeeTechies\Projects\AmirthaAngadi-Ecom\SourceCode-4.30\src\Libraries\Nop.Services\Plugins\PluginService.cs:line 502.

Are you using v4.3 Source code
1 year ago
I'm sorry. The folder name is incorrect. I'm using 4.50.3 of nop commerce.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.