Errors when running program (FreeSCAN)

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
twxtf2
Level 1
Level 1
Posts: 6
Joined: Sun May 14, 2017 7:43 am

Errors when running program (FreeSCAN)

Post by twxtf2 »

I'm trying to get FreeSCAN to work.
Their web site is https://sites.google.com/site/sixspotsoftware/downloads
It installs with no errors but won't run.
If I run it in a terminal I get a lot of errors:

Code: Select all

~/.wine/drive_c/Program Files/FreeSCAN $ wine FreeSCAN.exe

Unhandled Exception:
System.TypeLoadException: Could not load type of field 'FreeSCAN.lblSiteNote:_Label27' (179) due to: Could not load file or assembly 'Microsoft.VisualBasic.Compatibility, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. assembly:Microsoft.VisualBasic.Compatibility, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a type:<unknown type> member:<none>
  at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00018] in <1c90db0b17cb4b1e827d577d0607b212>:0 
  at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic) [0x000a8] in <1c90db0b17cb4b1e827d577d0607b212>:0 
  at System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x00009] in <1c90db0b17cb4b1e827d577d0607b212>:0 
  at System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x00027] in <1c90db0b17cb4b1e827d577d0607b212>:0 
  at System.Activator.CreateInstance[T] () [0x00015] in <1c90db0b17cb4b1e827d577d0607b212>:0 
  at FreeSCAN.My.MyProject+MyForms.Create__Instance__[T] (T Instance) [0x0006c] in <5785efc31ab2444e8840b6010879c762>:0 
  at FreeSCAN.My.MyProject+MyForms.get_lblSiteNote () [0x00000] in <5785efc31ab2444e8840b6010879c762>:0 
  at FreeSCAN.My.MyApplication.OnCreateMainForm () [0x00006] in <5785efc31ab2444e8840b6010879c762>:0 
  at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun () [0x00010] in <d77c0589b3c84548bd2e5f56ab7adf43>:0 
  at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run (System.String[] commandLine) [0x00001] in <d77c0589b3c84548bd2e5f56ab7adf43>:0 
  at FreeSCAN.My.MyApplication.Main (System.String[] Args) [0x00012] in <5785efc31ab2444e8840b6010879c762>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not load type of field 'FreeSCAN.lblSiteNote:_Label27' (179) due to: Could not load file or assembly 'Microsoft.VisualBasic.Compatibility, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. assembly:Microsoft.VisualBasic.Compatibility, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a type:<unknown type> member:<none>
  at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00018] in <1c90db0b17cb4b1e827d577d0607b212>:0 
  at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic) [0x000a8] in <1c90db0b17cb4b1e827d577d0607b212>:0 
  at System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x00009] in <1c90db0b17cb4b1e827d577d0607b212>:0 
  at System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x00027] in <1c90db0b17cb4b1e827d577d0607b212>:0 
  at System.Activator.CreateInstance[T] () [0x00015] in <1c90db0b17cb4b1e827d577d0607b212>:0 
  at FreeSCAN.My.MyProject+MyForms.Create__Instance__[T] (T Instance) [0x0006c] in <5785efc31ab2444e8840b6010879c762>:0 
  at FreeSCAN.My.MyProject+MyForms.get_lblSiteNote () [0x00000] in <5785efc31ab2444e8840b6010879c762>:0 
  at FreeSCAN.My.MyApplication.OnCreateMainForm () [0x00006] in <5785efc31ab2444e8840b6010879c762>:0 
  at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun () [0x00010] in <d77c0589b3c84548bd2e5f56ab7adf43>:0 
  at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run (System.String[] commandLine) [0x00001] in <d77c0589b3c84548bd2e5f56ab7adf43>:0 
  at FreeSCAN.My.MyApplication.Main (System.String[] Args) [0x00012] in <5785efc31ab2444e8840b6010879c762>:0 
~/.wine/drive_c/Program Files/FreeSCAN $
I just upgraded to winehq-stable 3.0 but I was never able to get it to run under older versions back to 1.6 either.
qwertymnb
Level 4
Level 4
Posts: 236
Joined: Sun Jan 17, 2016 4:36 pm

Re: Errors when running program (FreeSCAN)

Post by qwertymnb »

Try using native dotnet (not sure what version you need, maybe winetricks dotnet462 will do )
User avatar
DarkShadow44
Level 8
Level 8
Posts: 1207
Joined: Tue Nov 22, 2016 5:39 pm

Re: Errors when running program (FreeSCAN)

Post by DarkShadow44 »

That's bug 37050.
Yes, native .NET is a workaround, "winetricks -q dotnet45" works just fine.
Locked