Product(s): | Bentley SewerGEMS, WaterGEMS, WaterCAD, StormCAD, SewerCAD, Hammer, CivilStorm |
Version(s): | V8i, Connect Edition |
Area: | Output and Reporting |
While computing the model below error is seen, how to resolve this?
System.IO.IOException: The process cannot access the file because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalMove(String sourceFileName, String destFileName, Boolean checkHost)
at Haestad.Framework.Application.DomainDatabaseFileWithResults.MoveCalculationFiles(String oldDatabasePathAndFileName, String newDatabasePathAndFileName, Boolean doMoveInsteadOfCopy)
at Haestad.Framework.Application.DomainDatabaseFileWithResults.Close()
at Haestad.Framework.Application.ProjectBase.CloseBasic()
at Haestad.Framework.Application.ProjectBase.Close(ProjectProperties app)
at Haestad.Framework.Application.ProjectManagerBase.HandleApplicationStopped(ProjectProperties app)
at Haestad.Framework.Application.ProjectApplicationModelBase.Stop(ProjectProperties app)
This was a somewhat common issue and it can happen in some cases when the program does not properly close out of an output file.
When you re-compute, the output files will be cleared out, so they are re-written when the calculation completes.
Solution is to either re-compute or try clearing out your Windows temporary folder. First close out of SewerGEMS / WaterGEMS, then type %temp% in the Windows Explorer address bar, press enter, browse to the \Bentley\SewerGEMS\ folder and delete all files. We've made improvements to minimize the occurrence of this issue and will be making even more improvements in the futures versions.
Otherwise, contact Bentley Technical Support with a copy of the model for review.
Error "System.Unauthorized.AccessException: Access to the path "<FilePathLocation>" is denied"