Sometimes, when I try to build my project I get the following compile-time error:
“‘System.String’ must be Xml serializable to be a message part type — check event log for more information“
Despite what the error says – there’s no further information in the event log as it suggests.
I’ve certainly used System.String parts before and it worked just fine, why the error now??
After a couple of hours of chasing my tail around this, I did the only sensible thing to do – I restarted visual studio.
Restarting VS.net it will solve every time. Great!