Microsoft Visual Studio Error

327 views
Skip to first unread message

The Tick

unread,
Jul 4, 2023, 4:00:45 PM7/4/23
to TV Rename
I'm having an issue when I open TV Rename, I get a pop-up that says "TV Rename need Microsoft Visual C++ 2015-2019 Redistributable to be present.  Downloading installer now.  It would download the software I would run it, and when I open the program again it says the same thing.  I have uninstalled both TV Rename and all instances of Microsoft Visual C++ and started all over and it is still doing the same thing.

What am I missing here?

Thanks.

The Tick

unread,
Jul 4, 2023, 4:02:48 PM7/4/23
to TV Rename
By the way this only started happening once upgraded to 5.0.3, before that it was working fine.

The Tick

unread,
Jul 4, 2023, 4:13:58 PM7/4/23
to TV Rename
I rolled back to 4.9.9 and it seems to work fine.

Tom Snyder

unread,
Jul 4, 2023, 4:26:24 PM7/4/23
to TV Rename
I'm sure the author will have a much better answer for you but did you reboot your computer after installing the SDK?  You did install the whole SDK instead of just one runtime, correct?

The Tick

unread,
Jul 5, 2023, 10:51:07 AM7/5/23
to TV Rename
I did reboot but I'm not sure if that is the actually problem only because when I rolled back to 4.9.9 it would work fine again.

Tom Snyder

unread,
Jul 5, 2023, 11:15:12 PM7/5/23
to TV Rename
I hope I get this right or the author can straighten me out.  TVRename 4.99 used 7.0.0 .NET runtimes.  I can't find the latest committ on Github where he updated to the latest version of .NET for TVRename 5.x.x.  I found one where he updated it to 7.0.3 but that is 2 major releases and 2 security releases behind.  The latest .NET runtimes were released on June 22nd and are 7.0.8.  To be completely covered with all possible requirements I always download and install the latest SDK which in this case is 7.0.305.  This is the best bet to have installed for TVRename 5.0.3 and probably beyond for a little while.

TV Rename

unread,
Jul 6, 2023, 10:23:14 AM7/6/23
to TV Rename
4.99 and 5.03 shoud use the same C++ and .Net dependencies

The Tick

unread,
Jul 11, 2023, 10:33:14 AM7/11/23
to TV Rename
Yes, it should but for whatever reason when I go to 5.03 it still asks for  Microsoft Visual C++ 2015-2019 Redistributable to be present but 4.99 it does not ask for it.

David M.

unread,
Jul 12, 2023, 2:12:55 AM7/12/23
to TV Rename
I really struggled with this some months ago, I was eventually able to solve it by installing both the 32bit and 64bit redistributable on my 64bit system, made no sense to me but it worked.

Perhaps worth a try if you haven't already.

It's a redistributable package, I think the dependencies should be included in (a "full" version of) the TVRename installer to avoid these hassles.

Sparky53

unread,
Jul 12, 2023, 10:51:38 AM7/12/23
to TV Rename

The Tick

unread,
Jul 12, 2023, 1:40:54 PM7/12/23
to TV Rename
I've done both suggestions I even updated to 5.0.6 and it still does the same thing.  This is the following from the log file:

2023-07-12 13:33:56|FATAL| TV Rename 5.0.6 logging started on Microsoft Windows NT 6.1.7601 Service Pack 1, 64 Bit OS, 64 Bit Process 6.0.9 Interactive with args:  
2023-07-12 13:33:56|INFO| Copyright (C) 2023 TV Rename
2023-07-12 13:33:56|INFO| This program comes with ABSOLUTELY NO WARRANTY; This is free software, and you are welcome to redistribute it under certain conditions
2023-07-12 13:33:56|WARN| Can't initialise CEF with settings C:\Users\JoJo\AppData\Roaming\TVRename\cache, C:\Users\JoJo\AppData\Roaming\TVRename\log\cef-debug.log, , ,  System.IO.FileNotFoundException: Could not load file or assembly 'CefSharp.Core.Runtime, Version=114.2.100.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138'. The system cannot find the file specified.
File name: 'CefSharp.Core.Runtime, Version=114.2.100.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138'
   at CefSharp.CefSettingsBase..ctor()
   at CefSharp.WinForms.CefSettings..ctor()
   at TVRename.CefWrapper.InitialiseBrowserFramework()
2023-07-12 13:33:56|WARN| C++ Version (Installers): Microsoft Visual C++ 2015-2022 Redistributable (x64) - 14.36.32532, Microsoft Visual C++ 2015-2022 Redistributable (x86) - 14.36.32532
2023-07-12 13:33:56|WARN| C++ Version (Git Library):  
2023-07-12 13:33:56|WARN| If C++ 2019 is not installed visit: https://docs.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-160 and install the latest appropriate version
2023-07-12 13:34:50|INFO| Checking for CEF dependencies  
2023-07-12 13:34:50|WARN| Missing Cef Dependencies System.Exception: Unable to locate required Cef/CefSharp dependencies:
Missing:d:\Program Files (x86)\TVRename\runtimes\win-x64\lib\netcoreapp3.1\libcef.dll
Missing:d:\Program Files (x86)\TVRename\runtimes\win-x64\lib\netcoreapp3.1\icudtl.dat
Missing:d:\Program Files (x86)\TVRename\runtimes\win-x64\lib\netcoreapp3.1\snapshot_blob.bin
Missing:d:\Program Files (x86)\TVRename\runtimes\win-x64\lib\netcoreapp3.1\v8_context_snapshot.bin
Missing:d:\Program Files (x86)\TVRename\runtimes\win-x64\lib\netcoreapp3.1\resources.pak
Missing:d:\Program Files (x86)\TVRename\runtimes\win-x64\lib\netcoreapp3.1\chrome_100_percent.pak
Missing:d:\Program Files (x86)\TVRename\runtimes\win-x64\lib\netcoreapp3.1\chrome_200_percent.pak
Missing:d:\Program Files (x86)\TVRename\runtimes\win-x64\lib\netcoreapp3.1\libEGL.dll
Missing:d:\Program Files (x86)\TVRename\runtimes\win-x64\lib\netcoreapp3.1\libGLESv2.dll
Missing:d:\Program Files (x86)\TVRename\runtimes\win-x64\lib\netcoreapp3.1\d3dcompiler_47.dll
Missing:d:\Program Files (x86)\TVRename\runtimes\win-x64\lib\netcoreapp3.1\chrome_elf.dll
Missing:
Missing:CefSharp.BrowserSubprocess.Core.dll
Missing:CefSharp.dll
Missing:icudtl.dat
Missing:libcef.dll
Missing:Ijwhost.dll
Missing:d:\Program Files (x86)\TVRename\runtimes\win-x64\lib\netcoreapp3.1\locales\en-US.pak
Executing Assembly Path:d:\Program Files (x86)\TVRename\runtimes\win-x64\lib\netcoreapp3.1

   at CefSharp.DependencyChecker.AssertAllDependenciesPresent(String locale, String localesDirPath, String resourcesDirPath, Boolean packLoadingDisabled, String browserSubProcessPath) in C:\projects\cefsharp\CefSharp\DependencyChecker.cs:line 281
   at TVRename.CefWrapper.CheckForBrowserDependencies(Boolean showUi)
2023-07-12 13:34:52|INFO| Splash Screen Updated with: 55/100 Filling Shows
2023-07-12 13:34:53|INFO| UI: Updating MyShows
2023-07-12 13:34:53|INFO| Splash Screen Updated with: 65/100 Filling Movies
2023-07-12 13:34:53|INFO| UI: Updating MyMovies
2023-07-12 13:34:53|INFO| Splash Screen Updated with: 75/100 Updating WTW
2023-07-12 13:34:53|INFO| Splash Screen Updated with: 80/100 Updating WTW
2023-07-12 13:34:53|INFO| Splash Screen Updated with: 85/100 Write Upcoming
2023-07-12 13:34:53|INFO| Splash Screen Updated with: 88/100 Write Recent
2023-07-12 13:34:53|INFO| Splash Screen Updated with: 90/100 Setting Notifications
2023-07-12 13:34:53|INFO| Splash Screen Updated with: 92/100 Creating Monitors
2023-07-12 13:34:53|INFO| Splash Screen Updated with: 95/100 Starting Monitor
2023-07-12 13:34:53|INFO| Starting FileSystemWatcher for D:\Torrents\Downloads\!Extract
2023-07-12 13:34:53|ERROR| Failed to set startup Tab System.IO.FileNotFoundException: Could not load file or assembly 'CefSharp.Core.Runtime, Version=114.2.100.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138'. The system cannot find the file specified.
File name: 'CefSharp.Core.Runtime, Version=114.2.100.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138'
   at CefSharp.Cef.get_IsInitialized()
   at TVRename.Forms.UI.<>c.<WaitForCefInitialised>b__21_0()
   at TVRename.Forms.UI.WaitFor(Func`1 func, Int32 maxSeconds, String textMessage, Boolean doLogging)
   at TVRename.Forms.UI.WaitForCefInitialised()
   at TVRename.Forms.UI.SetStartUpTab()
2023-07-12 13:34:53|INFO| Splash Screen Updated with: 100/100 Opening...
2023-07-12 13:35:09|FATAL| UNHANDLED ERROR - Application.ThreadException System.IO.FileNotFoundException: Could not load file or assembly 'CefSharp.Core.Runtime, Version=114.2.100.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138'. The system cannot find the file specified.
File name: 'CefSharp.Core.Runtime, Version=114.2.100.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138'
   at CefSharp.Cef.get_IsInitialized()
   at CefSharp.WinForms.ChromiumWebBrowser.InitializeFieldsAndCefIfRequired() in C:\projects\cefsharp\CefSharp.WinForms\ChromiumWebBrowser.cs:line 336
   at CefSharp.WinForms.ChromiumWebBrowser.OnHandleCreated(EventArgs e) in C:\projects\cefsharp\CefSharp.WinForms\ChromiumWebBrowser.cs:line 596
   at System.Windows.Forms.Control.WmCreate(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam)

The Tick

unread,
Jul 12, 2023, 1:45:20 PM7/12/23
to TV Rename
All I did was uninstall 5.0.6 and reinstalled 4.9.9 and this is the result from the log file:

2023-07-12 13:43:11|FATAL| TV Rename 4.9.9 logging started on Microsoft Windows NT 6.1.7601 Service Pack 1, 64 Bit OS, 64 Bit Process 6.0.9 Interactive with args:  
2023-07-12 13:43:11|INFO| Copyright (C) 2023 TV Rename
2023-07-12 13:43:11|INFO| This program comes with ABSOLUTELY NO WARRANTY; This is free software, and you are welcome to redistribute it under certain conditions
2023-07-12 13:43:11|INFO| Updated path for BrowserSubprocess: d:\Program Files (x86)\TVRename\runtimes\win-x64\native\CefSharp.BrowserSubprocess.exe
2023-07-12 13:43:11|INFO| Updated path for LocalesDirPath: d:\Program Files (x86)\TVRename\runtimes\win-x64\native\locales
2023-07-12 13:43:11|INFO| Updated path for ResourcesDirPath: d:\Program Files (x86)\TVRename\runtimes\win-x64\native
2023-07-12 13:43:11|INFO| Checking for CEF dependencies d:\Program Files (x86)\TVRename\runtimes\win-x64\native
2023-07-12 13:43:11|INFO| Dependencies all found
2023-07-12 13:43:12|INFO| Splash Screen Updated with: 55/100 Filling Shows
2023-07-12 13:43:14|INFO| UI: Updating MyShows
2023-07-12 13:43:14|INFO| Splash Screen Updated with: 65/100 Filling Movies
2023-07-12 13:43:14|INFO| UI: Updating MyMovies
2023-07-12 13:43:14|INFO| Splash Screen Updated with: 75/100 Updating WTW
2023-07-12 13:43:15|INFO| Splash Screen Updated with: 80/100 Updating WTW
2023-07-12 13:43:15|INFO| Splash Screen Updated with: 85/100 Write Upcoming
2023-07-12 13:43:15|INFO| Splash Screen Updated with: 88/100 Write Recent
2023-07-12 13:43:15|INFO| Splash Screen Updated with: 90/100 Setting Notifications
2023-07-12 13:43:15|INFO| Splash Screen Updated with: 92/100 Creating Monitors
2023-07-12 13:43:15|INFO| Splash Screen Updated with: 95/100 Starting Monitor
2023-07-12 13:43:15|INFO| Starting FileSystemWatcher for D:\Torrents\Downloads\!Extract
2023-07-12 13:43:15|INFO| Splash Screen Updated with: 100/100 Opening...
2023-07-12 13:43:23|WARN| ************************
* New Update Available *
************************
A new version is available: 5.0.6 since 7/8/2023 5:23:16 AM
please download from https://github.com/TV-Rename/tvrename/releases/download/5.0.6/TVRename-5.0.6.exe
full notes available from https://github.com/TV-Rename/tvrename/releases/tag/5.0.6
**Upgrade now please**. _Versions before 4.9.4 use TVDB v3 API code and will no longer produce accurate shows and risk data loss._

Changes since last stable release:

**New Features:**

**Enhancements:**
 * Added support for shows in Icelandic
 * Improve timezone handling of streamed shows

**Bug Fixes:**
 * :eyeglasses: Fix #915 - Sorting of search results
 * Fix log viewer issue
 * Fix UI 'Cannot access a disposed object' issue
 
**Technical Upgrades**
 * Improved Error Handling

:hammer_and_wrench: = Need to update preferences to use
:eyeglasses: = Visible changes

Tom Snyder

unread,
Jul 12, 2023, 4:01:21 PM7/12/23
to TV Rename
I don't think you mentioned that you are running Windows 7 SP1 64bit before.  It doesn't look to me that the C++ redistributable is the problem.  Note it says "If C++ 2019 is not installed visit: ".  It doesn't say that it isn't installed.  I checked and you do have the latest redistributable installed.  To me, and I'm not the author so my knowledge of this is meaningless, it looks to be having a problem finding some of your CEF components.  Perhaps because you have the TVRename program on drive D: rather than the more common drive C:?  Do these components not work with Windows 7 anymore?  I'm just throwing stuff against the wall and seeing what sticks.  I have no doubt that TV Rename/Sparky53/Sir Sparkles/Mark (whatever the author's identity is at the moment) will figure this out for you.  The man is amazing!

Sparky53

unread,
Jul 12, 2023, 7:44:43 PM7/12/23
to TV Rename
Thanks for sharing the logs, it helps (but is confusing).

For some reason, on your system, for 5.0.3, TV Rename thinks its running in devloper mode. (and so assumes that that CEF files are in a specific place). (specifically it calls  Debugger.IsAttached)

I'll change the way this works going forward. Am still not sure why it thinks that though.

The Tick

unread,
Jul 13, 2023, 7:43:00 AM7/13/23
to TV Rename
So what you suggest I do?  As of right now it is working with 4.9.9, if I upgrade beyond that TV Rename will crash on me.

derZorn

unread,
Jul 13, 2023, 1:59:31 PM7/13/23
to TV Rename
Had the same problem. Running Win10 here,.
I found the solution on top of the group conversation list ...
For me it was the .NET SDK install that fixed my problem.

Hope that helps someone else.
Thanks for your work.

To run TV Rename you need to install (ignore the link in the error message, it is not enough):
  1. .NET SDK 6 from MicrosoftThis is the recommended link
  2. C++ 2019: Visit Microsoft and install the latest appropriate version

Tom Snyder

unread,
Jul 13, 2023, 2:54:24 PM7/13/23
to TV Rename
TV Rename appears to be using .NET SDK 7 now.  A new update just came out.  It is a security fix.  The SDK is 7.0.306 and contains the 7.0.9 runtimes.
dotnet 7 download
It is also part of this month's Patch Tuesday Windows Update.

As Sparky53 wrote above, the C++ redistributable direct link for 64bit is https://aka.ms/vs/17/release/vc_redist.x64.exe
derZorn's address above will lead you to it, one webpage away.

Matt B

unread,
Jul 13, 2023, 6:49:31 PM7/13/23
to TV Rename
Just passing on that I have the exact same issues with Windows 2008R2 as seen with Windows 7 above...  
- I could some times get it to launch, but trying to click in the interface would result in this error message:

Could not load file or assembly 'CefSharp.Core.Runtime, Version=114.2.100.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138'. The system cannot find the file specified.

   at CefSharp.Cef.Shutdown()
   at CefSharp.WinForms.ChromiumWebBrowser.OnApplicationExit(Object sender, EventArgs e) in C:\projects\cefsharp\CefSharp.WinForms\ChromiumWebBrowser.cs:line 271
   at System.Windows.Forms.Application.RaiseExit()
   at System.Windows.Forms.Application.ThreadContext.Dispose(Boolean postQuit)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(msoloop reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(msoloop reason, ApplicationContext context)
   at System.Windows.Forms.Application.Run(ApplicationContext context)
   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
   at TVRename.App.Program.Main(String[] args)


- Updating/Installing the latest VC runtimes (both x86 and x64), as well as both .NET SDK 6/7 make no difference in the failure.  
- I did have it installed to an alternate location, but installing direct to the default "C:\Program Files (x86)\TVRename" also made no difference
- I copied the ".\runtimes\win-x64\native\*" under ".\runtimes\win-x64\lib\netcoreapp3.1\" and then received a different error trying to launch.
- Reverting back to 4.9.9 also works for me.

I'll wait for Sparky53's note about correcting it from believing it is running in developer mode and try again...

Tom Snyder

unread,
Jul 13, 2023, 8:40:49 PM7/13/23
to TV Rename
I think I found the answer at CEFSharp's Github - - -

Screenshot 2023-07-13 8.36.50 PM.png

Windows 7/8/8.1 are no longer supported.

Tom Snyder

unread,
Jul 13, 2023, 9:17:58 PM7/13/23
to TV Rename
CEF, itself, no longer supports Windows 7/8/8.1 as of Chromium release 110.

Screenshot 2023-07-13 9.05.19 PM.png
TV Rename went from CEF 106 to 114 (beyond the M110 version) with this commit for 5.06 - https://github.com/TV-Rename/tvrename/commit/9a9daf367eba08fe88daabb1022816c9610d0f0d

Matt B

unread,
Jul 13, 2023, 11:31:42 PM7/13/23
to TV Rename
That explains it!  Thanks.  Another reason for me to upgrade my media server's OS...  ;-)

The Tick

unread,
Jul 14, 2023, 8:37:18 AM7/14/23
to TV Rename
That's what I was afraid of I can upgrade from windows 7 for atleast a few more months so I guess I'll just stick with 4.9.9 until then.
Reply all
Reply to author
Forward
0 new messages