Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NopCommerce error SevenSpikes.Nop.Plugins.Core.dll' is denied

I got this error continually on my nopCommerce website.

Application startup exception: System.Exception: Plugin 'Seven Spikes Core'. Access to the path 'C:\Inetpub\wwwroot\mywebsite\Plugins\bin\SevenSpikes.Nop.Plugins.Core.dll' is denied.

I have tried disabling overlapped recycle in the application pool and still, I still get the same error occasionally. What's the permanent fix?

I'm using nopCommerce version 4.20 version.

like image 916
Peter Avatar asked Sep 19 '25 19:09

Peter


1 Answers

It is because of the shadow copy of plugin which is resolved at the nopCommerce4.2. To resolve the error you need to follow below steps

  1. You need to stop app_pool and the website.
  2. Remove the all .dll from the plugin bin folder(your website==>Plugins==>bin)
  3. At the appsetting.json(root directory of the website) change "UsePluginsShadowCopy" : true to "UsePluginsShadowCopy": false
  4. Start the app_pool first then website.

It should resolved the error. I faced same problem and get solution by following the above steps. You do not need to disable overlapped recycle.

like image 66
sina_Islam Avatar answered Sep 23 '25 10:09

sina_Islam