I have a app that I have been working on for weeks. Monday it started having issues with this error - seemingly out of the blue.
I have tried:
- uninstalling and reinstalling the dll using the install provided by the author.
- I have tried fiddling with the x64/x86, framework target, etc.
- My last attempt was to create a brand new app that only has this reference and I get the same error.
- Deleting the references to the installed dll's and referencing the dlls that are in the provided demo app.
I can open the demo app that uses this dll in VS that app runs fine.
System.IO.FileNotFoundException: 'Could not load file or assembly 'FLIRCommunicationsAdapter.dll' or one of its dependencies. The specified module could not be found.'
The error happens on the following line in Program.cs:
Application.Run(new Form1());
The dll is not referenced directly but is a dependent of another dll. I have compared references between the demo app and my recent, simplified test app and they are the same.
The dll does exist at the location called out in the reference properties.
I have tried fuslogvw and it reports that all dll's loaded successfully.
Any help would be appreciated.
EDIT This is the default Windows form app with two references added to the Flir libraries and one line that tries to create a Discovery object.
I have references to the following:
Analyzers
Flir.Atlas.Image
Flir.Atlas.Live
Microsoft.CSharp
System
System.Core
System.Data
System.Data.DataSetExtensions
System.Deployment
System.Drawing
System.Windows.Forms
System.Xml
System.Xml.Linq
My code:
using Flir.Atlas.Live.Discovery;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApp2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
Discovery discovery;
}
}
}
If I remove "Discovery discovery;" the code runs fine.
NOT a duplicate of this post. As stated in the problem description I tried fuslogvw with no results. This is also not a ASP project. I do not have a C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files directory.