[GH-ISSUE #1045] [Bug] Starting the app creates a log saying error in CheckForUpdates #2936

Closed
opened 2026-03-01 19:04:41 +03:00 by kerem · 0 comments
Owner

Originally created by @tw0517tw on GitHub (Jan 8, 2022).
Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/1045

Originally assigned to: @NickeManarin on GitHub.

Describe the bug
After starting the app, it creates a log file saying there is an error in ScreenToGif.Util.LocalizationHelper.CheckForUpdates

To Reproduce
Steps to reproduce the behavior:

  1. Download portable exe
  2. start exe
  3. see ScreenToGif\Logs showing

Expected behavior
No error logs

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows 10
  • Version 2.35.3

Additional context
The error log says below.

► Title - 
	Check for an updated localization recource
▬ Message - 
	The path is empty. (Parameter 'path')
○ Type - 
	System.ArgumentException
♦ [Version] Date/Hour - 
	[2.35.3] 01/09/2022 01:00:23
▲ Source - 
	System.Private.CoreLib
▼ TargetSite - 
	System.String GetFullPath(System.String)
♠ StackTrace - 
   at System.IO.Path.GetFullPath(String path)
   at System.IO.File.GetLastWriteTime(String path)
   at ScreenToGif.Util.LocalizationHelper.CheckForUpdates(String culture) in C:\Users\nicke\source\repos\ScreenToGif\ScreenToGif.Util\LocalizationHelper.cs:line 146

Maybe this was cause by the behavior change in Assembly.Location after .NET 5?
https://docs.microsoft.com/en-us/dotnet/api/system.reflection.assembly.location?view=net-6.0#remarks

Originally created by @tw0517tw on GitHub (Jan 8, 2022). Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/1045 Originally assigned to: @NickeManarin on GitHub. **Describe the bug** After starting the app, it creates a log file saying there is an error in `ScreenToGif.Util.LocalizationHelper.CheckForUpdates` **To Reproduce** Steps to reproduce the behavior: 1. Download portable exe 2. start exe 3. see `ScreenToGif\Logs` showing **Expected behavior** No error logs **Screenshots** If applicable, add screenshots to help explain your problem. **Desktop (please complete the following information):** - OS: Windows 10 - Version 2.35.3 **Additional context** The error log says below. ``` ► Title - Check for an updated localization recource ▬ Message - The path is empty. (Parameter 'path') ○ Type - System.ArgumentException ♦ [Version] Date/Hour - [2.35.3] 01/09/2022 01:00:23 ▲ Source - System.Private.CoreLib ▼ TargetSite - System.String GetFullPath(System.String) ♠ StackTrace - at System.IO.Path.GetFullPath(String path) at System.IO.File.GetLastWriteTime(String path) at ScreenToGif.Util.LocalizationHelper.CheckForUpdates(String culture) in C:\Users\nicke\source\repos\ScreenToGif\ScreenToGif.Util\LocalizationHelper.cs:line 146 ``` Maybe this was cause by the behavior change in `Assembly.Location` after .NET 5? https://docs.microsoft.com/en-us/dotnet/api/system.reflection.assembly.location?view=net-6.0#remarks
kerem 2026-03-01 19:04:41 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ScreenToGif#2936
No description provided.