Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

UnauthorizedAccessException



  • We are seeing a ton of the following error when we try to delete or deploy a web.config file.

    An unhandled exception occurred while executing this action: System.UnauthorizedAccessException: Access to the path 'e2fbfea6-3744-4002-90ea-cf86f2a6bf3c.xml' is denied. at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive) at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive) at Inedo.BuildMaster.Util.Files.DeleteFolder(String path) at Inedo.BuildMaster.Extensibility.Agents.LocalFileOperationsExecuter.DeleteDirectories(String[] directoryNames) at Inedo.BuildMaster.Extensibility.Agents.Local.LocalAgent.Inedo.BuildMaster.Extensibility.Agents.IFileOperationsExecuter.DeleteDirectories(String[] directoryNames) at Inedo.BuildMaster.Extensibility.Actions.RemoteCommandExecution.RemoteActionExecuterBase.remoteAction_InitializeRemoteConfiguration(Object sender, RemoteConfigurationEventArgs e) at Inedo.BuildMaster.Extensibility.Actions.RemoteActionBase.<.ctor>b__0(Object sender, EventArgs e) at Inedo.BuildMaster.Extensibility.Actions.ActionBase.ExecuteOnce()

    Any suggestions? The user the build service run under is a local administrator so I'm not sure why this is happening.



  • The GUID-based xml file is curious. Do you know where that comes from? What action is that part of?

    If the privileges are there, the the file could be locked by another process... is the app pool shut down (that shouldn't cause problems)? Is there any sort of anti-virus or scanning software that could be attempting to scan. I've seen that cause similar strange issues.

    If you provide the full execution log, there may be some additional insight to see...



  • I think I just figured it out. We have some unit tests running which are creating the GUID based XML file in question. I still have to do some more investigation.



Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation