As I have done my research regarding this problem of mine, I still have no luck in solving my error of Error 1 The type or namespace name \'DataMember\' could not be
I have solved the problem.
I just removed the System.Runtime.Serialization in the references in the project explorer and affffded it by browsing then it worked. Weird.