TalAloni / iSCSIConsole

User-Mode iSCSI Target Server
GNU Lesser General Public License v3.0
195 stars 57 forks source link

How to run in linux? #11

Closed want20 closed 1 year ago

want20 commented 1 year ago

I want to run this program in ubuntu. Running after installing mono, it doesn't work!

want20 commented 1 year ago

the error: [ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentException: A null reference or invalid value was found [GDI+ status: InvalidParameter] at System.Drawing.GDIPlus.CheckStatus (System.Drawing.Status status) [0x00098] in <3403ef0f91dd4bb1a52eecc5c4cc7a76>:0 at System.Drawing.Bitmap..ctor (System.Int32 width, System.Int32 height, System.Drawing.Imaging.PixelFormat format) [0x00016] in <3403ef0f91dd4bb1a52eecc5c4cc7a76>:0 at System.Drawing.Bitmap..ctor (System.Drawing.Image original, System.Int32 width, System.Int32 height) [0x00000] in <3403ef0f91dd4bb1a52eecc5c4cc7a76>:0 at System.Drawing.Bitmap..ctor (System.Drawing.Image original, System.Drawing.Size newSize) [0x00010] in <3403ef0f91dd4bb1a52eecc5c4cc7a76>:0 at (wrapper remoting-invoke-with-check) System.Drawing.Bitmap..ctor(System.Drawing.Image,System.Drawing.Size) at System.Windows.Forms.XplatUIX11.DefineCursor (System.Drawing.Bitmap bitmap, System.Drawing.Bitmap mask, System.Drawing.Color cursor_pixel, System.Drawing.Color mask_pixel, System.Int32 xHotSpot, System.Int32 yHotSpot) [0x00045] in <28e46de2d20c496895000ef0abfc2106>:0 at System.Windows.Forms.XplatUI.DefineCursor (System.Drawing.Bitmap bitmap, System.Drawing.Bitmap mask, System.Drawing.Color cursor_pixel, System.Drawing.Color mask_pixel, System.Int32 xHotSpot, System.Int32 yHotSpot) [0x00000] in <28e46de2d20c496895000ef0abfc2106>:0 at System.Windows.Forms.Cursor.CreateCursor (System.IO.Stream stream) [0x00058] in <28e46de2d20c496895000ef0abfc2106>:0 at System.Windows.Forms.Cursor..ctor (System.Type type, System.String resource) [0x0001e] in <28e46de2d20c496895000ef0abfc2106>:0 at System.Windows.Forms.Cursors.get_SizeNWSE () [0x00014] in <28e46de2d20c496895000ef0abfc2106>:0 at System.Windows.Forms.SizeGrip..ctor (System.Windows.Forms.Control CapturedControl) [0x00006] in <28e46de2d20c496895000ef0abfc2106>:0 at (wrapper remoting-invoke-with-check) System.Windows.Forms.SizeGrip..ctor(System.Windows.Forms.Control) at System.Windows.Forms.ScrollableControl.CreateScrollbars () [0x000c2] in <28e46de2d20c496895000ef0abfc2106>:0 at System.Windows.Forms.ScrollableControl..ctor () [0x000b0] in <28e46de2d20c496895000ef0abfc2106>:0 at System.Windows.Forms.ContainerControl..ctor () [0x0000e] in <28e46de2d20c496895000ef0abfc2106>:0 at System.Windows.Forms.Form..ctor () [0x00012] in <28e46de2d20c496895000ef0abfc2106>:0 at ISCSIConsole.MainForm..ctor () [0x00021] in <3fdb4468d87f462eb3504a3adf7fcf1f>:0 at (wrapper remoting-invoke-with-check) ISCSIConsole.MainForm..ctor() at ISCSIConsole.Program.Main (System.String[] args) [0x000fe] in <3fdb4468d87f462eb3504a3adf7fcf1f>:0

TalAloni commented 1 year ago

I have tested this on several Mono versions a while ago, including Mono 3.2.3. You did not specify which Mono version you used, I suggest trying earlier ones - perhaps there were breaking changes.