I am implementing Onvif by using onvif device manager dll.
I have three cameras:
1) ReadLeaf - In this i am able to discover the device, get their scopes and profiles and implemented ptz control.
2) IPNC(Sparsh) - In this i am able to discover the device but when i am trying to get its profiles using GetProfiles() then it is giving me exception.
Exception is in proxy.EndGetSystemDateAndTime (in GetSystemDateAndTime() method) and in the Device.Async.fs project.
System.ServiceModel.Security.MessageSecurityException was unhandled by user code
Message: An exception of type 'System.ServiceModel.Security.MessageSecurityException' occurred in mscorlib.dll but was not handled in user code
Additional information: The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Digest realm="onvif", qop="auth,auth-int", nonce="586e0f1fca67436c6125", opaque="628c895d"'.
3) HoneyWell - In this i am able to discover the device but when i am trying to get its profiles using GetProfiles() then it is giving me exception.
**Exception is in proxy.EndGetProfiles ( in GetProfiles() method) and in the Media.Async.fs project **
System.ServiceModel.ProtocolException was unhandled by user code
Message: An exception of type 'System.ServiceModel.ProtocolException' occurred in mscorlib.dll but was not handled in user code
Additional information: The remote server returned an unexpected response: (400) Bad Request.
Can you tell me what is the exact problem and what is the solution and why different cameras are behaving differently?
I have checked honeyWell and IPNC with ONVIF Device Manager and in both the error is
**The Http request is unauthorized with client authentication scheme 'Anonymous'.
**
Last edit: naveen 2017-01-12
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You need to run every call to ONVIF dll in try-catch block to get the normal error behavior.
You can cast exception to WebException and read meaningful description.
You can also (this is preferable way) look on your http traffic with the https://www.wireshark.org/ This tool will help you to get description of the error. This can help you to find the reason.
Regards,
Andrey Vrana
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Andrey!
I am implementing Onvif by using onvif device manager dll.
I have three cameras:
1) ReadLeaf - In this i am able to discover the device, get their scopes and profiles and implemented ptz control.
2) IPNC(Sparsh) - In this i am able to discover the device but when i am trying to get its profiles using GetProfiles() then it is giving me exception.
Exception is in proxy.EndGetSystemDateAndTime (in GetSystemDateAndTime() method) and in the Device.Async.fs project.
3) HoneyWell - In this i am able to discover the device but when i am trying to get its profiles using GetProfiles() then it is giving me exception.
**Exception is in proxy.EndGetProfiles ( in GetProfiles() method) and in the Media.Async.fs project **
Can you tell me what is the exact problem and what is the solution and why different cameras are behaving differently?
I have checked honeyWell and IPNC with ONVIF Device Manager and in both the error is
**The Http request is unauthorized with client authentication scheme 'Anonymous'.
**
Last edit: naveen 2017-01-12
Hi.
You need to run every call to ONVIF dll in try-catch block to get the normal error behavior.
You can cast exception to WebException and read meaningful description.
You can also (this is preferable way) look on your http traffic with the https://www.wireshark.org/ This tool will help you to get description of the error. This can help you to find the reason.
Regards,
Andrey Vrana
May i send you the wireshark capture file of the cameras to you?
Last edit: naveen 2017-01-12
Yes. Sure. But please use my e-mail: andrey.vrana@gmail.com
Ok. Thank you.
Hi,
Now i have figured out the problem in the IPNC camera. It was due to the difference in the timing of device and client.
Last edit: naveen 2017-01-17
Hi.
Set synchronization from ntp in time settings to avoid this issue in future.
On Tue, Jan 17, 2017 at 8:49 AM, naveen naveenverma@users.sf.net wrote:
--
Best regards,
Andrey Vrana
email: andrey.vrana@gmail.com andrey.vrana@gmail.com
skype: andreyvrana
cell: +375 (29) 5002069
Thank you Andrey!