I added a new plugin to my Plugins folder and clicked "reload list of plugins" but I get an error below. This is a custom plugin, that I don't have any issues with except whenever I try to reload the site when I add a new plugin. If I reset the application pool for my site, the error goes away. Any ideas what might be causing it?
An error occurred while starting the application.
UnauthorizedAccessException: Access to the path 'C:\inetpub\wwwroot\estech\Plugins\bin\Nop.Plugin.Misc.MyPlugin.dll' is denied.
System.IO.FileSystem.DeleteFile(string fullPath)
Exception: Plugin 'Export Pricing'. Access to the path 'C:\inetpub\wwwroot\estech\Plugins\bin\Nop.Plugin.Misc.MyPlugin.dll' is denied.
Nop.Web.Framework.Infrastructure.Extensions.ApplicationPartManagerExtensions.InitializePlugins(ApplicationPartManager applicationPartManager, NopConfig config) in ApplicationPartManagerExtensions.cs, line 569
Exception: Plugin 'Export Pricing'. Access to the path 'C:\inetpub\wwwroot\estech\Plugins\bin\Nop.Plugin.Misc.MyPlugin.dll' is denied.
Access to the path 'C:\inetpub\wwwroot\estech\Plugins\bin\Nop.Plugin.Misc.MyPlugin.dll' is denied.
Nop.Web.Framework.Infrastructure.Extensions.ApplicationPartManagerExtensions.InitializePlugins(ApplicationPartManager applicationPartManager, NopConfig config) in ApplicationPartManagerExtensions.cs, line 580