I am getting an error when installing my custom build plugin. The plugin is working fine when running on my own development machine. I have tried to give Full control to all accounts I can think of, including IIS_IUSRS
This is the error from the eventlog:
Application: w3wp.exe CoreCLR Version: 5.0.421.11614 .NET Version: 5.0.4 Description: The process was terminated due to an unhandled exception. Exception Info: System.Exception: Plugin 'GLS'. Access to the path 'C:\inetpub\wwwroot\Nop\Plugins\bin\Nop.Plugin.Shipping.GLS.dll' is denied. Access to the path 'C:\inetpub\wwwroot\Nop\Plugins\bin\Nop.Plugin.Shipping.GLS.dll' is denied.
A bonus question: Why are the installation putting my dll in the bin folder?
The rest of the error message indicates that Nop will try to delete the file first, and thats what causes the error to occur:
---> System.Exception: Plugin 'GLS'. Access to the path 'C:\inetpub\wwwroot\Nop\Plugins\bin\Nop.Plugin.Shipping.GLS.dll' is denied. ---> System.UnauthorizedAccessException: Access to the path 'C:\inetpub\wwwroot\Nop\Plugins\bin\Nop.Plugin.Shipping.GLS.dll' is denied. at System.IO.FileSystem.DeleteFile(String fullPath) at System.IO.File.Delete(String path) at Nop.Core.Infrastructure.NopFileProvider.DeleteFile(String filePath)