Serialization Error When Updating Remote IP Ranges in Exchange Receive Connector

Surya kumar 370 Reputation points
2025-04-24T06:26:25.1033333+00:00

Experiencing serialization and deserialization errors while attempting to update the IP ranges of a receive connector in Exchange. The following commands are being used:

$recCon = get-receiveconnector "EX1\relay"
$recCon.remoteIPRanges += "1.1.1.1", "1.1.1.2"
set-receiveconnector $recCon -remoteIPranges $recCon.remoteIPRanges

The error received is:

"Cannot convert value "1.1.1.1" to type "Microsoft.Exchange.Data.IPRange". Error: "Serialization TypeConverter.DeserializeObject(Microsoft.Exchange.Data.IPRange). Type is not allowed for custom construction. Deserialization Failed Error: System.Exception: SerializationData is not signed."

This method worked previously, and all commands are executed within the Exchange Management Shell, not through remote PowerShell. Assistance in resolving this issue would be appreciated.

Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,885 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Ron D 0 Reputation points
    2025-05-06T12:25:21.7933333+00:00

    I ran into the same issue. I tried opening EMC on the EX server as Administrator, and that seemed to solve the issue.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.