Jazea / Onvif.Core

A lightweight ONVIF Discovery and Client library.
MIT License
71 stars 26 forks source link

Bad Request #10

Open ali-mhz opened 1 year ago

ali-mhz commented 1 year ago

I'm trying to connect to an Axis camera that its onvif user is created and is active and i got this error: One or more errors occurred. (The remote server returned an unexpected response: (400) Bad Request.)

I found a code here and in win forms application it works great but in a dotnet core web api the following line does not work: mediaClient.ClientCredentials.HttpDigest.AllowedImpersonationLevel = System.Security.Principal.TokenImpersonationLevel.Impersonation; That's why i installed this package.