The below error is related to WebView2 and is experience when viewing the "Check for Updates" tab in TariffShark. Follow the below steps to resolve this issue.

    1. Close TariffShark and any other applications that may be utilizing WebView2 in the background.
    2. Navigate to: "C:\Users\<user>\AppData\Local\Temp\" there should be a folder named "TSWebView "
    3. Delete TSWebView
    4. Start TariffShark and view "Check for updates"


Error:             The group or resource is not in the correct state to perform the requested operation. (Exception from HRESULT: 0x8007139F)
Entry Assembly     TariffShark 3.1.3009.0
Executing Assembly Framework 3.1.3009.0
CallingAssembly    Framework 3.1.3009.0
Date:              10/31/2023 13:52:35
OS:                Microsoft Windows NT 6.2.9200.0
Culture:           en-US
System up time:    05:07:10.9800000
App up time:       00:04:20.4799040
Total memory:      16091Mb
Available memory:  7197Mb
 
Exception classes:
   System.Runtime.InteropServices.COMException
Exception messages:
   The group or resource is not in the correct state to perform the requested operation. (Exception from HRESULT: 0x8007139F)
Stack Traces:
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
   at Microsoft.Web.WebView2.Core.CoreWebView2Environment.<CreateCoreWebView2ControllerAsync>d__74.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Web.WebView2.WinForms.WebView2.<InitCoreWebView2Async>d__23.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at TariffShark.Forms.CheckForUpdates.<checkReleaseInfoErrors>d__15.MoveNext() in C:\GitLab-Runner\builds\KPCzEzsD\0\links\tariffshark\tariffshark\TariffShark\Forms\CheckForUpdates.cs:line 89
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
Extra Information:
 
Loaded Modules:
C:\Program Files (x86)\TariffShark Tiger SP1\TariffShark.exe 3.1.3009.0
C:\Windows\SYSTEM32\ntdll.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\SYSTEM32\MSCOREE.DLL 10.0.19041.1 (WinBuild.160101.0800)
C:\Windows\System32\KERNEL32.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\System32\KERNELBASE.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\System32\ADVAPI32.dll 10.0.19041.1 (WinBuild.160101.0800)
C:\Windows\System32\msvcrt.dll 7.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\System32\sechost.dll 10.0.19041.1 (WinBuild.160101.0800)
C:\Windows\System32\RPCRT4.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscoreei.dll 4.8.4180.0 built by: NET48REL1LAST_B
C:\Windows\System32\SHLWAPI.dll 10.0.19041.1 (WinBuild.160101.0800)
C:\Windows\SYSTEM32\kernel.appcore.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\SYSTEM32\VERSION.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll 4.8.4645.0 built by: NET48REL1LAST_B
C:\Windows\System32\USER32.dll 10.0.19041.1 (WinBuild.160101.0800)
C:\Windows\System32\win32u.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\System32\GDI32.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\System32\gdi32full.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\System32\msvcp_win.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\System32\ucrtbase.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\SYSTEM32\ucrtbase_clr0400.dll 14.10.25028.0 built by: VCTOOLSD15RTM
C:\Windows\SYSTEM32\VCRUNTIME140_CLR0400.dll 14.10.25028.0 built by: VCTOOLSD15RTM
C:\Windows\System32\IMM32.DLL 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\System32\psapi.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\assembly\NativeImages_v4.0.30319_64\mscorlib\4bc5e5252873c08797895d5b6fe6ddfd\mscorlib.ni.dll 4.8.4645.0 built by: NET48REL1LAST_B
C:\Windows\System32\ole32.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\System32\combase.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\System32\bcryptPrimitives.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\system32\uxtheme.dll 10.0.19041.1 (WinBuild.160101.0800)
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clrjit.dll 4.8.4645.0 built by: NET48REL1LAST_B
C:\Windows\assembly\NativeImages_v4.0.30319_64\System\81c74c247cd0996308ac544ce3135a7c\System.ni.dll 4.8.4650.0 built by: NET48REL1LAST_C
C:\Windows\assembly\NativeImages_v4.0.30319_64\System.Drawing\78099d98fe23101e726823c8942e57bb\System.Drawing.ni.dll 4.8.4390.0 built by: NET48REL1LAST_C
C:\Windows\assembly\NativeImages_v4.0.30319_64\System.Windows.Forms\bb75ce26f3a7fab11fc444d939a17288\System.Windows.Forms.ni.dll 4.8.4654.0 built by: NET48REL1LAST_B
C:\Windows\assembly\NativeImages_v4.0.30319_64\System.Web.Services\98440d12b9eadf0a87237f7157e286d9\System.Web.Services.ni.dll 4.8.4084.0 built by: NET48REL1
C:\Windows\SYSTEM32\CRYPTSP.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\system32\rsaenh.dll 10.0.19041.1 (WinBuild.160101.0800)
C:\Windows\System32\bcrypt.dll 10.0.19041.1 (WinBuild.160101.0800)
C:\Windows\SYSTEM32\CRYPTBASE.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\assembly\NativeImages_v4.0.30319_64\System.Core\ae22ddaa425e8cf33cc19de2dd2387f6\System.Core.ni.dll 4.8.4662.0 built by: NET48REL1LAST_C
C:\Windows\WinSxS\amd64_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.19041.3570_none_91a61d1ecc865de8\gdiplus.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\SYSTEM32\DWrite.dll 10.0.19041.1 (WinBuild.160101.0800)
C:\Windows\System32\MSCTF.dll 10.0.19041.1 (WinBuild.160101.0800)
C:\Windows\System32\OLEAUT32.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\assembly\NativeImages_v4.0.30319_64\System.Xml\78ce3c3936b025b3e6b63a7235881889\System.Xml.ni.dll 4.8.4084.0 built by: NET48REL1
C:\Windows\assembly\NativeImages_v4.0.30319_64\System.Configuration\a0b03cdc092f2b4466dc1d4c737c5db7\System.Configuration.ni.dll 4.8.4190.0 built by: NET48REL1LAST_B
C:\Windows\SYSTEM32\urlmon.dll 11.00.19041.3570 (WinBuild.160101.0800)
C:\Windows\SYSTEM32\netutils.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\SYSTEM32\srvcli.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\SYSTEM32\iertutil.dll 11.00.19041.1 (WinBuild.160101.0800)
C:\Windows\System32\shcore.dll 10.0.19041.1 (WinBuild.160101.0800)
C:\Windows\SYSTEM32\SspiCli.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\SYSTEM32\windows.storage.dll 10.0.19041.1 (WinBuild.160101.0800)
C:\Windows\SYSTEM32\Wldp.dll 10.0.19041.1 (WinBuild.160101.0800)
C:\Windows\SYSTEM32\PROPSYS.dll 7.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\SYSTEM32\virtdisk.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\SYSTEM32\FLTLIB.DLL 10.0.19041.1 (WinBuild.160101.0800)
C:\Windows\System32\WINTRUST.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\System32\CRYPT32.dll 10.0.19041.1 (WinBuild.160101.0800)
C:\Windows\SYSTEM32\MSASN1.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorsecimpl.dll 4.8.4084.0 built by: NET48REL1
C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_5.82.19041.3570_none_793094a72440f60b\COMCTL32.dll 5.82 (WinBuild.160101.0800)
C:\Windows\System32\imagehlp.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\SYSTEM32\gpapi.dll 10.0.19041.1 (WinBuild.160101.0800)
C:\Windows\System32\cryptnet.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\SYSTEM32\profapi.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\SYSTEM32\IPHLPAPI.DLL 10.0.19041.1 (WinBuild.160101.0800)
C:\Windows\SYSTEM32\WINNSI.DLL 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\System32\NSI.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\System32\shell32.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\System32\clbcatq.dll 2001.12.10941.16384 (WinBuild.160101.0800)
C:\Windows\SYSTEM32\WindowsCodecs.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.19041.3570_none_60bb2a3971f3e41a\comctl32.dll 6.10 (WinBuild.160101.0800)
C:\Windows\SYSTEM32\sxs.dll 10.0.19041.1 (WinBuild.160101.0800)
C:\Program Files (x86)\TariffShark Tiger SP1\runtimes\win-x64\native\WebView2Loader.dll 1.0.1264.42
C:\Windows\assembly\NativeImages_v4.0.30319_64\Accessibility\1a1e3e9c9fd1c316613e984718ddb700\Accessibility.ni.dll 4.8.4084.0 built by: NET48REL1
C:\Windows\assembly\NativeImages_v4.0.30319_64\System.Data\96630093aeac18623f8eafa5a10c8ba7\System.Data.ni.dll 4.8.4644.0 built by: NET48REL1LAST_B
C:\Windows\Microsoft.Net\assembly\GAC_64\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll 4.8.4644.0 built by: NET48REL1LAST_B
C:\Windows\System32\WS2_32.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\SYSTEM32\RichEd20.DLL 5.31.23.1231
C:\Windows\SYSTEM32\USP10.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\SYSTEM32\msls31.dll 3.10.349.0
C:\Windows\System32\TextShaping.dll 
C:\Windows\SYSTEM32\textinputframework.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\System32\CoreMessaging.dll 10.0.19041.3570
C:\Windows\System32\CoreUIComponents.dll 10.0.19041.3570
C:\Windows\SYSTEM32\ntmarta.dll 10.0.19041.1 (WinBuild.160101.0800)
C:\Windows\SYSTEM32\wintypes.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\SYSTEM32\dwmapi.dll 10.0.19041.1 (WinBuild.160101.0800)
C:\Windows\SYSTEM32\rasapi32.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\SYSTEM32\rasman.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\SYSTEM32\rtutils.dll 10.0.19041.1 (WinBuild.160101.0800)
C:\Windows\system32\mswsock.dll 10.0.19041.1 (WinBuild.160101.0800)
C:\Windows\SYSTEM32\winhttp.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\SYSTEM32\dhcpcsvc6.DLL 10.0.19041.1 (WinBuild.160101.0800)
C:\Windows\SYSTEM32\dhcpcsvc.DLL 10.0.19041.1 (WinBuild.160101.0800)
C:\Windows\SYSTEM32\DNSAPI.dll 10.0.19041.1 (WinBuild.160101.0800)
C:\Windows\System32\rasadhlp.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\System32\fwpuclnt.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\SYSTEM32\secur32.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\system32\schannel.DLL 10.0.19041.1 (WinBuild.160101.0800)
C:\Windows\SYSTEM32\mskeyprotect.dll 10.0.19041.1 (WinBuild.160101.0800)
C:\Windows\SYSTEM32\NTASN1.dll 10.0.19041.1 (WinBuild.160101.0800)
C:\Windows\SYSTEM32\ncrypt.dll 10.0.19041.1 (WinBuild.160101.0800)
C:\Windows\system32\ncryptsslp.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Program Files (x86)\Microsoft\EdgeWebView\Application\118.0.2088.76\EBWebView\x64\EmbeddedBrowserWebView.dll 118.0.2088.76
C:\Windows\SYSTEM32\oleacc.dll 7.2.19041.3570 (WinBuild.160101.0800)
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\perfcounter.dll 4.8.4084.0 built by: NET48REL1
C:\Windows\SYSTEM32\pdh.dll 10.0.19041.1 (WinBuild.160101.0800)
C:\Windows\System32\BitsProxy.dll 7.8.19041.1 (WinBuild.160101.0800)
C:\Windows\System32\cfgmgr32.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\SYSTEM32\tapi32.dll 10.0.19041.1 (WinBuild.160101.0800)
C:\Windows\System32\perfos.dll 10.0.19041.1 (WinBuild.160101.0800)
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\diasymreader.dll 14.8.4667.0 built by: NET48REL1LAST_B
C:\Windows\system32\dataexchange.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\system32\dcomp.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\system32\d3d11.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\system32\dxgi.dll 10.0.19041.3570 (WinBuild.160101.0800)
C:\Windows\system32\twinapi.appcore.dll 10.0.19041.1 (WinBuild.160101.0800)
C:\Windows\assembly\NativeImages_v4.0.30319_64\WindowsBase\837798b2d6c215e5f2bb43af36402065\WindowsBase.ni.dll 4.8.4662.0 built by: NET48REL1LAST_C
C:\Program Files\Common Files\microsoft shared\ink\tiptsf.dll 10.0.19041.1 (WinBuild.160101.0800)
C:\Windows\SYSTEM32\edputil.dll 10.0.19041.1 (WinBuild.160101.0800)