Error while hosted in server

Wednesday, December 4, 2024 3:02:51 AM
  • Posted: Tuesday, June 16, 2020 9:10 PM
  • 14
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.

0
  • Posted: Wednesday, June 17, 2020 5:32 AM
  • 953
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_
Best regards,
Patryk

GrandNode Team
0
  • Posted: Wednesday, June 24, 2020 4:08 PM
  • 14
Thank you very much it helped resolved it !!!
0
  • Posted: Thursday, June 25, 2020 5:29 AM
  • 953
That's great.
Best regards,
Patryk

GrandNode Team
0
back to top
Filters