Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled Exception in loadTask (Window_Loaded - Main Application) #160

Closed
jceddy opened this issue Feb 23, 2020 · 1 comment
Closed

Unhandled Exception in loadTask (Window_Loaded - Main Application) #160

jceddy opened this issue Feb 23, 2020 · 1 comment
Labels
automatic Automatically generated by the application

Comments

@jceddy
Copy link
Owner

jceddy commented Feb 23, 2020

An unhandled exception was detected.

Exception:

System.AggregateException: One or more errors occurred. ---> System.IO.IOException: The process cannot access the file 'C:\Users\Petr\AppData\LocalLow\DailyArena\DailyArenaDeckAdvisor\database.json' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
at DailyArena.Common.Core.Database.CardDatabase.UpdateCardDatabase()
at DailyArena.Common.Core.Database.CardDatabase.Initialize(Boolean useProtectedData)
at DailyArena.DeckAdvisor.MainWindow.<Window_Loaded>b__94_0()
at System.Threading.Tasks.Task.Execute()
--- End of inner exception stack trace ---
---> (Inner Exception #0) System.IO.IOException: The process cannot access the file 'C:\Users\Petr\AppData\LocalLow\DailyArena\DailyArenaDeckAdvisor\database.json' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
at DailyArena.Common.Core.Database.CardDatabase.UpdateCardDatabase()
at DailyArena.Common.Core.Database.CardDatabase.Initialize(Boolean useProtectedData)
at DailyArena.DeckAdvisor.MainWindow.<Window_Loaded>b__94_0()
at System.Threading.Tasks.Task.Execute()<---

log2020022312_001.txt

output_log.txt

@jceddy jceddy added the automatic Automatically generated by the application label Feb 23, 2020
@jceddy
Copy link
Owner Author

jceddy commented Feb 24, 2020

There is already a separate issue for this: #118

@jceddy jceddy closed this as completed Feb 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automatic Automatically generated by the application
Projects
None yet
Development

No branches or pull requests

1 participant