Peter
Peter

Reputation: 803

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.

Upvotes: 4

Views: 2823

Answers (2)

Eyal
Eyal

Reputation: 4763

After I copied the site folder to a new folder I gave this folder the APP-POOL permisions: 'IIS APPPOOL\My-IIS-Site-Name' then - restart IIS.

Upvotes: 0

sina_Islam
sina_Islam

Reputation: 1163

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.

Upvotes: 6

Related Questions