CrtImplementationDetails>.ModuleLoadException: The C++ module failed to load during appdomain initialization.

Questions about Wine on Linux
Locked
HSLiam
Newbie
Newbie
Posts: 4
Joined: Wed Aug 09, 2023 1:57 am

CrtImplementationDetails>.ModuleLoadException: The C++ module failed to load during appdomain initialization.

Post by HSLiam »

I try to run .NET Framework WPF application on wine. then some errors occur

System.TypeInitializationException: The type initializer for 'System.Windows.Application' threw an exception. ---> System.TypeInitializationException: The type initializer for '<Module>' threw an exception. ---> <CrtImplementationDetails>.ModuleLoadException: The C++ module failed to load during appdomain initialization.
---> System.DllNotFoundException: ucrtbase_clr0400.dll assembly:<unknown assembly> type:<unknown type> member:(null)
at (wrapper managed-to-native) <Module>._calloc_base(uint,uint)
at <Module>.__scrt_initialize_type_info () [0x00000] in <292d3a7fae194542bda9ce483e269e08>:0
at <Module>._initatexit_app_domain () [0x00035] in <292d3a7fae194542bda9ce483e269e08>:0
at <Module>.<CrtImplementationDetails>.LanguageSupport.InitializePerAppDomain (<CrtImplementationDetails>.LanguageSupport* ) [0x0002c] in <292d3a7fae194542bda9ce483e269e08>:0
at <Module>.<CrtImplementationDetails>.LanguageSupport._Initialize (<CrtImplementationDetails>.LanguageSupport* ) [0x00015] in <292d3a7fae194542bda9ce483e269e08>:0
at <Module>.<CrtImplementationDetails>.LanguageSupport.Initialize (<CrtImplementationDetails>.LanguageSupport* ) [0x0000c] in <292d3a7fae194542bda9ce483e269e08>:0
--- End of inner exception stack trace ---
at <Module>.<CrtImplementationDetails>.ThrowModuleLoadException (System.String errorMessage, System.Exception innerException) [0x00007] in <292d3a7fae194542bda9ce483e269e08>:0
at <Module>.<CrtImplementationDetails>.LanguageSupport.Initialize (<CrtImplementationDetails>.LanguageSupport* ) [0x00022] in <292d3a7fae194542bda9ce483e269e08>:0
at <Module>..cctor () [0x00008] in <292d3a7fae194542bda9ce483e269e08>:0
--- End of inner exception stack trace ---
at System.Windows.Application..cctor () [0x0002f] in <448e66291df6403d9c976e81bc01fa3f>:0
--- End of inner exception stack trace ---
at WPFApp.App..ctor () [0x00000] in <3ae8b1a3b97b474ea9b8a88d77ce3fd4>:0
at WPFApp.App.Main () [0x00001] in <3ae8b1a3b97b474ea9b8a88d77ce3fd4>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'System.Windows.Application' threw an exception. ---> System.TypeInitializationException: The type initializer for '<Module>' threw an exception. ---> <CrtImplementationDetails>.ModuleLoadException: The C++ module failed to load during appdomain initialization.
---> System.DllNotFoundException: ucrtbase_clr0400.dll assembly:<unknown assembly> type:<unknown type> member:(null)
at (wrapper managed-to-native) <Module>._calloc_base(uint,uint)
at <Module>.__scrt_initialize_type_info () [0x00000] in <292d3a7fae194542bda9ce483e269e08>:0
at <Module>._initatexit_app_domain () [0x00035] in <292d3a7fae194542bda9ce483e269e08>:0
at <Module>.<CrtImplementationDetails>.LanguageSupport.InitializePerAppDomain (<CrtImplementationDetails>.LanguageSupport* ) [0x0002c] in <292d3a7fae194542bda9ce483e269e08>:0
at <Module>.<CrtImplementationDetails>.LanguageSupport._Initialize (<CrtImplementationDetails>.LanguageSupport* ) [0x00015] in <292d3a7fae194542bda9ce483e269e08>:0
at <Module>.<CrtImplementationDetails>.LanguageSupport.Initialize (<CrtImplementationDetails>.LanguageSupport* ) [0x0000c] in <292d3a7fae194542bda9ce483e269e08>:0
--- End of inner exception stack trace ---
at <Module>.<CrtImplementationDetails>.ThrowModuleLoadException (System.String errorMessage, System.Exception innerException) [0x00007] in <292d3a7fae194542bda9ce483e269e08>:0
at <Module>.<CrtImplementationDetails>.LanguageSupport.Initialize (<CrtImplementationDetails>.LanguageSupport* ) [0x00022] in <292d3a7fae194542bda9ce483e269e08>:0
at <Module>..cctor () [0x00008] in <292d3a7fae194542bda9ce483e269e08>:0
--- End of inner exception stack trace ---
at System.Windows.Application..cctor () [0x0002f] in <448e66291df6403d9c976e81bc01fa3f>:0
--- End of inner exception stack trace ---
at WPFApp.App..ctor () [0x00000] in <3ae8b1a3b97b474ea9b8a88d77ce3fd4>:0
Locked