Error with Wine on Macbook. Please help.

Questions about Wine on macOS.
Locked
raisnow
Level 1
Level 1
Posts: 8
Joined: Mon Aug 27, 2012 5:23 pm

Error with Wine on Macbook. Please help.

Post by raisnow »

Recently, I installed WINE on my Macbook. Several windows program work fine, but one windows program has never worked and always give me following message.
Could anyone tell me what's wrong? How can I fix it?

Thank you very much!!

Raisnow

Code: Select all

Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot

Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.WindowsFormsSynchronizationContext ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.ThemeEngine ---> System.NotImplementedException: The requested feature is not implemented.
  at System.Runtime.InteropServices.Marshal.ReadInt16 (System.Object ptr, Int32 ofs) [0x00000] in <filename unknown>:0 
  at System.Drawing.Font.FromLogFont (System.Object lf, IntPtr hdc) [0x00000] in <filename unknown>:0 
  at System.Drawing.Font.FromHfont (IntPtr hfont) [0x00000] in <filename unknown>:0 
  at System.Drawing.SystemFonts.get_DefaultFont () [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Theme..ctor () [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ThemeWin32Classic..ctor () [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ThemeVisualStyles..ctor () [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ThemeEngine..cctor () [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Windows.Forms.SystemInformation.get_MenuAccessKeysUnderlined () [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Control..ctor () [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:.ctor ()
  at System.Windows.Forms.WindowsFormsSynchronizationContext..cctor () [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Windows.Forms.Control..ctor () [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ScrollableControl..ctor () [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ContainerControl..ctor () [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Form..ctor () [0x00000] in <filename unknown>:0 
  at TPO.UI.ExplanationUI..ctor () [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) TPO.UI.ExplanationUI:.ctor ()
  at TPO.UI.MainForm..ctor () [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) TPO.UI.MainForm:.ctor ()
  at TPO.Program.Main () [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.WindowsFormsSynchronizationContext ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.ThemeEngine ---> System.NotImplementedException: The requested feature is not implemented.
  at System.Runtime.InteropServices.Marshal.ReadInt16 (System.Object ptr, Int32 ofs) [0x00000] in <filename unknown>:0 
  at System.Drawing.Font.FromLogFont (System.Object lf, IntPtr hdc) [0x00000] in <filename unknown>:0 
  at System.Drawing.Font.FromHfont (IntPtr hfont) [0x00000] in <filename unknown>:0 
  at System.Drawing.SystemFonts.get_DefaultFont () [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Theme..ctor () [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ThemeWin32Classic..ctor () [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ThemeVisualStyles..ctor () [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ThemeEngine..cctor () [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Windows.Forms.SystemInformation.get_MenuAccessKeysUnderlined () [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Control..ctor () [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:.ctor ()
  at System.Windows.Forms.WindowsFormsSynchronizationContext..cctor () [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Windows.Forms.Control..ctor () [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ScrollableControl..ctor () [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ContainerControl..ctor () [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Form..ctor () [0x00000] in <filename unknown>:0 
  at TPO.UI.ExplanationUI..ctor () [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) TPO.UI.ExplanationUI:.ctor ()
  at TPO.UI.MainForm..ctor () [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) TPO.UI.MainForm:.ctor ()
  at TPO.Program.Main () [0x00000] in <filename unknown>:0 
doh123
Level 8
Level 8
Posts: 1227
Joined: Tue Jul 14, 2009 1:21 pm

Re: Error with Wine on Macbook. Please help.

Post by doh123 »

did you Install Mono when it prompted? its having problems with .NET stuff. If thats not working in Mono you may try Winetricks to get MS .NET (dotnet) on. If your program is requiring .NET higher than 3.0 though, you may have serious problems or never get it to work with any current existing version of Wine.... and even 3 can be problematic.
raisnow
Level 1
Level 1
Posts: 8
Joined: Mon Aug 27, 2012 5:23 pm

Re: Error with Wine on Macbook. Please help.

Post by raisnow »

Thanks for your reply!

Could you please tell me how to try Winetricks?
I am pretty new user of Wine.

Appreciate!
raisnow
Level 1
Level 1
Posts: 8
Joined: Mon Aug 27, 2012 5:23 pm

Re: Error with Wine on Macbook. Please help.

Post by raisnow »

Thanks for your reply.
Could you please tell me how to use Winetricks to get MS .NET?
Appreciate!
raisnow
Level 1
Level 1
Posts: 8
Joined: Mon Aug 27, 2012 5:23 pm

Re: Error with Wine on Macbook. Please help.

Post by raisnow »

I found two on this website.
Could you tell me which one I should install. 2.0 or 3.0?
How can I know "operate on­ a clean 32-bit ­WINEPREFIX"
Thanks!!

1
http://appdb.winehq.org/appview.php?iVersionId=3754

.NET Framework 2.0 Service Packs installation (SP1, SP2)
­­­­Make sure you operate on­ a clean 32-bit ­WINEPREFIX (~/.wine)!

­Installation by using 'winetricks' script

Use this option for easy installation of .NET 2.0 Framework Service Pack(s).

Winetricks will take care of all needed installation prerequisites and work around some problems (.NET 2.0 already installed, Service Packs already applied...).
$ wget http://winetricks.googlecode.com/svn/tr ... winetricks

­

.NET Framework 2.0 Service Pack 1:
$ bash winetricks dotnet20sp1

.NET Framework 2.0 Service Pack 2: ­
$ bash winetricks dotnet20sp2

There is no need to manually install .NET Framework 2.0 be­­fore. Winetricks does this as part of service pack install!­

2
http://appdb.winehq.org/objectManager.p ... n&iId=9828
Microsoft .NET Framework 3.0 Service Packs (SP1, SP2) installation
­­Make sure you operate on­ a clean 32-bit ­WINEPREFIX (~/.wine)!

­Installation by using 'winetricks' script

Use this option for easy installation of .NET 3.0 Framework Service Pack(s).

­Winetricks will take care of all needed installation prerequisites and work around some problems (.NET 3­.0 already installed, Service Packs already applied...).
$ wget http://winetricks.googlecode.com/svn/tr ... winetricks

­.NET Framework 3.0 Service Pack 1:
$ bash winetricks dotnet30sp1

There is no need to manually install .NET Framework 3.0 be­­fore. Winetricks does this as part of service pack install!­­

.NET Framework 3.0 Service Pack 2:

There is no separate installer for this service pack. It is part of .NET 3.5 Framework Service Pack 1 installer. Refer to .NET 3.5 Framework appdb entry. ­
raisnow
Level 1
Level 1
Posts: 8
Joined: Mon Aug 27, 2012 5:23 pm

Re: Error with Wine on Macbook. Please help.

Post by raisnow »

This doesn't work:
wget http://winetricks.googlecode.com/svn/tr ... winetricks
-bash: wget: command not found
doh123
Level 8
Level 8
Posts: 1227
Joined: Tue Jul 14, 2009 1:21 pm

Re: Error with Wine on Macbook. Please help.

Post by doh123 »

macs don't come with wget by default... you could use the curl command, its similar... but I usually just save it right from a browser instead of downloading via command line.

What version of .NET to try would depend on what your program requires. The higher versions you get of .NET the more problems your going to have right now in Wine, so use the exact version the program needs. If it needs something like 4 or 4.5, don't count on getting it to work anytime soon. If it only needs 2, then it will probably work ok.
raisnow
Level 1
Level 1
Posts: 8
Joined: Mon Aug 27, 2012 5:23 pm

Re: Error with Wine on Macbook. Please help.

Post by raisnow »

Thanks for your reply.

I think I uninstalled mono according this page: http://appdb.winehq.org/appview.php?iVersionId=3754

How can I install .NET Framework?

Thanks!
Locked