Method not found: 'Boolean VideoOS.Platform.Login.LoginSettings.get_SecureOnly()'

Hi,

We are getting MissingMethodException error on Milestone version 2021 R1 for ‘Boolean VideoOS.Platform.Login.LoginSettings.get_SecureOnly()’

As per document SecureOnly property supported on server versions 2021 R1 or newer but we are getting MissingMethodException exception.

Can you please suggest what could be the possible reason for this problem?

Regards,

I wonder this is an error of the name of the method..

bool VideoOS.Platform.Login.LoginSettings.SecureOnly

[get]

If true, authentication over https is accepted. Can only be used for server versions 2021 R1 or newer. If false, authentication over both http and https is accepted. Can be used for any server version.

SecureOnly() instead of get_SecureOnly()

https://doc.developer.milestonesys.com/html/index.html?base=miphelp/class_video_o_s_1_1_platform_1_1_login_1_1_login_settings.html&tree=tree_search.html?search=secureonly

If that does not fit please elaborate on how you use this when seeing the exception and answer: Is this a plugin? If yes, what is the environment?

Hi @Bo Ellegård Andersen (Milestone Systems)​ ,

Yes we are using this with plugin.

We are trying to get current login is secure or not.

var loginSettings = Configuration.Instance.ServerFQID.ServerId.UserContext.LoginSettings.FirstOrDefault();

bool isSecure = loginSettings.SecureOnly;

When we try to get “loginSettings.SecureOnly”, it is throwing error.

Please suggest

A plugin.. Smart Client plugin? Smart Client 2021R1? (I will try it out if you give me these details.)

Hi @Bo Ellegård Andersen (Milestone Systems)​

Yes Smart Client 2021 R1,

Additional Information : 1 machine it is working as expected, one machine with Same Smart Client version it is giving the error.

If the two Smart Clients are the same version they will be using the same version of VideoOS.Platform.dll, and then they should either both have the method or both miss it.

Can you double check this? Please also see whether there is more than one VideoOS.Platform.dll in the folders and subfolders, we are speculating if they might load a different version of that dll even if they are the same Smart Client..

Thanks @Bo Ellegård Andersen (Milestone Systems)​

We have double check on machine where it is not working in that machine Milestone Version 2022 R3 is installed. sorry for the mixed up with version.

Can you please suggest If we need to get SecureOnly property OR similar information of LoginSettings for Milestone Smart Client 2020 R3, how we can do that?

The SecureOnly flag was introduced with 2021R1, in Management Client login and Smart Client login as warnings if not secure and in the MIPSDK as a flag to govern the login. This cannot be used using a MIP SDK or a MIP environment older than 2021R1.

You could do the workaround that you ask for the version and if it is older than 2021R1 you know it is insecure.

(By secure I here mean setup and using certificates.)

Thanks @Bo Ellegård Andersen (Milestone Systems)​ ,

We can do that,

Can you please confirm older then 2021R1 Smart Client, always connecting with HTTP, there is no HTTPS option available?

If yes we can go with wok around.

Regards,

Please see this explanation - https://doc.developer.milestonesys.com/html/index.html?base=gettingstarted/intro_soap_protocols.html&tree=tree_3.html

If you use Basic user as a login user, it is Basic HTTP over TLS and 443 port.