Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"FileNotFoundException on Assembly WebEye.Stream.x64/32"/ .net core 3.1 using demo Stream.GetLocalStreams #73

Open
professordave opened this issue Jan 13, 2020 · 11 comments

Comments

@professordave
Copy link

Using the nuget version
WebEyeStreamControl.Wpf 1.0.3
WebEye.Stream 1.0.2

Hello, Copied the demo code into a working .net core 3.1 project. Instead of my original real main window, place this code into another new Main windows that gets shown by a button.

Click on button Add Local Stream
When the execution gets to the line from the demo:
public ObservableCollection LocalStreams { get; }
= new ObservableCollection(Stream.GetLocalStreams());

It throws a System.IO.FileNotFOundException.

System.IO.FileNotFoundException: 'Could not load file or assembly 'WebEye.Stream.x64, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.'

Tried forcing project to 32bit and 64bit and get the error for either the 64bit or the 32 bit assembly

I tried some code from the github repository
var path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory,
Environment.Is64BitProcess ? "WebEye.Stream.x64.dll" : "WebEye.Stream.Win32.dll");
var name = AssemblyName.GetAssemblyName(path);
return Assembly.Load(name).GetType("WebEye.ManagedWrapper");

And it seems to fail on the load, but the GetAssemblyName does succeed as the dll files are there

@jacobbo
Copy link
Owner

jacobbo commented Jan 13, 2020

Hello, sorry, did not test it with .net core, try .net framework.

@professordave
Copy link
Author

professordave commented Jan 13, 2020 via email

@professordave
Copy link
Author

professordave commented Jan 13, 2020 via email

@professordave
Copy link
Author

professordave commented Jan 13, 2020 via email

@jacobbo
Copy link
Owner

jacobbo commented Jan 13, 2020

1.0.3 is the latest version.

@arteny
Copy link

arteny commented Jul 4, 2020

Same error for .NET Framework 4.5.2 (WebEye.Stream.x64 not found).
Where I can get WebEye.Stream.x64.dll?

@jacobbo
Copy link
Owner

jacobbo commented Jul 4, 2020

the dll is part of the nuget package. do you see it there?

@arteny
Copy link

arteny commented Jul 5, 2020 via email

@jacobbo
Copy link
Owner

jacobbo commented Jul 5, 2020

It is there for net40, which is compatible with net 4.5.2. Can you go to your output directory and check whether WebEye.Stream.x64.dll is in there?

@arteny
Copy link

arteny commented Jul 6, 2020 via email

@gigyjoseph
Copy link

Same error for .NET Framework 4.5.2 (WebEye.Stream.x64 not found). Where I can get WebEye.Stream.x64.dll?

Need to build Native project in 64 bit mode. And mostly you need Boost C++ library also 64 bit build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants