Saving XML to Milestone VMS

Am looking at the Plugin sample for SaveOptionsConfiguration and trying to implement it for component integration and some how am getting a System.NullReferenceException when “SaveOptionsConfiguration” is being called. Here’s my function:

private Guid setProperty(String sKey, String sValue)

{

​ Guid guid = Guid.NewGuid();

    _VideoOS.Platform.Configuration.Instance.SaveOptionsConfiguration(guid, false, Utility.toXML(sKey, sValue));_

 _return guid;_

}

Am not sure what went wrong or is that the way to set the Guid. Do I get the Guid from the VMS instead of creating a new instance here?

Does the Property plugin sample work for you?

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

I have a hunch that the GUID might be OK, but the XML might not. Maybe you can compare with the plugin sample..

I would like to recommend this article also-

https://developer.milestonesys.com/s/article/debugging-techniques-for-Smart-Client-plugins

Thanks for the reply. The problem turned out to be some connection problems to the VMS yesterday. After sorting that out, it’s working fine now.​