Apologies if I've posted this in the wrong group but as it's related to my BaseStation.sqb file I'm hoping someone can get me back on track. I've been running Mode-S Tweaker on an old PC, as the BaseStation file got bigger I thought that a newer PC might speed things up a bit. Although the install on the old PC was painless, I've ended up with a couple of error messages after the install on the new one. When launching Tweaker I get the following - Error could not load file or assembly 'System.Data.SQLite.dll' or one of its dependencies. The specified module could not be found in fnControlsSetup. If I ignore the message and try to continue, I get a Microsoft .Net Framework error coming up with an unhandled exception. There is the option to continue but the program does nothing when it opens. Net Framework 4 is showing as installed, is there anything else I need to allow it to run?
Many thanks,
Keith
Welcome.
Is BaseStation running OK on the new PC?
And does the new PC have ".NET Framework 4 Client" installed - see the ReadMe PDF file?
Did you do a fresh install of Mode-S Tweaker on the new PC? If you did and had no install errors, I assume .Net was already installed. See Page 2 of the PDF.
And what path have you set for the sqb file? If BaseStation is in a ProgramFiles location, the active sqb may be in the Virtual Store.
Quote from: Anmer on July 11, 2021, 11:34:26 AM
Welcome.
Is BaseStation running OK on the new PC?
And does the new PC have ".NET Framework 4 Client" installed - see the ReadMe PDF file?
Did you do a fresh install of Mode-S Tweaker on the new PC? If you did and had no install errors, I assume .Net was already installed. See Page 2 of the PDF.
And what path have you set for the sqb file? If BaseStation is in a ProgramFiles location, the active sqb may be in the Virtual Store.
Yes BaseStation is running OK.
Yes, the .NET Framework 4 Client was already installed on the PC.
I've run multiple installs, uninstalls. I don't get any errors during the installation, only when I attempt to launch the program.
I can't set the path for the SQB file as the program isn't working after I've bypassed the two errors previously mentioned. I'm not able to open Settings/Reference Files & Folders to put my SQB path in. The SQB file is in a folder on the root of C:
Keith
Try this.
Locate the folder where ModeSTweaker.exe is installed. Check if the folder includes the file:
System.Data.SQLite.dll
If not, copy the dll which I've just emailed you to the folder and then try to launch ModeSTweaker.
Quote from: Anmer on July 11, 2021, 12:50:43 PM
Try this.
Locate the folder where ModeSTweaker.exe is installed. Check if the folder includes the file:
System.Data.SQLite.dll
If not, copy the dll which I've just emailed you to the folder and then try to launch ModeSTweaker.
The file is already there, do you want me to try overwriting the one sent in the email?
Keith
No need to replace the file.
How are you launching ModeSTweaker? Where is it installed and what other files are in the same folder as the exe?
Quote from: Anmer on July 11, 2021, 01:53:36 PM
No need to replace the file.
How are you launching ModeSTweaker? Where is it installed and what other files are in the same folder as the exe?
It does not matter if I launch it directly from it's own directory or via the icon on the desktop I get the same result.
The path is C:\Apps\MSTweaker
The folder contains 7 files:
ModeS.Tweaker.exe
ModeS.Tweaker.exe.config
MT_Settings.xml
System.Data.SQLite.dll
unins000.dat
unins000.exe
UserGuide.pdf
Keith
Can I take a look with you, using a remote session at a convenient time?
Quote from: Anmer on July 11, 2021, 04:39:34 PM
Can I take a look with you, using a remote session at a convenient time?
That would be great, thanks.
I've sent you a Personal Message to set this up.
I got the same problem, did you get it fixed? If so, how?
Quote from: JXB on September 14, 2021, 12:21:02 AM
I got the same problem, did you get it fixed? If so, how?
Regrettably, we were unable to fix the problem.
I contacted Kelvin Cross, who developed Mode-S Tweaker. and he was sure it was caised by a partial or corrupt install of Windows .NET. Unfortunately the forum member decided the resolution outweighed the benefits and moved on without Mode-S Tweaker.
I had an earlier example which also appeared to be caused by a .NET issue. This was resolved by the other member's, an IT programmer. I'm trying to ascertain how it was fixed.
Kelvin has provided this link which may help:
https://www.makeuseof.com/tag/microsoft-net-framework-need-install-windows/
Thank you Anmer, I hope it will be sorted out so I can run it later, it looks very nice.
Quote from: JXB on September 14, 2021, 08:42:05 AM
Thank you Anmer, I hope it will be sorted out so I can run it later, it looks very nice.
Just to clarify, it's the .NET installation of the user's computer that needs to "sorted". Not Mode-S Tweaker.
Please check your .NET installation.
Ok, thank you.
Having just changed my Windows 10 PC for a newer windows 11 machine, I am finding that despite having the latest . Net files I am now unable to get beyond the error message as shown on the attached document. my Old PC ran the program with no problems
Have any further ideas on a fix for this come to light?
I hate not being able to use Mode S Tweaker now
Regards Mike
[attachment deleted reduce file load]
Hi Mike
That's the same message I saw with another member and Kelvin (ModeS Tweaker author) couldn't find a solution.
Mike,
Do we know if it is only people with laptops, or like me an all-in-one PC that act like a very large laptop, that are getting this error?
I am no computer expert by any means but the reference to fncontrolsetup reference refers to the fan speed controls and info on it mentions laptops....
also, is there a later version of the System.Data.SQLite.dll file as the one used is dated 2014.
My PC is an ASUS all-in-one and came with Windows 10 and has subsequently been upgraded to 11, and the error was found on Both versions of windows
It is very frustrating as I found Mode S Tweaker to be a most useul addon that I used almost every day. >:(
Hi Mike
I've seen three instances of this type of problem, all of which appear to be .Net related following a recent install/upgrade/update of Windows. I don't recall the PC type, laptop or desktop.
This is how Kelvin "egnx" responded the last time:
This is an install error with the .Net framework which needs to be corrected, not an easy job. A link I found with the exact same issue is here:- https://sqlite.org/forum/info/2a501c6b828d786e
The end result of the thread being:-
(https://www.radarspotting.com/images/Tweaker.jpg)
It sounds from that it needs a Win10 repair, which obviously needs to be considered carefully.
Sorry I can't be anymore help with this. I see there have been over a hundred downloads of this, so I guess it is a somewhat rare occurance, but that is not much solice to the person who has the failed install.
If you think I can be of any further help please ask.
I spent a considerable amount of time with both members trying to resolve the issue, following Kelvin's advice, all to no avail.
In both instances, the latest version of .Net was installed, the same as mine and Kelvin's. But Tweaker failed to load and the same error message appeared.
As the Mode-S Tweaker developer, we really need Kelvin to investigate further. Only he knows how Tweaker should work and what it needs.
Thanks Mike,
I use a program called CCcleaner which allows me to clean up leftover files and paths incorrect details and it did show a few that were left over and not doing anything. I ran the cleaner and it cleared them all out but tweaker still will not run. There is a function to produce a dump file and I ran it result is a file Modes.tweaker.dmp of what is going on and I have done one and it is 278,000+ kb in size. no idea how to look at it but wondered if in the hands of an expert who knows about such thnings whetherit would throw some light on the subject. I'm sure Kelvin already knows about this facility.
Clutching at straws actually
Mike
Hi Mike
Personally, I stay well clear of "cleaning" utilities. I found they caused more problems than they solved.
Kelvin has seen this post and has suggested somthing else to try:
Hi Mike,
I see there has been a new problem with using Mode-S Tweaker on a Win11 machine, and the problem as you mentioned seems to be the same as that seen previously.
I have had a further look at this and it may be that it is related to the "System.Data.SQLite.dll" that also requires MS Visual C++ runtime libraries.
I have seen a resolution mentioned on StackOverflow that states to include the msvcr100.dll in the same folder as the installed app. This might be worth trying, you can get a copy of this file from here:- http://aerofred.juice.org.uk/other/msvcr100.zip
If that doesn't work you can get the latest version of the MS Visual C++ runtime libraries from here:-
https://docs.microsoft.com/en-GB/cpp/windows/latest-supported-vc-redist?view=msvc-170 in the section "Visual Studio 2015, 2017, 2019, and 2022" and it would be the X86 version needed.
Pleae note that the reference to "fnControlsSetup" in the error message relates to the function in my code where the error occurs and has nothing to do with fan speed controls.
Hi Mike,
Just to say that CCcleaner never caused a problem with Tweaker on my Windows 10 pc. It was only when I transferred yo the ASUS Windows 10 machine that it failed to work.
That situation did not improve when i upgraded to W11.
I have tried both options from the info you sent, even switching my PC off after install and rebooting with no change in the status message I get on sking Tweaker to run. deleted previous downloads of Tweaker and ran from the source given in the message and as that did not work I tried the second option letting that download rto my PC, again with no change.
Best Regards
Mike
I can't offer a solution but can offer that my ModeS Tweaker works fine on my W11 laptop, which was an upgrade from W10. I've not done anything other than follow the standard upgrade path.
By co-incidence it is also an Asus laptop, but there's no logical reason to suspect that the brand of laptop would have any bearing.
So it's not a W11 issue, or an Asus laptop issue.
I'm sorry none of my suggestions have fixed your problem Mike, and at the moment I have nothing else to suggest.
It's frustrating because it's a configuration fault somewhere, that isn't present on any of my machines, thus making finding the solution that much harder.
egnx
Thanks guys.
Will have to live with it for now.
The PC I am now using is an all in one ASUS Viva V421EA, intel i7 chip, 237gb on board 8mb RAM and a hard disk of 1tb.
Later today I will try a copy of Mode S Tweaker on my Dell laptop as I keep a copy of Basestation on that with all the files that Tweaker would need present
If it runs there at least I could check what's missing on my database and sort it.....
Thanks or your help
Mike
I have created a new test version of Mode-S Tweaker that uses a different version of System.Data.SQLite.dll that is not reliant on the Microsoft Visual C++ Runtime Library.
Download the zip file from here:- http://aerofred.juice.org.uk/other/MSTweaker_test_20211129.zip
Extract the "aReadMe_test_install.txt" file from the zip file and follow the contained instructions.
Let us know if you are then able to use the app.
Hi there,
I can confirm that I followed your instruction's and all is now running properly.
Thank you for the time and effort put into solving this problem, it is very much appreciated.
Best regards
Mike ;D ;D ;D
Quote from: Roadrunner on November 29, 2021, 03:47:32 PM
I can confirm that I followed your instruction's and all is now running properly.
That's great news and Thank You
EGNX for finding a solution.
Just for completeness, I downloaded the "test" version and it works just fine on my desktop running Windows 10.
Mike,
That is good news all round.
My new PC is now successfully running BaseStation, Plane Plotter as a GS. Tweaker and Plane Base so one very very happy guy here.
The assistance we all get from the programmers of the add ons ND THE EXPERIENCE AVAILABLE VIA this forum is truly great
Thanks to everyone that takes part.
Mike