What is considered an invalid/valid configuration by Milestone Access Control ?

Hello,

We have a working Access Control plugin for some time in different environments. One of our customer is trying to re-install it with the same configuration he was using, but when creating a new Access Control object he get an error message “Invalid Configuration Received”.

I have tried to reproduce this in other environments but without any success and I cannot find any information about similar bugs and errors.

So I m wondering, what is considered an invalid/valid configuration by Milestone Access Control ?

Hello,

as a general rule, there could be two different scenarios for your problem:

  • there is an issue deserializing configuration when it comes into Management Client from Event Server. Make sure no patch is applied to your ES.
  • configuration gets properly deserialized but the contents are invalid:
    • elements come without ID
    • duplicated ID’s
    • none or more than Access Control System server targeted
    • circular references among device

For either of them you should be able to find logs in Event Server informing you from the $ProgramData\Milestone\XProtect Event Server\logs

I hope this helps with your issues.

Regards,

Jorge

Hello Jorge,

Thank you for your answer, it actually helped me a lot, I guessed I missed some of the logs files, nevertheless I just found the corresponding error in the logs and you were right :

Error AccessControlManager LookupAccessControlSystem. No access control system found. Id: eb05f7e8-cf4a-4524-a985-82f24be0b3e8

I am going to look further into that one, thank you very much :slight_smile:

I don’t understand anything anymore… I create a new empty ACConfiguration at the begining, then user enter parameters, and then contact is made with my server and I get the whole list of everything, server, servertype, doors… but at the end Milestone throw back to me the error saying the Id is not found when I try to use “ACConfiguration.CreateACConfiguration()”.

It’s like if my server doesn’t exist

Hi Sylvain,

make sure that the configuration sent to ACM in Event Server has a block following the example below:

            <IconKey>ServerConnected</IconKey>

            <Id>d268fb6a-447e-4404-919e-e3cba3e298b3</Id>

            <Name>Demo System on localhost</Name>

            <Properties />

            <InstanceTypeId>T\_Server</InstanceTypeId>

            <IsEnabled>true</IsEnabled>

            <UnsupportedCommandTypeIds xmlns:d5p1="[http://schemas.microsoft.com/2003/10/Serialization/Arrays](http://schemas.microsoft.com/2003/10/Serialization/Arrays "http://schemas.microsoft.com/2003/10/Serialization/Arrays")" />

        </ACElement>

In order to check deserialization of configuration that comes into Event Server from an external ACSystem and then goes into Management Client, you can use DemoAccessControlPlugin sample that comes as part of MIPSDK → https://doc.developer.milestonesys.com/html/samples/ACPlugin.html and see whether this solution works with your plugin.

You can find your AC configuration xml files in $\ProgramData\Milestone\XProtect Event Server\config\data and compare with each other.

I hope this helps.

Cheers,

Jorge

Thanks for your help Jorge,

It seems like our customer didn’t watch carefully when I asked them if the event server was patched… putting off the patch solve this problem, but our customer cannot afford to remove it cause whitout this patch some other event server bugs appear…

I don’t really know what we can do in this case, but I guess my best bet is to contact MIP support…

Thanks again for all your help !

Best regards

Sylvain