How to resolve the error received while publishing a project: The requested operation cannot be performed on a file with a user-mapped section open. System.IO.IOException: The requested operation cannot be performed on a file with a user-mapped section open ?
Issue Description: Issue occurs while publishing a project from Studio
The requested operation cannot be performed on a file with a user-mapped section open. System.IO.IOException: The requested operation cannot be performed on a file with a user-mapped section open.
Resolution :
- Try restarting UiPath Studio
- Try rebooting the workstation/ server/ computer
- Ensure no other User does not maintain any access to the files specific to the current project
- Temporarily disable the anti-virus and firewall and try publishing the project
- Open task manager – check for presence of any project specific Process/Task and close the same
- Take a backup of Project folder and try deleting files(i.e. Pdf, Excel, .nupkg etc) and try publishing automation script from Studio for every iteration of file removal and identify the file causing the issue. Later, remove/ rebuild the file and Publish the project
- If there are any DLLs locked, try removing/unlocking them using some 3rd Party tools like Unlocker , IObit etc.
- The Requested Operation Cannot Be Performed On A File With User Mapped Section Open ( MSDN platform)
- The Requested Operation Cannot Be Performed On A File With User mapped Section Open ( Stack Overflow)
- The Requested Operation Cannot Be Performed On A File With User mapped Section Open ( Visual Studio Developer Community ) .