question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't Run With MONO on Linux

See original GitHub issue

I can’t make the Server works on Linux, tried with Kali Linux and Arch Linux, both with full wine and mono installed. Always crash on the startup (Certificate Wizard) when I push on “CREATE” it freeze for a while then crash


`libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: cHRM chunk does not match sRGB
System.TypeInitializationException: The type initializer for 'Quasar.Common.Helpers.PlatformHelper' threw an exception. ---> System.NotImplementedException: The method or operation is not implemented.
  at System.Management.ManagementObjectSearcher.Get () [0x00000] in <78a82c7c9d664aec8255221b2e9794bb>:0 
  at (wrapper remoting-invoke-with-check) System.Management.ManagementObjectSearcher.Get()
  at Quasar.Common.Helpers.PlatformHelper..cctor () [0x0011e] in <2c0ab845e2ef456f86858282a45faa7b>:0 
   --- End of inner exception stack trace ---
  at Quasar.Server.Controls.AeroListView.OnHandleCreated (System.EventArgs e) [0x00007] in <d9b1a5ca802548669f52c35b71319282>:0 
  at System.Windows.Forms.Control.WmCreate (System.Windows.Forms.Message& m) [0x00000] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x0021c] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.ListView.WndProc (System.Windows.Forms.Message& m) [0x00048] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x0000b] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.NativeWindow.WndProc (System.IntPtr hWnd, System.Windows.Forms.Msg msg, System.IntPtr wParam, System.IntPtr lParam) [0x00085] in <28e46de2d20c496895000ef0abfc2106>:0 
System.PlatformNotSupportedException: Operation is not supported on this platform.
  at Quasar.Server.Helper.CertificateHelper.CreateCertificateAuthority (System.String caName, System.Int32 keyStrength) [0x000e9] in <d9b1a5ca802548669f52c35b71319282>:0 
  at Quasar.Server.Forms.FrmCertificate.btnCreate_Click (System.Object sender, System.EventArgs e) [0x00000] in <d9b1a5ca802548669f52c35b71319282>:0 
  at System.Windows.Forms.Control.OnClick (System.EventArgs e) [0x00019] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Button.OnClick (System.EventArgs e) [0x00011] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.ButtonBase.OnKeyUp (System.Windows.Forms.KeyEventArgs kevent) [0x00017] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control.ProcessKeyEventArgs (System.Windows.Forms.Message& m) [0x00082] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control.ProcessKeyMessage (System.Windows.Forms.Message& m) [0x00018] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control.WmKeys (System.Windows.Forms.Message& m) [0x00000] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00244] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.ButtonBase.WndProc (System.Windows.Forms.Message& m) [0x00037] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Button.WndProc (System.Windows.Forms.Message& m) [0x00000] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x0000b] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.NativeWindow.WndProc (System.IntPtr hWnd, System.Windows.Forms.Msg msg, System.IntPtr wParam, System.IntPtr lParam) [0x00085] in <28e46de2d20c496895000ef0abfc2106>:0 
System.NullReferenceException: Object reference not set to an instance of an object
  at Quasar.Server.Forms.FrmMain.FrmMain_FormClosing (System.Object sender, System.Windows.Forms.FormClosingEventArgs e) [0x00006] in <d9b1a5ca802548669f52c35b71319282>:0 
  at System.Windows.Forms.Form.OnFormClosing (System.Windows.Forms.FormClosingEventArgs e) [0x00019] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Form.FireClosingEvents (System.Windows.Forms.CloseReason reason, System.Boolean cancel) [0x0001b] in <28e46de2d20c496895000ef0abfc2106>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Form.FireClosingEvents(System.Windows.Forms.CloseReason,bool)
  at System.Windows.Forms.Application.Exit (System.ComponentModel.CancelEventArgs e) [0x0002e] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Application.Exit () [0x00005] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Application.OnThreadException (System.Exception t) [0x0005e] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.NativeWindow.OnThreadException (System.Exception e) [0x00000] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.NativeWindow.WndProc (System.IntPtr hWnd, System.Windows.Forms.Msg msg, System.IntPtr wParam, System.IntPtr lParam) [0x00196] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.XplatUIX11.DispatchMessage (System.Windows.Forms.MSG& msg) [0x00000] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.XplatUI.DispatchMessage (System.Windows.Forms.MSG& msg) [0x00000] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Application.RunLoop (System.Boolean Modal, System.Windows.Forms.ApplicationContext context) [0x002ff] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Form.ShowDialog (System.Windows.Forms.IWin32Window owner) [0x001b7] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Form.ShowDialog () [0x00000] in <28e46de2d20c496895000ef0abfc2106>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Form.ShowDialog()
  at Quasar.Server.Forms.FrmMain.InitializeServer () [0x00012] in <d9b1a5ca802548669f52c35b71319282>:0 
  at Quasar.Server.Forms.FrmMain.FrmMain_Load (System.Object sender, System.EventArgs e) [0x00000] in <d9b1a5ca802548669f52c35b71319282>:0 
  at System.Windows.Forms.Form.OnLoad (System.EventArgs e) [0x0001f] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Form.OnLoadInternal (System.EventArgs e) [0x00023] in <28e46de2d20c496895000ef0abfc2106>:0 
System.NullReferenceException: Object reference not set to an instance of an object
  at Quasar.Server.Forms.FrmMain.FrmMain_FormClosing (System.Object sender, System.Windows.Forms.FormClosingEventArgs e) [0x00006] in <d9b1a5ca802548669f52c35b71319282>:0 
  at System.Windows.Forms.Form.OnFormClosing (System.Windows.Forms.FormClosingEventArgs e) [0x00019] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Form.FireClosingEvents (System.Windows.Forms.CloseReason reason, System.Boolean cancel) [0x0001b] in <28e46de2d20c496895000ef0abfc2106>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Form.FireClosingEvents(System.Windows.Forms.CloseReason,bool)
  at System.Windows.Forms.Application.Exit (System.ComponentModel.CancelEventArgs e) [0x0002e] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Application.Exit () [0x00005] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Application.OnThreadException (System.Exception t) [0x0005e] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Form.OnLoadInternal (System.EventArgs e) [0x0002a] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Form.OnCreateControl () [0x00024] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control.CreateControl () [0x00082] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control.WmShowWindow (System.Windows.Forms.Message& m) [0x00036] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00214] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.ContainerControl.WndProc (System.Windows.Forms.Message& m) [0x00027] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Form.WndProc (System.Windows.Forms.Message& m) [0x00166] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x0000b] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.NativeWindow.WndProc (System.IntPtr hWnd, System.Windows.Forms.Msg msg, System.IntPtr wParam, System.IntPtr lParam) [0x00085] in <28e46de2d20c496895000ef0abfc2106>:0 

Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object
  at Quasar.Server.Forms.FrmMain.FrmMain_FormClosing (System.Object sender, System.Windows.Forms.FormClosingEventArgs e) [0x00006] in <d9b1a5ca802548669f52c35b71319282>:0 
  at System.Windows.Forms.Form.OnFormClosing (System.Windows.Forms.FormClosingEventArgs e) [0x00019] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Form.FireClosingEvents (System.Windows.Forms.CloseReason reason, System.Boolean cancel) [0x0001b] in <28e46de2d20c496895000ef0abfc2106>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Form.FireClosingEvents(System.Windows.Forms.CloseReason,bool)
  at System.Windows.Forms.Application.Exit (System.ComponentModel.CancelEventArgs e) [0x0002e] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Application.Exit () [0x00005] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Application.OnThreadException (System.Exception t) [0x0005e] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.NativeWindow.OnThreadException (System.Exception e) [0x00000] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.NativeWindow.WndProc (System.IntPtr hWnd, System.Windows.Forms.Msg msg, System.IntPtr wParam, System.IntPtr lParam) [0x00196] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.XplatUIX11.SendMessage (System.IntPtr hwnd, System.Windows.Forms.Msg message, System.IntPtr wParam, System.IntPtr lParam) [0x000d5] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.XplatUIX11.MapWindow (System.Windows.Forms.Hwnd hwnd, System.Windows.Forms.WindowType windows) [0x0003d] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.XplatUIX11.CreateWindow (System.Windows.Forms.CreateParams cp) [0x00521] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.XplatUI.CreateWindow (System.Windows.Forms.CreateParams cp) [0x00000] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.NativeWindow.CreateHandle (System.Windows.Forms.CreateParams cp) [0x00009] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control.CreateHandle () [0x00031] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Form.CreateHandle () [0x00000] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control.CreateControl () [0x00039] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control.SetVisibleCore (System.Boolean value) [0x00057] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Form.SetVisibleCore (System.Boolean value) [0x00065] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control.set_Visible (System.Boolean value) [0x00009] in <28e46de2d20c496895000ef0abfc2106>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control.set_Visible(bool)
  at System.Windows.Forms.Application.RunLoop (System.Boolean Modal, System.Windows.Forms.ApplicationContext context) [0x00059] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext context) [0x00011] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm) [0x00006] in <28e46de2d20c496895000ef0abfc2106>:0 
  at Quasar.Server.Program.Main () [0x0001a] in <d9b1a5ca802548669f52c35b71319282>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
  at Quasar.Server.Forms.FrmMain.FrmMain_FormClosing (System.Object sender, System.Windows.Forms.FormClosingEventArgs e) [0x00006] in <d9b1a5ca802548669f52c35b71319282>:0 
  at System.Windows.Forms.Form.OnFormClosing (System.Windows.Forms.FormClosingEventArgs e) [0x00019] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Form.FireClosingEvents (System.Windows.Forms.CloseReason reason, System.Boolean cancel) [0x0001b] in <28e46de2d20c496895000ef0abfc2106>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Form.FireClosingEvents(System.Windows.Forms.CloseReason,bool)
  at System.Windows.Forms.Application.Exit (System.ComponentModel.CancelEventArgs e) [0x0002e] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Application.Exit () [0x00005] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Application.OnThreadException (System.Exception t) [0x0005e] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.NativeWindow.OnThreadException (System.Exception e) [0x00000] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.NativeWindow.WndProc (System.IntPtr hWnd, System.Windows.Forms.Msg msg, System.IntPtr wParam, System.IntPtr lParam) [0x00196] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.XplatUIX11.SendMessage (System.IntPtr hwnd, System.Windows.Forms.Msg message, System.IntPtr wParam, System.IntPtr lParam) [0x000d5] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.XplatUIX11.MapWindow (System.Windows.Forms.Hwnd hwnd, System.Windows.Forms.WindowType windows) [0x0003d] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.XplatUIX11.CreateWindow (System.Windows.Forms.CreateParams cp) [0x00521] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.XplatUI.CreateWindow (System.Windows.Forms.CreateParams cp) [0x00000] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.NativeWindow.CreateHandle (System.Windows.Forms.CreateParams cp) [0x00009] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control.CreateHandle () [0x00031] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Form.CreateHandle () [0x00000] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control.CreateControl () [0x00039] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control.SetVisibleCore (System.Boolean value) [0x00057] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Form.SetVisibleCore (System.Boolean value) [0x00065] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control.set_Visible (System.Boolean value) [0x00009] in <28e46de2d20c496895000ef0abfc2106>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control.set_Visible(bool)
  at System.Windows.Forms.Application.RunLoop (System.Boolean Modal, System.Windows.Forms.ApplicationContext context) [0x00059] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext context) [0x00011] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm) [0x00006] in <28e46de2d20c496895000ef0abfc2106>:0 
  at Quasar.Server.Program.Main () [0x0001a] in <d9b1a5ca802548669f52c35b71319282>:0 

Issue Analytics

  • State:open
  • Created 8 months ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
BurntDogcommented, Jan 14, 2023

Never design for Linux and wine is very limited. Plenty of good open source Linux out there.

1reaction
ErickDaCodercommented, Jan 13, 2023

it literally says that the platform isn’t implemented

Read more comments on GitHub >

github_iconTop Results From Across the Web

Guide:Running Mono Applications
Basic usage. The normal way to run an application you have compiled with Mono would be to invoke it through the Mono runtime,...
Read more >
Mono won't run with script or sudo - linux
Whenever I try run a program like this "sudo mono Program.exe" or from a bash script. I get the error: mono: command not...
Read more >
Monodevelop doesn't run the project. When I try to ...
I added /opt/mono/bin to the PATH , and restarted my shell. The mono-opt package should arguably do this, but it does not. In...
Read more >
Mono Application Compiled Under Linux Does Not Run in ...
1 Answer 1 ... Since you are using Mono.Unix.Catalog then your project should be referencing the Mono.Posix assembly. The problem is likely to...
Read more >
Cannot execute programs from MonoDevelop
A message at the top of MonoDevelop should appear that says: Build successful. The way to run it is to select Run ->...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found