encountered an error while processing {1}. Ensure that you are using a valid CIM session and that the Ethernet Switch Profile ...

{0} encountered an error while processing {1}. Ensure that you are using a valid CIM session and that the Ethernet Switch Profile is correctly registered. If you are passing input objects, ensure these are valid instances of the appropriate type. See the Exception member of this error record for more details on the underlying issue.