During the implementation of a duplex service, I created a new class and I decorated it with the attribute DataContract
: moreover, I decorated the properties of this class with the attribute DataMember
, including the property public IPEndPoint Endpoint { get; set; }
.
Then I launched svcutil which has generated the generatedProxy.cs
and the app.config
files. The build of the project is successful, but some warnings are reported as follows:
The type 'System.Net.IPEndPoint' in 'C:\Users\vincenzo\Documents\Visual Studio 2010\Projects\SampleDuplex\Client\generatedProxy.cs' conflicts with the imported type 'System.Net.IPEndPoint' in 'c:\Program Files\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\Profile\Client\System.dll'. Using the type defined in 'C:\Users\vincenzo\Documents\Visual Studio 2010\Projects\SampleDuplex\Client\generatedProxy.cs'. C:\Users\vincenzo\Documents\Visual Studio 2010\Projects\SampleDuplex\Client\generatedProxy.cs 90 28 Client
What causes these warnings?