After having to update Indy to version 10.6.2 in Delphi XE5, it is returning the error below in some of our projects, where we have not found solutions for it.
F2051 Unit IPPeerClient was compiled with a different version of IdTCPConnection.TIdTCPConnection <
This error occurs when I use the TDSRestConnection
component.
Detail, the unit cannot be deleted. If I try to delete it from uses
, Delphi adds it again, returning the error.
We have tried in several ways to solve the problem, but from all attempts we run into the error in the compilation of TDSRestConnection
, apparently it is not supporting this version of Indy.
IPPeerClient
unit is part of Embarcadero technologies, including DataSnap, which internally use a private copy of Indy. Upgrading the public version of Indy is not supposed to affect those techs. Sounds like a bug on Embarcadero's end if upgrading Indy is breakingTDSRestConnection
. You should report this to Embarcadero. Though XE5 is quite old, so they are not going to do anything with this unless it also affects modern versions. Unless it has already been fixed. Is upgrading beyond XE5 an option for you? – Remy Lebeau