Open Oneiros90 opened 3 years ago
First, you should check if your camera supports ONVIF, If so It seems your camera doesn't support SOAP security header. You can download the repo and comment out at OnvifClientFactory.cs where SoapSecurityHeaderBehavior is added.
I highly recommend you to check https://sourceforge.net/projects/onvifdm/, this project is also .NET and much more complete.
Regards, Eddy Zavaleta
Ok I actually solved this problem: I basically created a new class called OnvifClient
that provides the same methods of OnvifClientFactory
but reuses the same data (username, password, uri, binding and capabilities) when a client is created. And now it works. I did this because I noticed that the exception is raised on this line, which is weird.
Hi, thank you for this library. I'm actually having this exception when I try to run the test program:
I'm using .Net Core 3.0, Visual Studio 2019 and a simple Foscam IP Camera. Any idea why I get that exception?