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. Could not find file '...\gameInfo.db' #46

Closed
takano32 opened this issue May 26, 2023 Discussed in #45 · 3 comments
Closed

"Unhandled exception. Could not find file '...\gameInfo.db' #46

takano32 opened this issue May 26, 2023 Discussed in #45 · 3 comments

Comments

@takano32
Copy link
Collaborator

Discussed in #45

Originally posted by RealPhali May 20, 2023
Hi there. I keep getting the same error every time I try to run this:

Unhandled exception. System.IO.FileNotFoundException: Could not find file 'c:\Roms\PS1\Resources\gameInfo.db'.
File name: 'c:\Roms\PS1\Resources\gameInfo.db'
   at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
   at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
   at System.IO.Strategies.FileStreamHelpers.ChooseStrategyCore(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
   at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize)
   at System.IO.StreamReader.ValidateArgsAndOpenPath(String path, Encoding encoding, Int32 bufferSize)
   at System.IO.File.InternalReadAllLines(String path, Encoding encoding)
   at System.IO.File.ReadAllLines(String path)
   at Popstation.Database.GameDB..ctor(String path)
   at PSXPackager.Program.ProcessFiles(ProcessOptions options)
   at PSXPackager.Program.<>c__DisplayClass2_0.<Main>b__0(Options o)
   at CommandLine.ParserResultExtensions.WithParsed[T](ParserResult`1 result, Action`1 action)
   at PSXPackager.Program.Main(String[] args)

I've reinstalled NET Runtime, both 6 and 7, and I have no idea where I'm doing something wrong.

@fhcat
Copy link

fhcat commented Jul 6, 2023

I am getting the same error. How did you resolve it?

@matiaslauriti
Copy link

I am getting the same error. How did you resolve it?

I just got the same error, download it from the previous version. The current release has files missing, even the GUI was not working, but using the previous version, the GUI worked again and the CLI too

@RupertAvery
Copy link
Owner

There seems to be an issue with dotnet publish for the windows builds. The database file isn't included in the output. I'll include the file in the build manually for now.

RupertAvery added a commit that referenced this issue Jul 9, 2023
Do a case-insensitive search for resource files -  #48
Return a non-zero error when exiting after an error occurs - #49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants