Something broke. Saving the layout in the registry and loading doesn't work anymore? v18.3

So I tried saving to as XML. But getting an error illegal datatype conversion when I call : Get ComLoadFromFile of (pvComObject(ghoSigCjPropEx)) sXMLFile to bOk