As the BinaryFormatter support is being discontinued from .NET and it is discouraged to use it, we will remove the serialization constructor from the NetOfficeCOMException class.
Fixes this warning: SYSLIB0051: Legacy serialization support APIs are obsolete
References: