This project has moved and is read-only. For the latest updates, please go here.
1
Vote

Ran fine at First, Now it doesn't

description

I did a fresh install of my Windows 10 Pro. I downloaded WFN 2.0 Alpha 11 and added to a WFN folder inside documents folder. When I run it the first time as Administrator, it opened fine and change firewall rules to prompt and ask option and selected apply, I got an error which I don't recall at the moment. after a few minutes it started using m computer's CPU at 100%. I thought to myself it didn't do this on my laptop. So I terminated it. I run WFN.exe as admin again but nothing happened. I checked task manager and I notice that it does run for a few minutes it does create the Wokhan.WindowsFirewallNotifier.Common text file but then it look like it get terminated. I checked my Windows Logs > Application and I get 2 errors which are: Even if I download a fresh copy of WFN I still get the error. Thoughts?

Application Error
Faulting application name: WFN.exe, version: 2.0.0.0, time stamp: 0x58693938
Faulting module name: KERNELBASE.dll, version: 10.0.14393.479, time stamp: 0x58256d37
Exception code: 0xe0434352
Fault offset: 0x000da832
Faulting process id: 0x2758
Faulting application start time: 0x01d298490b5c932a
Faulting application path: C:\Users\user\Documents\WFN\WFN.exe
Faulting module path: C:\Windows\System32\KERNELBASE.dll
Report Id: 59b9d4f3-4600-47a4-9107-da90865002a3
Faulting package full name:
Faulting package-relative application ID:

.NET Runtime
Application: WFN.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Configuration.ConfigurationErrorsException
at System.Configuration.SectionRecord.ThrowOnErrors()
at System.Configuration.BaseConfigurationRecord.GetSectionRecord(System.String, Boolean)
at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(System.String, Boolean, Boolean, Boolean, Boolean, System.Object ByRef, System.Object ByRef)
at System.Configuration.ConfigurationSectionCollection.Get(System.String)
at Wokhan.WindowsFirewallNotifier.Common.Helpers.CustomSettingsProvider.GetUserSettingsSection(System.Configuration.Configuration)
at Wokhan.WindowsFirewallNotifier.Common.Helpers.CustomSettingsProvider.GetUserSettings(Boolean)
at Wokhan.WindowsFirewallNotifier.Common.Helpers.CustomSettingsProvider.GetPropertyValues(System.Configuration.SettingsContext, System.Configuration.SettingsPropertyCollection)
at System.Configuration.SettingsBase.GetPropertiesFromProvider(System.Configuration.SettingsProvider)
at System.Configuration.SettingsBase.GetPropertyValueByName(System.String)
at System.Configuration.SettingsBase.get_Item(System.String)
at System.Configuration.ApplicationSettingsBase.GetPropertyValue(System.String)
at System.Configuration.ApplicationSettingsBase.get_Item(System.String)
at Wokhan.WindowsFirewallNotifier.Common.Settings.get_FirstRun()
at Wokhan.WindowsFirewallNotifier.Common.Helpers.LogHelper..cctor()

Exception Info: System.TypeInitializationException
at Wokhan.WindowsFirewallNotifier.Common.Helpers.LogHelper.Debug(System.String)
at Wokhan.WindowsFirewallNotifier.Console.App..ctor()
at Wokhan.WindowsFirewallNotifier.Console.App.Main()

file attachments

comments

DanielPharos wrote Mar 9 at 5:13 PM

Hmm, I'm not sure. You mention you did a "fresh install"; could you please what version of the .NET framework you have installed? WFN needs version 4.5.2 or higher.

It also mentions the configuration file. Maybe that was corrupted somehow... Can you post the contents of the:
C:\Users\user\AppData\Local\Wokhan Solutions\WFN\user.config
file here?

TekieG wrote Mar 9 at 6:31 PM

I attempted to install 4.5.2 and 4.6 and got a message telling me they are already installed.
Here is the user.config contents.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>
    <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
      <section name="Wokhan.WindowsFirewallNotifier.Configuration" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToRoamingUser" requirePermission="false"/>
    </sectionGroup>
  </configSections>
  <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2"/>
  </startup>
  <runtime>
    <AppContextSwitchOverrides value="Switch.System.IO.UseLegacyPathHandling=false;Switch.System.IO.BlockLongPaths=false" />
  </runtime>
  <userSettings>
    <Wokhan.WindowsFirewallNotifier.Configuration>
      <setting name="ConsoleSizeHeight" serializeAs="String">
        <value>500</value>
      </setting>
      <setting name="ConsoleState" serializeAs="String">
        <value>Normal</value>
      </setting>
      <setting name="UseAnimation" serializeAs="String">
        <value>True</value>
      </setting>
      <setting name="FirstRun" serializeAs="String">
        <value>True</value>
      </setting>
      <setting name="EnableForAllAccounts" serializeAs="String">
        <value>False</value>
      </setting>
      <setting name="EnableFor" serializeAs="String">
        <value>0</value>
      </setting>
      <setting name="AlwaysShowDetails" serializeAs="String">
        <value>False</value>
      </setting>
      <setting name="MinimizeToTray" serializeAs="String">
        <value>True</value>
      </setting>
      <setting name="ConsoleSizeWidth" serializeAs="String">
        <value>850</value>
      </setting>
      <setting name="AccentColor" serializeAs="String">
        <value>#FFFF7F50</value>
      </setting>
      <setting name="EnableVerboseLogging" serializeAs="String">
        <value>False</value>
      </setting>
      <setting name="AlwaysRunAs" serializeAs="String">
        <value>False</value>
      </setting>
    </Wokhan.WindowsFirewallNotifier.Configuration>
  </userSettings>
</configuration>

DanielPharos wrote Mar 10 at 7:17 AM

That looks reasonable. But I'm getting the feeling this has something to do with my changes to the configuration file handling in V2.0 alpha 11. Can you try V2.0 alpha 10 instead?

TekieG wrote Mar 10 at 6:07 PM

I downloaded V2.0 Alpha 10 and same thing is happening. I runs and I see it in task manager but then quits. Here are the Windows Logs.

Application Error
Faulting application name: WFN.exe, version: 2.0.0.0, time stamp: 0x58693938
Faulting module name: KERNELBASE.dll, version: 10.0.14393.479, time stamp: 0x58256d37
Exception code: 0xe0434352
Fault offset: 0x000da832
Faulting process id: 0x15a4
Faulting application start time: 0x01d299c8c33ad56e
Faulting application path: E:\WFN Alpha 10\WFN.exe
Faulting module path: C:\Windows\System32\KERNELBASE.dll
Report Id: 8977ebd6-02bd-483f-978f-7f6980a70e12
Faulting package full name:
Faulting package-relative application ID:

.NET Runtime
Application: WFN.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Configuration.ConfigurationErrorsException
at System.Configuration.SectionRecord.ThrowOnErrors()
at System.Configuration.BaseConfigurationRecord.GetSectionRecord(System.String, Boolean)
at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(System.String, Boolean, Boolean, Boolean, Boolean, System.Object ByRef, System.Object ByRef)
at System.Configuration.ConfigurationSectionCollection.Get(System.String)
at Wokhan.WindowsFirewallNotifier.Common.Helpers.CustomSettingsProvider.GetUserSettingsSection(System.Configuration.Configuration)
at Wokhan.WindowsFirewallNotifier.Common.Helpers.CustomSettingsProvider.GetUserSettings(Boolean)
at Wokhan.WindowsFirewallNotifier.Common.Helpers.CustomSettingsProvider.GetPropertyValues(System.Configuration.SettingsContext, System.Configuration.SettingsPropertyCollection)
at System.Configuration.SettingsBase.GetPropertiesFromProvider(System.Configuration.SettingsProvider)
at System.Configuration.SettingsBase.GetPropertyValueByName(System.String)
at System.Configuration.SettingsBase.get_Item(System.String)
at System.Configuration.ApplicationSettingsBase.GetPropertyValue(System.String)
at System.Configuration.ApplicationSettingsBase.get_Item(System.String)
at Wokhan.WindowsFirewallNotifier.Common.Settings.get_FirstRun()
at Wokhan.WindowsFirewallNotifier.Common.Helpers.LogHelper..cctor()

Exception Info: System.TypeInitializationException
at Wokhan.WindowsFirewallNotifier.Common.Helpers.LogHelper.Debug(System.String)
at Wokhan.WindowsFirewallNotifier.Console.App..ctor()
at Wokhan.WindowsFirewallNotifier.Console.App.Main()

DanielPharos wrote Mar 12 at 9:40 AM

I have tracked down the issue; it's indeed related to my messing with the configuration file code. I will fix the problem, add some better error messaging, and do a new release. Hopefully all within the next (say) 12 hours; I'll post a new reply here when it's done.

(Although I'm not sure why V2.0 alpha 10 also gets broken by this?)

DanielPharos wrote Mar 12 at 1:49 PM

Okay, I've release V2.0 Alpha 12. Can you please try that? You might need to delete (if they exist):
C:\Users\<user>\AppData\Roaming\Wokhan Solutions\WFN\user.config
C:\Users\<user>\AppData\Local\Wokhan Solutions\WFN\user.config

Daniel_Walker wrote Mar 12 at 2:51 PM

Hi. I tried WFN for the first time today (on Windows 7) and had exactly the same problem. Alpha 12 fixed it for me. Thanks for sorting this out so quickly.

wrote Mar 13 at 8:59 PM

TekieG wrote Mar 13 at 8:59 PM

I tried Alpha 12 and deleted the user.config file and it worked. I notice something I enabled the "Always run as admin* and selected apply and got the error, I attached a screen shot it mentions user.config. I also this is same error with Alpha 11 that I didn't remember. I also did it with Alpha 10 but I didn't get the error. so I checked the user config file. There is an AllowExeExceptions="MachineToRoamingUser" for both alpha 11 and 12 but on 10 it uses MachineToLocalUser. I don't know if this is the actual issue. Can anyone verify this?

DanielPharos wrote Mar 14 at 8:05 AM

Ah, you might also need to delete the user.config from the Administrator's folders. And I'll do some more tests to see if WFN is writing this configuration file correctly.

DanielPharos wrote May 20 at 10:04 AM

I have made some minor changes and fixes in the newly release version of WFN: https://wfn.codeplex.com/releases/view/631360

Can you please check if that fixes it for you?

wrote Today at 4:06 AM