I am using .NET 4.5 Visual Studio 2012 web application . It gives me runtime error as
CS0234: The type or namespace name 'Soap' does not exist in the namespace 'System.Runtime.Serialization.Formatters'
But I added the reference already to System.Runtime.Serialization.Formatters.Soap;
And also in the Class file as;
using System.Runtime.Serialization.Formatters.Soap;
A reference needs to be added from the framework. Just check and add this:
System.Runtime.Serialization.Formatters.Soap
go to Solution Explorer, Right click on Reference, Then select 1st option ie Add Reference. select assemblies and search SOAP in search bar. select library and press ok. error will get solved
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.