Unhandled exception in access control web service [StartFetchAccessControlSystemConfiguration] with message: Object reference not set to an instance of an object.

I just develop plugin which follow example from “DemoAccessControlPlugin”.

After i deploy my plugin to “Milestonr Management Client”, and go to create new access control. In log-file I got this error

2020-11-18 6:58:51 PM UTC+07:00 Error AccessControlCommandToken Unhandled exception in access control web service [StartFetchAccessControlSystemConfiguration]

with message: Object reference not set to an instance of an object.

Exception details:

System.NullReferenceException: Object reference not set to an instance of an object.

at VideoOS.Event.Server.AccessControl.AccessControlSystem.StartFetchConfiguration()

at VideoOS.Event.Server.AccessControl.AccessControlManager.StartFetchAccessControlSystemConfiguration(Guid accessControlSystemId)

at VideoOS.Event.Server.AccessControl.AccessControlServiceImplementation.StartFetchAccessControlSystemConfiguration(StartFetchAccessControlSystemConfigurationParams parameters)

at VideoOS.EventServer.WebService.AccessControl.AccessControlCommandToken.CallWithUserValidation[TParams,TResp](String token, TParams parameters, String methodName, Func`3 func)

2020-11-18 6:58:53 PM UTC+07:00 Error AccessControlManager LookupAccessControlSystem. No access control system found. Id: a8d3b3ba-49a5-4ab0-aa14-d9cf0a9aa50f

Please help me.

First question : why i not see “ACUtil.Log” in method “StartFetchConfiguration”?

Second question : my webservice is third-party access controller, Must i develop middleware everything same like “http://localhost:8732/DemoACServerApplication/WebService” ?

Thanks a lot ,

Answer 1.)

I guess the exception is caught by an exception handler and not logged.

Answer 2.)

No you don’t need to develop middleware, the Demo Access Application is meant to be an emulator for a real access control system.

Demo Access Control Plug-in sample –

https://doc.developer.milestonesys.com/html/index.html?base=samples/acplugin.html&tree=tree_1.html

thanks a lot, now i solved that error.

i just newbie for milestone, sorry and thank a lot.

Thank you for the feedback. Everybody starts by being a newbie, it is positively inspirational when developers new to the MIP SDK crack the learning curve and get working. I hope you will find that the Developer Forum will be a help anytime you need it (and who doesn’t a need little help from time to time) and a forum you will get back to and engage in.