Value of '0' is not valid for 'Value'.

'Value' should be between 'Minimum' and 'Maximum'

I am getting this error when opening the program. (see below) The program opens, however the only thing that does not seem to work as expected is the "start Up" page. Meaning it is blank. I have not tryed to run any of the tweaks yet, only the assessment which worked as expected.

I feel it would be useful to have some form of way to submit these errors to the engineers through the program. However this will work as well.

I am hoping the next release will resolve that issue. I am not a programmer so debugging would be a lot of greek for me. The reason I have not turned it on.

However a great looking program with a lot of hopefully functional tweaks. I'll give it a test run after I create a restore pointfor my Vista Ultimate machine. (Retail not beta)

------------------------------------------------------------------------------------------
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentOutOfRangeException: Value of '0' is not valid for 'Value'. 'Value' should be between 'Minimum' and 'Maximum'.
Parameter name: Value
at System.Windows.Forms.NumericUpDown.set_Value(Decimal value)
at h.n()
at h.bv(Object A_0, EventArgs A_1)
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.312 (rtmLHS.050727-3100)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
TweakVista
Assembly Version: 0.8.0.0
Win32 Version: 0, 8, 0, 0
CodeBase: file:///C:/Program%20Files/Stardock/Object%20Desktop/TweakVista/TweakVista.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.312 (rtmLHS.050727-3100)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.312 (rtmLHS.050727-3100)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.312 (rtmLHS.050727-3100)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
AxInterop.WBOCXLib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/Stardock/Object%20Desktop/TweakVista/AxInterop.WBOCXLib.DLL
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.312 (rtmLHS.050727-3100)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.312 (rtmLHS.050727-3100)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.312 (rtmLHS.050727-3100)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Interop.MinActiveDs
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/Stardock/Object%20Desktop/TweakVista/Interop.MinActiveDs.DLL
----------------------------------------
System.DirectoryServices
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.312 (rtmLHS.050727-3100)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.DirectoryServices/2.0.0.0__b03f5f7f11d50a3a/System.DirectoryServices.dll
----------------------------------------
CustomMarshalers
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.312 (rtmLHS.050727-3100)
CodeBase: file:///C:/Windows/assembly/GAC_32/CustomMarshalers/2.0.0.0__b03f5f7f11d50a3a/CustomMarshalers.dll
----------------------------------------
mhbcktvz
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.312 (rtmLHS.050727-3100)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:



When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
6,409 views 2 replies
Reply #1 Top
Hi there, goldenstorm!

The problem is you have a registry parameter that is set to a value that is unexpected by TweakVista. This crash is TweakVista's fault, as it should be able to handle that situation.

There are four separate values that could be the problem:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters, Values MaxCacheTtl (most likely) or MaxNegativeCacheTtl. These values could in theory be valid as 0. If you know how to use the registry editor (regedit) or are willing to give it a go, you could set them to 1 and see if this resolves the problem.

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings, values MaxConnectionsPerServer and MaxConnectionsPer1_0Server (which as far as I know should never be 0).

I will modify the first two so that 0 can be selected as a value (right now, the minimum is 1), and all of them so that it does not crash even if an invalid value is selected.

Thanks for your help!
Reply #2 Top
Thank you for the info. I tested with the first parameter (HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters\MaxNegativeCacheTtl) which was 0. I set to 1 and opened TweakVista without error. Now the "start Up" page populates with information as expected. Thanks again.

Michael