3

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.

Raju Paladiya
  • 778
  • 2
  • 12
  • 35
Peter
  • 793
  • 3
  • 8
  • 31
  • what is the nopCommerce version? – sina_Islam Jan 20 '20 at 14:02
  • I just update the question with the nopcommerce version – Peter Jan 20 '20 at 15:17
  • try to remove the shadow copy code from PluginManager.cs.Don't forget to delete the Plugins/bin shadow directory after deploying the changes.you could refer this [link](https://www.nopcommerce.com/boards/topic/49851/serious-iis-application-pool-recycling-bugdesign-flaw/page/3#199596) for more detail – Jalpa Panchal Jan 21 '20 at 02:54

2 Answers2

5

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.

sina_Islam
  • 1,068
  • 12
  • 19
0

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.

Eyal
  • 4,653
  • 9
  • 40
  • 56