Jump to content
Ketarin forum

Unhandled exception when reading variable from local file

Recommended Posts

When i add a variable to an application, which is part of the download URL (for example https://download-installer.cdn.mozilla.net/pub/firefox/releases/{version}/win32/en-US/Firefox Setup {version}.exe) or the filename (for example d:\Firefox {version}.exe), and the variable is read from a local file, then canceling a file download (update or force download) will result in an unhandled exception error:


I get the same error with Ketarin and 1.8.11 Beta.

These are the steps to recreate this error (using Firefox as an example):

  1. Create a text file (c:\firefoxversion.txt) and write a version number into it (68.0).
  2. Create a new application in Ketarin (Firefox), and add a version variable to it. Change the type to Content from URL (Regular Expression), add the path to the text file into Contents from URL (c:\firefoxversion.txt), and add [\d\.]+ as the regular expression.
  3. Add the download URL: https://download-installer.cdn.mozilla.net/pub/firefox/releases/{version}/win32/en-US/Firefox Setup {version}.exe
  4. Add a path to Save in folder (c:\).
  5. Update (or force download) this application.
  6. Cancel during the download.

I uploaded firefoxversion.txt and firefox.xml. To test this, import firefox.xml into Ketarin and copy firefoxversion.txt to c:\.

firefoxversion.txt firefox.xml

Share this post

Link to post
Share on other sites

Interesting, seems a bit like a bug in the .NET Framework maybe. Will catch the exception anyway to prevent an error from occurring.

Share this post

Link to post
Share on other sites
On 7/19/2019 at 2:29 AM, shawn said:

Do you get the error if you use an actual file: URL such as "file:///C:/path/firefoxversion.txt" ?

I get the same error with the file: URL.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.