Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

compiler does not recognize System.Runtime.Serialization.DataContractSerializer c#

I try to use System.Runtime.Serialization.DataContractSerializer, but I get a compiler error:

"The type or namespace 'DataContractSerializer' does not exist in the namespace 'System.Runtime.Serialization' "

What could be causing this error?

like image 685
Erez Avatar asked Aug 04 '26 19:08

Erez


1 Answers

Add reference to System.Runtime.Serialization assembly in your project.

like image 58
Viru Avatar answered Aug 07 '26 07:08

Viru



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!