An error occurred when saving (Project Name) Access to the path is denied

Hai all,

i’m facing (An error occurred when saving Main
Access to the path is denied.) error while i try to save my project file.,

kindly find the error log and plz help me out of this error

An error occurred when saving Main
Access to the path is denied.

System.Exception: An error occurred when saving Main
Access to the path is denied. ---> System.UnauthorizedAccessException: Access to the path is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count)
   at System.IO.FileStream.FlushWrite(Boolean calledFromFinalizer)
   at System.IO.FileStream.Dispose(Boolean disposing)
   at System.IO.Stream.Close()
   at System.IO.StreamWriter.Dispose(Boolean disposing)
   at System.IO.TextWriter.Dispose()
   at System.Activities.Presentation.WorkflowDesigner.Save(String fileName)
   at UiPath.Workflow.Designer.DesignerAddIn.Save(String file)
   at UiPath.Workflow.ViewModels.WorkflowViewModel.Save(String workflowPath)
   at UiPath.Workflow.ViewModels.WorkflowViewModel.Save()
   --- End of inner exception stack trace ---
   at UiPath.Workflow.ViewModels.WorkflowViewModel.Save()
   at UiPath.Workflow.ViewModels.MainViewModel.<get_SaveCommand>b__117_0(Object param)
   at UiPath.Workflow.RelayCommand.Execute(Object parameter)

you have to ask your system admin or IT helpdesk to grant you proper user rights to access the project folder.


Thanks for the response Mr.aksh yadev i rectified the issue., The issue is because my bitdefender antivirus blocked and deleting all the activities of uipath studio (showing malware in the path) after uninstalled the antivirus it working fine :slight_smile::+1: