Closed Thom2503 closed 1 year ago
Vul hier jou Iban in.
>NL20INGB0001234567
Betaling voltooid
Unhandled exception. System.TypeInitializationException: The type initializer for 'Gdip' threw an exception.
---> System.DllNotFoundException: Unable to load shared library 'libgdiplus' or one of its dependencies. In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES environment variable: dlopen(liblibgdiplus, 0x0001): tried: 'liblibgdiplus' (no such file), '/usr/local/lib/liblibgdiplus' (no such file), '/usr/lib/liblibgdiplus' (no such file), '/Users/thom2503/Documents/School/Leerjaar_1/semester_2/project/ProjectB/liblibgdiplus' (no such file)
at System.Drawing.SafeNativeMethods.Gdip.GdiplusStartup(IntPtr& token, StartupInput& input, StartupOutput& output)
at System.Drawing.SafeNativeMethods.Gdip..cctor()
--- End of inner exception stack trace ---
at System.Drawing.SafeNativeMethods.Gdip.GdipCreateBitmapFromScan0(Int32 width, Int32 height, Int32 stride, Int32 format, HandleRef scan0, IntPtr& bitmap)
at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)
at QRCoder.QRCode.GetGraphic(Int32 pixelsPerModule, Color darkColor, Color lightColor, Boolean drawQuietZones)
at QRCoder.QRCode.GetGraphic(Int32 pixelsPerModule)
at MailLogic.GenerateQRCode() in /Users/thom2503/Documents/School/Leerjaar_1/semester_2/project/ProjectB/Logic/MailLogic.cs:line 134
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 127
at CombiDeal.Start() in /Users/thom2503/Documents/School/Leerjaar_1/semester_2/project/ProjectB/Presentation/CombiDeals.cs:line 34
at Auditorium.ChooseCombi() in /Users/thom2503/Documents/School/Leerjaar_1/semester_2/project/ProjectB/Presentation/Auditorium.cs:line 99
Wat grotere error, waar duidelijk het fout gaat bij de System.Drawing.Bitmap ding
Je moet eigenlijk SkiaSharp gebruiken want nu krijg je een exception omdat hij een library niet kan vinden maar dat is de System.Drawing.Bitmap die na de laatste versie van .net 6 er uit is gehaald op alle platforms behalve windows. Dus mac en linux krijgen nu dit na een reservering: