Reputation: 145
I have created a service and when calling it and executing it getting the following error.Anybody tell me what is this error
The type 'System.Runtime.Serialization.IExtensibleDataObject' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
I have used System.Runtime.Serialization in my project.
Upvotes: 3
Views: 5989
Reputation: 317
My problem got solved by following procedure.
In Reference section of Project (i.e, In solution) add "System.Runtime.Serialization"
and Add "using System.Runtime.Serialization;" before namespace.
Upvotes: 0
Reputation: 145
I have added the System.Runtime.Serialization in the main file and the error is been removed.
Upvotes: 6