DaBoi Posted March 20, 2023 Posted March 20, 2023 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=23.2.27.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified. File name: 'PKHeX.Drawing.PokeSprite, Version=23.2.27.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 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=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.3\System.Private.CoreLib.dll PKHeX, Version=23.2.27.0, Culture=neutral, PublicKeyToken=null C:\Users\moyzc\AppData\Local\Temp\.net\PKHeX\GX4qNkcJE9DZWdZN79akTVuQ5uBYOGM=\PKHeX.dll System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.3\System.Runtime.dll System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.3\System.Threading.Thread.dll System.Windows.Forms, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\7.0.3\System.Windows.Forms.dll System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.3\System.ComponentModel.Primitives.dll System.Windows.Forms.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\7.0.3\System.Windows.Forms.Primitives.dll System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.3\System.Runtime.InteropServices.dll System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.3\System.Drawing.Primitives.dll System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.3\System.Collections.Specialized.dll System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.3\System.Collections.dll System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.3\System.Threading.dll System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.3\System.Diagnostics.TraceSource.dll System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\7.0.3\System.Drawing.Common.dll Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.3\Microsoft.Win32.Primitives.dll System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.3\System.ComponentModel.EventBasedAsync.dll Accessibility, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\7.0.3\Accessibility.dll System.Resources.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\7.0.3\System.Resources.Extensions.dll System.Memory, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.3\System.Memory.dll System.Drawing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\7.0.3\System.Drawing.dll System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.3\System.Numerics.Vectors.dll Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\7.0.3\Microsoft.Win32.SystemEvents.dll System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.3\System.ComponentModel.TypeConverter.dll System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.3\System.ComponentModel.dll PKHeX.Core, Version=23.2.27.0, Culture=neutral, PublicKeyToken=null C:\Users\moyzc\AppData\Local\Temp\.net\PKHeX\GX4qNkcJE9DZWdZN79akTVuQ5uBYOGM=\PKHeX.Core.dll System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.3\System.Collections.NonGeneric.dll System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.3\System.Linq.dll System.Text.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.3\System.Text.Json.dll System.Text.Encodings.Web, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.3\System.Text.Encodings.Web.dll System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.3\System.Text.Encoding.Extensions.dll System.Runtime.Intrinsics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.3\System.Runtime.Intrinsics.dll System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.3\System.Collections.Concurrent.dll System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.3\System.Diagnostics.StackTrace.dll System.Reflection.Metadata, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.3\System.Reflection.Metadata.dll System.Collections.Immutable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.3\System.Collections.Immutable.dll -------------------- User Message: An unhandled exception has occurred. PKHeX must now close.
Kaphotics Posted March 21, 2023 Posted March 21, 2023 From what folder are you running the program from?
DaBoi Posted March 21, 2023 Author Posted March 21, 2023 I have the folder in my desktop and it houses the application and the plugins. I have had it like this since I first downloaded Pk and it never gave me any problems.
Kaphotics Posted March 21, 2023 Posted March 21, 2023 20 minutes ago, DaBoi said: houses the application and the plugins Try renaming the plugins folder so the plugins don't load, and try launching. Also, try just moving the exe (clean install) so that nothing else is in the folder it launches from.
DaBoi Posted March 21, 2023 Author Posted March 21, 2023 Unfortunately, neither option seemed to work. I even reinstalled it, but it did not seem to work.
foohyfooh Posted March 21, 2023 Posted March 21, 2023 Are you running the stable build or the development build? I can reproduce the error on the development build by removing PKHeX.Drawing.PokeSprite.dll from the folder it causes the above error since the required dlls aren't bundled into the executable. If you are using the development build then try downloading it again and running it with the files that come with it.
DaBoi Posted March 21, 2023 Author Posted March 21, 2023 I just downloaded the app from the link in the main page. I was able to get pkhex to work again by going back to the previous build (Dec. 18). I'll just use this until the new build comes out. Thank you for your help you guys!
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