thpatch / thcrap

Touhou Community Reliant Automatic Patcher
https://www.thpatch.net
The Unlicense
551 stars 41 forks source link

Error while trying to run thcrap with wine #194

Open wdmvv opened 2 years ago

wdmvv commented 2 years ago

using latest release - https://github.com/thpatch/thcrap/releases/tag/2022-08-17

wine version - 6.0.3 dotnet 461 (installed with script in /bin/scripts)

wine thcrap.exe leads to

0230:err:mscoree:mono_assembly_preload_hook_fn Failed to load L"C:\\windows\\Microsoft.NET\\assembly\\GAC_64\\PresentationCore\\v4.0_4.0.0.0__31bf3856ad364e35\\PresentationCore.dll", status=3

Unhandled Exception:
System.TypeInitializationException: The type initializer for 'System.Windows.Application' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Windows.Navigation.BaseUriHelper' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Uri' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.UriParser' threw an exception. ---> System.MissingMethodException: Method not found: bool System.Runtime.Versioning.BinaryCompatibility.get_TargetsAtLeast_Desktop_V4_5()
   --- End of inner exception stack trace ---
  at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
  at System.Uri..cctor () [0x00117] in <c251657a892848699043ad3913d9e471>:0 
   --- End of inner exception stack trace ---
  at System.Windows.Navigation.BaseUriHelper..cctor () [0x00000] in <026f8b89478e44f69208fca17e99e530>:0 
   --- End of inner exception stack trace ---
  at System.Windows.Application.ApplicationInit () [0x0000a] in <fc6817682acc449bb84974d62f4c4342>:0 
  at System.Windows.Application..cctor () [0x0002e] in <fc6817682acc449bb84974d62f4c4342>:0 
   --- End of inner exception stack trace ---
  at thcrap_configure_v3.App..ctor () [0x00000] in <f29aa71e203045e2b9dc1245415aca32>:0 
  at thcrap_configure_v3.App.Main () [0x00000] in <f29aa71e203045e2b9dc1245415aca32>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'System.Windows.Application' threw an exception. ---> System.Type
InitializationException: The type initializer for 'System.Windows.Navigation.BaseUriHelper' threw an exception. ---> System.TypeInitializationException: The type
 initializer for 'System.Uri' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.UriParser' threw an exception. ---> S
ystem.MissingMethodException: Method not found: bool System.Runtime.Versioning.BinaryCompatibility.get_TargetsAtLeast_Desktop_V4_5()
   --- End of inner exception stack trace ---
  at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
  at System.Uri..cctor () [0x00117] in <c251657a892848699043ad3913d9e471>:0
   --- End of inner exception stack trace ---
  at System.Windows.Navigation.BaseUriHelper..cctor () [0x00000] in <026f8b89478e44f69208fca17e99e530>:0
   --- End of inner exception stack trace ---
  at System.Windows.Application.ApplicationInit () [0x0000a] in <fc6817682acc449bb84974d62f4c4342>:0
  at System.Windows.Application..cctor () [0x0002e] in <fc6817682acc449bb84974d62f4c4342>:0
   --- End of inner exception stack trace ---
  at thcrap_configure_v3.App..ctor () [0x00000] in <f29aa71e203045e2b9dc1245415aca32>:0
  at thcrap_configure_v3.App.Main () [0x00000] in <f29aa71e203045e2b9dc1245415aca32>:0

same log in txt