Hi,
We are using Nop-template along with its many plugins. We have found errors and due to that application crashes. I found following in the log file:
----
Application startup exception: System.Exception: Plugin 'Seven Spikes Core'. Access to the path 'C:\HostedApps\site_v4\Plugins\bin\SevenSpikes.Nop.Plugins.Core.dll' is denied.
Access to the path 'C:\HostedApps\site_v4\Plugins\bin\SevenSpikes.Nop.Plugins.Core.dll' is denied.
---> System.Exception: Plugin 'Seven Spikes Core'. Access to the path 'C:\HostedApps\site_v4\Plugins\bin\SevenSpikes.Nop.Plugins.Core.dll' is denied. ---> System.UnauthorizedAccessException: Access to the path 'C:\HostedApps\site_v4\Plugins\bin\SevenSpikes.Nop.Plugins.Core.dll' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at System.IO.File.Delete(String path)
at Nop.Core.Plugins.PluginManager.ShadowCopyFile(FileInfo plug, DirectoryInfo shadowCopyPlugFolder)
at Nop.Core.Plugins.PluginManager.PerformFileDeploy(FileInfo plug, ApplicationPartManager applicationPartManager, NopConfig config)
at Nop.Core.Plugins.PluginManager.Initialize(ApplicationPartManager applicationPartManager, NopConfig config)
--- End of inner exception stack trace ---
at Nop.Core.Plugins.PluginManager.Initialize(ApplicationPartManager applicationPartManager, NopConfig config)
--- End of inner exception stack trace ---
at Nop.Core.Plugins.PluginManager.Initialize(ApplicationPartManager applicationPartManager, NopConfig config)
at Nop.Core.Infrastructure.NopEngine.Initialize(IServiceCollection services)
at Nop.Web.Framework.Infrastructure.Extensions.ServiceCollectionExtensions.ConfigureApplicationServices(IServiceCollection services, IConfigurationRoot configuration)
at Nop.Web.Startup.ConfigureServices(IServiceCollection services)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
at Microsoft.AspNetCore.Hosting.Internal.WebHost.EnsureApplicationServices()
at Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()
crit: Microsoft.AspNetCore.Hosting.Internal.WebHost[6]
Application startup exception
----
We have got resolution from their support saying that its a problem with nopcommerce itself.
Reply:
----------
This is a known issue with nopCommerce 4.00. NopCommerce makes shadow copies of the plugins' .dll files that it uses. Those .dll files should get deleted on application pool recycle but sometimes are getting locked by the system throwing errors like this.
The only workaround this issue is to disable the overlapped recycle of the application pool your nopCommerce app is using. This can be done by checking the Disable Overlapped Recycle setting in the application pool settings.
------
My Question is may be from the nop Commerce team as well that is it true? is it nopcommerce issue? because no other plugin gives this error in log file.
Thanks for your time.