Stupid stupid me. Yes that was it. Grant "Write" permission now I got the log file.
Let's see what's inside the log file:
Application startup exception: System.Exception: Plugin 'Must be assigned to customer role'. Access to the path 'C:\inetpub\wwwroot\Plugins\bin\Nop.Plugin.DiscountRules.CustomerRoles.dll' is denied.
Access to the path 'C:\inetpub\wwwroot\Plugins\bin\Nop.Plugin.DiscountRules.CustomerRoles.dll' is denied.
---> System.Exception: Plugin 'Must be assigned to customer role'. Access to the path 'C:\inetpub\wwwroot\Plugins\bin\Nop.Plugin.DiscountRules.CustomerRoles.dll' is denied. ---> System.UnauthorizedAccessException: Access to the path 'C:\inetpub\wwwroot\Plugins\bin\Nop.Plugin.DiscountRules.CustomerRoles.dll' is denied.
at System.IO.FileSystem.CopyFile(String sourceFullPath, String destFullPath, Boolean overwrite)
at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite)
at Nop.Core.Plugins.PluginManager.ShadowCopyFile(String pluginFilePath, String shadowCopyPlugFolder) in C:\Projects\NopCommerce_410\Libraries\Nop.Core\Plugins\PluginManager.cs:line 307
at Nop.Core.Plugins.PluginManager.PerformFileDeploy(String plug, ApplicationPartManager applicationPartManager, NopConfig config, String shadowCopyPath) in C:\Projects\NopCommerce_410\Libraries\Nop.Core\Plugins\PluginManager.cs:line 214
at Nop.Core.Plugins.PluginManager.Initialize(ApplicationPartManager applicationPartManager, NopConfig config) in C:\Projects\NopCommerce_410\Libraries\Nop.Core\Plugins\PluginManager.cs:line 479
--- End of inner exception stack trace ---
at Nop.Core.Plugins.PluginManager.Initialize(ApplicationPartManager applicationPartManager, NopConfig config) in C:\Projects\NopCommerce_410\Libraries\Nop.Core\Plugins\PluginManager.cs:line 515
--- End of inner exception stack trace ---
at Nop.Core.Plugins.PluginManager.Initialize(ApplicationPartManager applicationPartManager, NopConfig config) in C:\Projects\NopCommerce_410\Libraries\Nop.Core\Plugins\PluginManager.cs:line 526
at Nop.Web.Framework.Infrastructure.Extensions.ServiceCollectionExtensions.ConfigureApplicationServices(IServiceCollection services, IConfiguration configuration) in C:\Projects\NopCommerce_410\Presentation\Nop.Web.Framework\Infrastructure\Extensions\ServiceCollectionExtensions.cs:line 58
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
at Microsoft.AspNetCore.Hosting.Internal.WebHost.EnsureApplicationServices()
at Microsoft.AspNetCore.Hosting.Internal.WebHost.Initialize()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()
crit: Microsoft.AspNetCore.Hosting.Internal.WebHost[6]
Application startup exception
It seems that it's a permission issue, IIS_IUSERS doesn't have permission to the published folder?
Take a look at the folder -> Property -> Security, the "Read&Excecute" is kind-of checked, it's more like grey-out.
Or should I also grant "Full Control" "Write" permission to it?
Really appreciate your advice!