nil
nil

Reputation: 145

'System.Runtime.Serialization.IExtensibleDataObject' is defined in an assembly

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

Answers (2)

Harsha Bhat
Harsha Bhat

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.

Related Image is attached here

Upvotes: 0

nil
nil

Reputation: 145

I have added the System.Runtime.Serialization in the main file and the error is been removed.

Upvotes: 6

Related Questions