Peredurz / ProjectB

3 stars 0 forks source link

Als er geen QR code png is krijg je unhandled exception. #93

Closed Thom2503 closed 1 year ago

Thom2503 commented 1 year ago

Ik had merge problemen en had daarbij de qr code verwijderd om te kijken of dat een verschil maakte maar omdat ik die niet meer heb krijg ik na het betalen een unhandled exception.

Unhandled exception. System.IO.DirectoryNotFoundException: Could not find a part of the path '/Users/thom2503/Documents/School/Leerjaar_1/semester_2/project/ProjectB/DataDocs/QrTicket/qr-code.png'.
   at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
   at Interop.CheckIo(Error error, String path, Boolean isDirectory, Func`2 errorRewriter)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
   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.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize)
   at System.IO.FileStream..ctor(String path, FileMode mode)
   at MailLogic.GenerateQRCode() in /Users/thom2503/Documents/School/Leerjaar_1/semester_2/project/ProjectB/Logic/MailLogic.cs:line 162
   at Payment.Start() in /Users/thom2503/Documents/School/Leerjaar_1/semester_2/project/ProjectB/Presentation/Payment.cs:line 18
   at Auditorium.ChooseParkingTicket() in /Users/thom2503/Documents/School/Leerjaar_1/semester_2/project/ProjectB/Presentation/Auditorium.cs:line 174
   at Auditorium.ChooseCombi() in /Users/thom2503/Documents/School/Leerjaar_1/semester_2/project/ProjectB/Presentation/Auditorium.cs:line 150
   at Auditorium.ChooseChair() in /Users/thom2503/Documents/School/Leerjaar_1/semester_2/project/ProjectB/Presentation/Auditorium.cs:line 136
   at Auditorium.Start() in /Users/thom2503/Documents/School/Leerjaar_1/semester_2/project/ProjectB/Presentation/Auditorium.cs:line 23
   at Movie.ChooseMovie(Int32 userMovieID) in /Users/thom2503/Documents/School/Leerjaar_1/semester_2/project/ProjectB/Presentation/Movie.cs:line 75
   at Movie.Start() in /Users/thom2503/Documents/School/Leerjaar_1/semester_2/project/ProjectB/Presentation/Movie.cs:line 18
   at Menu.Start() in /Users/thom2503/Documents/School/Leerjaar_1/semester_2/project/ProjectB/Presentation/Menu.cs:line 96
   at Program.<Main>$(String[] args) in /Users/thom2503/Documents/School/Leerjaar_1/semester_2/project/ProjectB/Program.cs:line 3