.net Value does not fall within the expected range

BendedKnee 1 Reputation point
2022-05-10T04:17:17.3+00:00

I have recently been getting this .net Value does not fall within the expected range. Win 10 I suspect it is to do with Power Toys but it does not say. I have unistalled .net resinstalled and updated Power Toys. Also rolled back to my oldest Restore Point and reinstalled everything from there.

It has made no difference.

I am not a developer although I have read many previous questions/answers on here and elsewhere. Anything I could try (within my range) has had no soluition as the warning messagfe appears at bootup but so far has not been popping up during normal work on the PC — which was a previously regular event, so some progress ;)

Can anyone please help me to get rid of this?

Processor AMD Ryzen 5 3600 6-Core Processor 3.60 GHz
Installed RAM 16.0 GB
System type 64-bit operating system, x64-based processor
Pen and touch No pen or touch input is available for this display

Windows Hardware Performance
Windows Hardware Performance
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Hardware Performance: Delivering / providing hardware or hardware systems or adjusting / adapting hardware or hardware systems.
1,578 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. BendedKnee 1 Reputation point
    2022-05-10T09:41:23.277+00:00

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

    ************** Exception Text **************
    System.ArgumentException: Value does not fall within the expected range.
    at Microsoft.Web.WebView2.Core.Raw.ICoreWebView2.NavigateToString(String htmlContent)
    at Microsoft.Web.WebView2.Core.CoreWebView2.NavigateToString(String htmlContent)
    at Microsoft.Web.WebView2.WinForms.WebView2.NavigateToString(String htmlContent)
    at Microsoft.PowerToys.ThumbnailHandler.Svg.SvgThumbnailProvider.<>c__DisplayClass10_0.<<GetThumbnail>b__1>d.MoveNext()
    --- End of stack trace from previous location ---
    at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)

    ************** Loaded Assemblies **************
    System.Private.CoreLib
    Assembly Version: 6.0.0.0
    Win32 Version: 6.0.422.16404

    CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.4/System.Private.CoreLib.dll

    PowerToys.SvgThumbnailProvider
    Assembly Version: 0.58.0.0
    Win32 Version: 0.58.0.0

    CodeBase: file:///C:/Program%20Files/PowerToys/modules/FileExplorerPreview/PowerToys.SvgThumbnailProvider.dll

    System.Runtime
    Assembly Version: 6.0.0.0
    Win32 Version: 6.0.422.16404

    CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.4/System.Runtime.dll

    PowerToys.PreviewHandlerCommon
    Assembly Version: 0.58.0.0
    Win32 Version: 0.58.0.0

    CodeBase: file:///C:/Program%20Files/PowerToys/modules/FileExplorerPreview/PowerToys.PreviewHandlerCommon.dll

    System.Runtime.InteropServices
    Assembly Version: 6.0.0.0
    Win32 Version: 6.0.422.16404

    CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.4/System.Runtime.InteropServices.dll

    System.ComponentModel.TypeConverter
    Assembly Version: 6.0.0.0
    Win32 Version: 6.0.422.16404

    CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.4/System.ComponentModel.TypeConverter.dll

    System.Drawing.Common
    Assembly Version: 6.0.0.0
    Win32 Version: 6.0.422.16404

    CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/6.0.4/System.Drawing.Common.dll

    System.Drawing.Primitives
    Assembly Version: 6.0.0.0
    Win32 Version: 6.0.422.16404

    CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.4/System.Drawing.Primitives.dll

    Microsoft.Web.WebView2.Core
    Assembly Version: 1.0.1150.38
    Win32 Version: 1.0.1150.38

    CodeBase: file:///C:/Program%20Files/PowerToys/modules/FileExplorerPreview/Microsoft.Web.WebView2.Core.dll

    mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 6.0.422.16404

    CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.4/mscorlib.dll

    Microsoft.Web.WebView2.WinForms
    Assembly Version: 1.0.1150.38
    Win32 Version: 1.0.1150.38

    CodeBase: file:///C:/Program%20Files/PowerToys/modules/FileExplorerPreview/Microsoft.Web.WebView2.WinForms.dll

    System.Windows.Forms
    Assembly Version: 6.0.2.0
    Win32 Version: 6.0.422.16407

    CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/6.0.4/System.Windows.Forms.dll

    System.ComponentModel.Primitives
    Assembly Version: 6.0.0.0
    Win32 Version: 6.0.422.16404

    CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.4/System.ComponentModel.Primitives.dll

    System.Windows.Forms.Primitives
    Assembly Version: 6.0.2.0
    Win32 Version: 6.0.422.16407

    CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/6.0.4/System.Windows.Forms.Primitives.dll

    System.Collections.Specialized
    Assembly Version: 6.0.0.0
    Win32 Version: 6.0.422.16404

    CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.4/System.Collections.Specialized.dll

    System.Diagnostics.TraceSource
    Assembly Version: 6.0.0.0
    Win32 Version: 6.0.422.16404

    CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.4/System.Diagnostics.TraceSource.dll

    System.Collections
    Assembly Version: 6.0.0.0
    Win32 Version: 6.0.422.16404

    CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.4/System.Collections.dll

    System.Threading
    Assembly Version: 6.0.0.0
    Win32 Version: 6.0.422.16404

    CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.4/System.Threading.dll

    System.ComponentModel.EventBasedAsync
    Assembly Version: 6.0.0.0
    Win32 Version: 6.0.422.16404

    CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.4/System.ComponentModel.EventBasedAsync.dll

    System.Threading.Thread
    Assembly Version: 6.0.0.0
    Win32 Version: 6.0.422.16404

    CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.4/System.Threading.Thread.dll

    Microsoft.Win32.Primitives
    Assembly Version: 6.0.0.0
    Win32 Version: 6.0.422.16404

    CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.4/Microsoft.Win32.Primitives.dll

    Accessibility
    Assembly Version: 4.0.0.0
    Win32 Version: 6.0.422.16407

    CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/6.0.4/Accessibility.dll

    System.ComponentModel
    Assembly Version: 6.0.0.0
    Win32 Version: 6.0.422.16404

    CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.4/System.ComponentModel.dll

    System.Drawing
    Assembly Version: 6.0.2.0
    Win32 Version: 6.0.422.16407

    CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/6.0.4/System.Drawing.dll

    System.Collections.NonGeneric
    Assembly Version: 6.0.0.0
    Win32 Version: 6.0.422.16404

    CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.4/System.Collections.NonGeneric.dll

    System.Threading.ThreadPool
    Assembly Version: 6.0.0.0
    Win32 Version: 6.0.422.16404

    CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.4/System.Threading.ThreadPool.dll

    System.Threading.Tasks
    Assembly Version: 6.0.0.0
    Win32 Version: 6.0.422.16404

    CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.4/System.Threading.Tasks.dll

    System.Private.Uri
    Assembly Version: 6.0.0.0
    Win32 Version: 6.0.422.16404

    CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.4/System.Private.Uri.dll

    System.Runtime.Extensions
    Assembly Version: 6.0.0.0
    Win32 Version: 6.0.422.16404

    CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.4/System.Runtime.Extensions.dll

    Microsoft.Win32.SystemEvents
    Assembly Version: 6.0.0.0
    Win32 Version: 6.0.422.16404

    CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/6.0.4/Microsoft.Win32.SystemEvents.dll

    System.Numerics.Vectors
    Assembly Version: 6.0.0.0
    Win32 Version: 6.0.422.16404

    CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.4/System.Numerics.Vectors.dll

    System.Runtime.Loader
    Assembly Version: 6.0.0.0
    Win32 Version: 6.0.422.16404

    CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.4/System.Runtime.Loader.dll

    System.Diagnostics.StackTrace
    Assembly Version: 6.0.0.0
    Win32 Version: 6.0.422.16404

    CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.4/System.Diagnostics.StackTrace.dll

    System.Reflection.Metadata
    Assembly Version: 6.0.0.0
    Win32 Version: 6.0.422.16404

    CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.4/System.Reflection.Metadata.dll

    System.Collections.Immutable
    Assembly Version: 6.0.0.0
    Win32 Version: 6.0.422.16404
    CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.4/System.Collections.Immutable.dll


    ************** JIT Debugging **************

    0 comments No comments

  2. BendedKnee 1 Reputation point
    2022-05-10T10:17:27.263+00:00

    It looks as if this is solved.

    After all the above, I noticed it ws powertoys so I uninstalled it and rebooted. The error did not show so I downloaded and reinstalled (settings seemed to be remembered from the earlier installation) and it has rebooted without the error.

    Thank you for reading and I hope this experience is useful for someone else.

    0 comments No comments