Jump to content
Sign in to follow this  
Ninjaster

PKHeX Doesn't Open

Recommended Posts

Hi, I'm going to use PKHex program first time in my laptop (Window 10), but I'm having these messages so many times as I double click PKHex. Here are detailed information about messages;

Exception Details:
System.Configuration.ConfigurationErrorsException: The configuration section 'connectionStrings' has an unexpected declaration.
   Location: System.Configuration.ConfigurationManager.get_ConnectionStrings()
   Location: System.Configuration.PrivilegedConfigurationManager.get_ConnectionStrings()
   Location: System.Configuration.LocalFileSettingsProvider.GetPropertyValues(SettingsContext context, SettingsPropertyCollection properties)
   Location: System.Configuration.SettingsBase.GetPropertiesFromProvider(SettingsProvider provider)
   Location: System.Configuration.SettingsBase.GetPropertyValueByName(String propertyName)
   Location: System.Configuration.SettingsBase.get_Item(String propertyName)
   Location: System.Configuration.ApplicationSettingsBase.GetPropertyValue(String propertyName)
   Location: System.Configuration.ApplicationSettingsBase.get_Item(String propertyName)
   Location: PKHeX.WinForms.Properties.Settings.get_Version()
   Location: PKHeX.WinForms.Main.FormLoadConfig(Boolean& BAKprompt, Boolean& showChangelog)
   Location: PKHeX.WinForms.Main.FormLoadInitialSettings(String[] args, Boolean& showChangelog, Boolean& BAKprompt)

Loaded Assemblies:
--------------------
mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll

PKHeX, Version=19.7.5.0, Culture=neutral, PublicKeyToken=null
C:\Users\(myusername)\AppData\Local\Temp\BNZ.5d2813982b01e3\PKHeX.exe

System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll

System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll

System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll

PKHeX.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
C:\Users\(myusername)\AppData\Local\Temp\BNZ.5d2813982b01e3\PKHeX.Core.dll

System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll

System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll

System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll

Accessibility, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Accessibility\v4.0_4.0.0.0__b03f5f7f11d50a3a\Accessibility.dll

mscorlib.resources, Version=4.0.0.0, Culture=ko, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\mscorlib.resources\v4.0_4.0.0.0_ko_b77a5c561934e089\mscorlib.resources.dll

--------------------
User Message:
Unable to load settings.
 

 

And the last one is;

 

 

Exception Details:
System.Configuration.ConfigurationErrorsException: The configuration section 'connectionStrings' has an unexpected declaration.
   Location: System.Configuration.ConfigurationManager.get_ConnectionStrings()
   Location: System.Configuration.PrivilegedConfigurationManager.get_ConnectionStrings()
   Location: System.Configuration.LocalFileSettingsProvider.GetPropertyValues(SettingsContext context, SettingsPropertyCollection properties)
   Location: System.Configuration.SettingsBase.GetPropertiesFromProvider(SettingsProvider provider)
   Location: System.Configuration.SettingsBase.GetPropertyValueByName(String propertyName)
   Location: System.Configuration.SettingsBase.get_Item(String propertyName)
   Location: System.Configuration.ApplicationSettingsBase.GetPropertyValue(String propertyName)
   Location: System.Configuration.ApplicationSettingsBase.get_Item(String propertyName)
   Location: PKHeX.WinForms.Properties.Settings.get_Draw()
   Location: PKHeX.WinForms.Main.FormInitializeSecond()
   Location: PKHeX.WinForms.Main..ctor()
   Location: PKHeX.WinForms.Program.Main()

Loaded Assemblies:
--------------------
mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll

PKHeX, Version=19.7.5.0, Culture=neutral, PublicKeyToken=null
C:\Users\(myusername)\AppData\Local\Temp\BNZ.5d2813982b01e3\PKHeX.exe

System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll

System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll

System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll

PKHeX.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
C:\Users\(myusername)\AppData\Local\Temp\BNZ.5d2813982b01e3\PKHeX.Core.dll

System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll

System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll

System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll

Accessibility, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Accessibility\v4.0_4.0.0.0__b03f5f7f11d50a3a\Accessibility.dll

mscorlib.resources, Version=4.0.0.0, Culture=ko, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\mscorlib.resources\v4.0_4.0.0.0_ko_b77a5c561934e089\mscorlib.resources.dll

--------------------
User Message:
An unhandled exception has occurred.
PKHeX must now close.
 

 

 

What could be the problem? What should I have to do in order to solve this problem?

P.S.: Since I'm foreigner, some words are not written in English ('myusername' and  word 'Location'), so I translated to English)

Edited by Ninjaster

Share this post


Link to post
Share on other sites

>C:\Users\(myusername)\AppData\Local\Temp\BNZ.5d2813982b01e3\PKHeX.exe

extract the exe to an actual location before running

Also, try deleting all existing configuration files:

"C:\Users\(myusername)\AppData\Local\ProjectPokémon", delete all folders that have PKHeX.

Share this post


Link to post
Share on other sites
7 hours ago, Kaphotics said:

>C:\Users\(myusername)\AppData\Local\Temp\BNZ.5d2813982b01e3\PKHeX.exe

extract the exe to an actual location before running

Also, try deleting all existing configuration files:

"C:\Users\(myusername)\AppData\Local\ProjectPokémon", delete all folders that have PKHeX.

 

First, I don't have 'ProjectPokemon' files at all, so there is nothing to delete.

 

Lastly, I don't have BNZ.5d2813982b01e3 file in my Temp file. To give more information, I download PKHex program on the Internet, and extract file (which have 'PKHeX.Core.dll, PKHeX.exe only) on my desktop. 

 

So... yeah, BNZ.5d2813982b01e3 file doesn't exist, and nothing to delete. Is there a way to solve this? 

 

P.S.: I have question about 'the actual location'. I'm confused little bit. I extract the PKHeX zip files on my desktop just for convenience... is this related to my problem?

Share this post


Link to post
Share on other sites
9 hours ago, Sabresite said:

Right click PKHex.zip that you downloaded and choose Extract To...

Then choose your desktop.

Then run PKHex.exe (pokeball icon). Do not confused it with the ZIP file you downloaded.

 

9 hours ago, ReignOfComputer said:

Copy and paste the error again. 

 

 

I've followed your guides and these messages show up;

 

Exception Details:
System.Configuration.ConfigurationErrorsException: The configuration section 'connectionStrings' has an unexpected declaration.
   Location: System.Configuration.ConfigurationManager.get_ConnectionStrings()
   Location: System.Configuration.PrivilegedConfigurationManager.get_ConnectionStrings()
   Location: System.Configuration.LocalFileSettingsProvider.GetPropertyValues(SettingsContext context, SettingsPropertyCollection properties)
   Location: System.Configuration.SettingsBase.GetPropertiesFromProvider(SettingsProvider provider)
   Location: System.Configuration.SettingsBase.GetPropertyValueByName(String propertyName)
   Location: System.Configuration.SettingsBase.get_Item(String propertyName)
   Location: System.Configuration.ApplicationSettingsBase.GetPropertyValue(String propertyName)
   Location: System.Configuration.ApplicationSettingsBase.get_Item(String propertyName)
   Location: PKHeX.WinForms.Properties.Settings.get_Version()
   Location: PKHeX.WinForms.Main.FormLoadConfig(Boolean& BAKprompt, Boolean& showChangelog)
   Location: PKHeX.WinForms.Main.FormLoadInitialSettings(String[] args, Boolean& showChangelog, Boolean& BAKprompt)

Loaded Assemblies:
--------------------
mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll

PKHeX, Version=19.7.5.0, Culture=neutral, PublicKeyToken=null
C:\Users\(myusername)\Desktop\PKHeX (190705) (1)\PKHeX.exe

System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll

System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll

System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll

PKHeX.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
C:\Users\(myusername)\Desktop\PKHeX (190705) (1)\PKHeX.Core.dll

System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll

System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll

System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll

mscorlib.resources, Version=4.0.0.0, Culture=ko, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\mscorlib.resources\v4.0_4.0.0.0_ko_b77a5c561934e089\mscorlib.resources.dll

--------------------
User Message:
Unable to load settings.
 

 

Lastly,

 

Exception Details:
System.Configuration.ConfigurationErrorsException: The configuration section 'connectionStrings' has an unexpected declaration.
   Location: System.Configuration.ConfigurationManager.get_ConnectionStrings()
   Location: System.Configuration.PrivilegedConfigurationManager.get_ConnectionStrings()
   Location: System.Configuration.LocalFileSettingsProvider.GetPropertyValues(SettingsContext context, SettingsPropertyCollection properties)
   Location: System.Configuration.SettingsBase.GetPropertiesFromProvider(SettingsProvider provider)
   Location: System.Configuration.SettingsBase.GetPropertyValueByName(String propertyName)
   Location: System.Configuration.SettingsBase.get_Item(String propertyName)
   Location: System.Configuration.ApplicationSettingsBase.GetPropertyValue(String propertyName)
   Location: System.Configuration.ApplicationSettingsBase.get_Item(String propertyName)
   Location: PKHeX.WinForms.Properties.Settings.get_Draw()
   Location: PKHeX.WinForms.Main.FormInitializeSecond()
   Location: PKHeX.WinForms.Main..ctor()
   Location: PKHeX.WinForms.Program.Main()

Loaded Assemblies:
--------------------
mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll

PKHeX, Version=19.7.5.0, Culture=neutral, PublicKeyToken=null
C:\Users\(myusername)\Desktop\PKHeX (190705) (1)\PKHeX.exe

System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll

System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll

System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll

PKHeX.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
C:\Users\(myusername)\Desktop\PKHeX (190705) (1)\PKHeX.Core.dll

System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll

System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll

System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll

mscorlib.resources, Version=4.0.0.0, Culture=ko, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\mscorlib.resources\v4.0_4.0.0.0_ko_b77a5c561934e089\mscorlib.resources.dll

--------------------
User Message:
An unhandled exception has occurred.
PKHeX must now close.

 

P.S.: This is latest version (The file name says 'PKHeX 190705' when I extract the ZIP file on my desktop), when I extract it. Also, I traslated to English which are not written in English (word 'Location', 'myusername')

Share this post


Link to post
Share on other sites
14 hours ago, Ninjaster said:

First, I don't have 'ProjectPokemon' files at all, so there is nothing to delete.

Let's confirm this again. Can you type "%LocalAppData%\ProjectPokémon" into Run or Windows Explorer to make sure the "ProjectPokémon" directory doesn't exist?

image.png

Share this post


Link to post
Share on other sites
1 hour ago, ReignOfComputer said:

Let's confirm this again. Can you type "%LocalAppData%\ProjectPokémon" into Run or Windows Explorer to make sure the "ProjectPokémon" directory doesn't exist?

image.png

 

Yup, types in Run, but it says; 'Windows cannot find 'C:/Users/(myusername)₩/Appdata/Local/ProjectPokémon' file. Make sure you typed the name correctly, and then try again.'

 

Edited by Ninjaster

Share this post


Link to post
Share on other sites
20 minutes ago, theSLAYER said:

I'm wondering if it's your anti-virus stopping you from creating the required folders and config file.

Also, mind showing a screenshot of the folder containing PKHeX?

 

 Here it is;

1787444436_Screenshot(4).thumb.png.8f49346a6708632ba7bf93cac9c18d92.png

 

Config file? I wonder what's config files are... when I extract the zip file in my desktop and click the PKHeX file that just extracted, only these 2 things are in it...

Edited by Ninjaster

Share this post


Link to post
Share on other sites
Just now, Ninjaster said:

 Here it is;

1787444436_Screenshot(4).thumb.png.8f49346a6708632ba7bf93cac9c18d92.png

 

Config file? I wonder what's config files are... when I extract the zip file in my desktop and click the PKHeX file that just extracted, only these 2 things are in it...

The config file is generated upon launching PKHeX.

Try Right Click on PKHeX, Properties and Unblock

Share this post


Link to post
Share on other sites
2 minutes ago, theSLAYER said:

The config file is generated upon launching PKHeX.

Try Right Click on PKHeX, Properties and Unblock

 

PKHeX 'icon' you mean, right? If so, where is 'Unblock'? I got into Properties section, but I can't find the 'Unblock'...

Share this post


Link to post
Share on other sites

image.png

Well it's usually there when people download a new file.

If it's not the Unblock, not your anti-virus, and you've extracted it properly, then I've got no clue what the problem could be.


@Kaphotics could we just send over the folder with the config file? I'm asking cause I'm not sure if the inner folder name (inside %LocalAppData%\ ProjectPokémon) is computer unique or the same for all users.

Share this post


Link to post
Share on other sites

Anti-virus? Hmm... I should check that out too. Maybe Windows anti-virus system is blocking from downloading the necessary files? How can I check that out?

 

912188383_Screenshot(5).thumb.png.75c21f79a19d91877b0c67a8c0081d61.png

 

Also... yeah, I don't have 'Unblock' button as you can see in the screenshot...

Edited by Ninjaster

Share this post


Link to post
Share on other sites
28 minutes ago, Ninjaster said:

Anti-virus? Hmm... I should check that out too. Maybe Windows anti-virus system is blocking from downloading the necessary files? How can I check that out?

 

912188383_Screenshot(5).thumb.png.75c21f79a19d91877b0c67a8c0081d61.png

 

Also... yeah, I don't have 'Unblock' button as you can see in the screenshot...

The issue is less with "disallowing downloading" (since you already downloaded the files), but more of "restricting folder access and modifying of files".

I don't know what anti-virus you have, you gotta check it out yourself.

Share this post


Link to post
Share on other sites

After following my instructions try right clicking and Run as Administrator (shield icon) to open PKHex.exe

It is quite possible you don't have proper permissions. For example, is this a work computer controlled by an IT department? Are you on a virtual profile? Is the computer locked down in any way? Do you have elevation permissions (run applications as admin?)

Another example, It is common for a work laptop to need to be connected to the work network in order to access your profile from the windows server. If you are not at work then you will not have access to your profile and you will not have any icons on your desktop or be able to create local app data folders and files.

  • Like 1

Share this post


Link to post
Share on other sites
1 hour ago, Sabresite said:

After following my instructions try right clicking and Run as Administrator (shield icon) to open PKHex.exe

It is quite possible you don't have proper permissions. For example, is this a work computer controlled by an IT department? Are you on a virtual profile? Is the computer locked down in any way? Do you have elevation permissions (run applications as admin?)

Another example, It is common for a work laptop to need to be connected to the work network in order to access your profile from the windows server. If you are not at work then you will not have access to your profile and you will not have any icons on your desktop or be able to create local app data folders and files.

I'm a student, not a working man. I put my laptop at my home, in my room... get my home Internet WiFi connected, play game... so there isn't any chance of what you've said. I don't know what are 'virtual profile' and 'computer locked down' means, so neither of them may not be the solutions. Also, of course, this is my personal laptop (usually for playing games), so I do have rights to run applications as admin.

 

I've checked the Windows anti-virus in 'Security' section in control panel, deactivate it, and when I click 'Properties' in PKHeX icon, 'Unblock' button showed up. Even though I click Unblock, the logs keep showing up, so it's no use. I also tried to run PKHeX as Adminstrator, but still the same logs keep popping...

 

If it's missing files that are troubling me, can someone give me the file that has all necessary items with it? If so, there may be a chance that problem will be solved...

Edited by Ninjaster

Share this post


Link to post
Share on other sites

2142632148_(2).png.ff0d9a802aa8b7f7a9e71f3224e746f9.png

 

Ta-da! Problem solved! The problem was a 'Window Update' in my laptop. Ever since I bought my laptop 6 months ago, I haven't upgraded Windows even once. Which means, I was using old Windows 10 version untill now! So, it was a old Window system that was blocking the PKHeX from running. Immediately, I upgraded my Windows 10 (which took sooooo long because I postponed so many updates untill now on), and extract PKHeX file. As you can see, it perfectly opens now! Thanks for all who helped me so far!

Edited by Ninjaster
  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...