This is new.
Got in this morning and refreshed my PSU 2.10.0 tab, and was met with the Azure “ASP.NET Core app failed to start” 500.30 error.
The stack trace in the event log looks like this:
Application: w3wp.exe
CoreCLR Version: 5.0.921.35908
.NET Version: 5.0.9
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.IOException: The process cannot access the file 'D:\home\data\PowershellUniversal\database-log.db' because it is being used by another process.
at System.IO.FileSystem.DeleteFile(String fullPath)
at System.IO.File.Delete(String path)
at LiteDB.Engine.FileStreamFactory.Delete()
at LiteDB.Engine.DiskService.Dispose()
at LiteDB.Engine.LiteEngine.Dispose(Boolean disposing)
at LiteDB.Engine.LiteEngine.Dispose()
at LiteDB.LiteDatabase.Dispose(Boolean disposing)
at LiteDB.LiteDatabase.Dispose()
at LiteDB.LiteRepository.Dispose(Boolean disposing)
at LiteDB.LiteRepository.Dispose()
at UniversalAutomation.LiteDBv5Database.Dispose() in D:\a\universal\universal\src\UniversalAutomation.LiteDBv5\LiteDBDatabase.cs:line 172
at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.DisposeAsync()
Nothing else should be accessing that file. I’ll try updating to the latest nightly but thought you should be aware of this, @adam.
Product: PowerShell Universal
Version: 2.10.0