An error occurred while starting the application.
UnauthorizedAccessException: Access to the path 'C:\version_01\Plugins\bin\Grand.Plugin.DiscountRequirements.Standard.dll' is denied.
System.IO.FileSystem.DeleteFile(string fullPath)
Exception: Plugin 'Standard discount requirements'. Access to the path 'C:\version_01\Plugins\bin\Grand.Plugin.DiscountRequirements.Standard.dll' is denied.
Grand.Core.Plugins.PluginManager.Initialize(IMvcCoreBuilder mvcCoreBuilder, GrandConfig config) in PluginManager.cs, line 194
Hi Team,
I was getting the above error when hosted this in release mode
Note: I have given full permissions to the root folder and subfolders
Regards,
Saitej.
Error while hosted in server
Wednesday, December 4, 2024 3:02:51 AM
Hi,
According to the System.IO.FileSystem.DeleteFile method documentation, we have a few possible reasons:
1. You don't have permissions to do that action
2. File is in use
3. Path is a directory.
4. Path specified a read-only file
More details about this error can be found here: https://docs.microsoft.com/en-us/dotnet/api/system.io.file.delete?redirectedfrom=MSDN&view=netcore-3.1#System_IO_File_Delete_System_String_
According to the System.IO.FileSystem.DeleteFile method documentation, we have a few possible reasons:
1. You don't have permissions to do that action
2. File is in use
3. Path is a directory.
4. Path specified a read-only file
More details about this error can be found here: https://docs.microsoft.com/en-us/dotnet/api/system.io.file.delete?redirectedfrom=MSDN&view=netcore-3.1#System_IO_File_Delete_System_String_
Best regards,
Patryk
GrandNode Team
Patryk
GrandNode Team
0