louischau Posted August 24, 2025 Posted August 24, 2025 When I open the PKHeX, Error message pops up """ Exception Details: System.TypeInitializationException: The type initializer for 'PKHeX.WinForms.Main' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'PKHeX.Drawing.PokeSprite, Version=25.6.9.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified. File name: 'PKHeX.Drawing.PokeSprite, Version=25.6.9.0, Culture=neutral, PublicKeyToken=null' at PKHeX.WinForms.PKHeXSettings..ctor() at PKHeX.WinForms.PKHeXSettings.GetSettings(String configPath) at PKHeX.WinForms.Main..cctor() --- End of inner exception stack trace --- at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) at PKHeX.WinForms.Main.FormLoadConfig(Boolean& BAKprompt, Boolean& showChangelog) at PKHeX.WinForms.Main.FormLoadInitialSettings(IEnumerable`1 args, Boolean& showChangelog, Boolean& BAKprompt) at PKHeX.WinForms.Main..ctor() at PKHeX.WinForms.Program.Main() Loaded Assemblies: -------------------- System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.4\System.Private.CoreLib.dll PKHeX, Version=25.6.9.0, Culture=neutral, PublicKeyToken=null C:\Users\Louis\AppData\Local\Temp\.net\PKHeX\3bswyR3JTjcBTZJGEv+CV5rkyX7OQH0=\PKHeX.dll System.Runtime, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.4\System.Runtime.dll System.Windows.Forms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\9.0.4\System.Windows.Forms.dll System.ComponentModel.Primitives, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.4\System.ComponentModel.Primitives.dll System.Windows.Forms.Primitives, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\9.0.4\System.Windows.Forms.Primitives.dll System.Private.Windows.Core, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\9.0.4\System.Private.Windows.Core.dll System.Drawing.Primitives, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.4\System.Drawing.Primitives.dll System.Collections.Specialized, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.4\System.Collections.Specialized.dll System.Threading.Thread, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.4\System.Threading.Thread.dll System.Collections, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.4\System.Collections.dll System.Runtime.InteropServices, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.4\System.Runtime.InteropServices.dll System.Threading, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.4\System.Threading.dll System.Drawing.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\9.0.4\System.Drawing.Common.dll Microsoft.Win32.Primitives, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.4\Microsoft.Win32.Primitives.dll System.ComponentModel.EventBasedAsync, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.4\System.ComponentModel.EventBasedAsync.dll Accessibility, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\9.0.4\Accessibility.dll System.ComponentModel, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.4\System.ComponentModel.dll System.Resources.Extensions, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\9.0.4\System.Resources.Extensions.dll System.Memory, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.4\System.Memory.dll System.Drawing, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\9.0.4\System.Drawing.dll System.Numerics.Vectors, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.4\System.Numerics.Vectors.dll Microsoft.Win32.SystemEvents, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\9.0.4\Microsoft.Win32.SystemEvents.dll System.ComponentModel.TypeConverter, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.4\System.ComponentModel.TypeConverter.dll PKHeX.Core, Version=25.6.9.0, Culture=neutral, PublicKeyToken=null C:\Users\Louis\AppData\Local\Temp\.net\PKHeX\3bswyR3JTjcBTZJGEv+CV5rkyX7OQH0=\PKHeX.Core.dll System.Linq, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.4\System.Linq.dll System.Collections.Concurrent, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.4\System.Collections.Concurrent.dll System.Collections.NonGeneric, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.4\System.Collections.NonGeneric.dll System.Text.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.4\System.Text.Json.dll System.Text.Encodings.Web, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.4\System.Text.Encodings.Web.dll System.Text.Encoding.Extensions, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.4\System.Text.Encoding.Extensions.dll System.Runtime.Intrinsics, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.4\System.Runtime.Intrinsics.dll System.Diagnostics.StackTrace, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.4\System.Diagnostics.StackTrace.dll System.Reflection.Metadata, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.4\System.Reflection.Metadata.dll System.Collections.Immutable, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.4\System.Collections.Immutable.dll -------------------- User Message: An error occurred in PKHeX. Please report this error to the PKHeX author. PKHeX must now close. """ What should I do?
Kaphotics Posted August 24, 2025 Posted August 24, 2025 Extract the executable, don't run it from a zip. Try re-launching the program. It should be able to unpack itself with all the necessary DLL files.
louischau Posted August 24, 2025 Author Posted August 24, 2025 I extracted and run the program, but still the error message pops up
Kaphotics Posted August 24, 2025 Posted August 24, 2025 Try the development build, which provides them all as separate files: https://projectpokemon.org/pkhex-dev/
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now