Wednesday, 3 March 2010
Dude, where are my WCF Data Classes?
I encountered an annoying quirk about the current implementation of WCF today - I created a class which had a data contract, saved, built and published my project and updated the service reference in my client to make sure it had all been deployed properly. On viewing the contents of the service in the object browser, my newly created class was not there! Why?!? The reason is that The data contract is deemed worth publishing unless something is using the thing. So, to get around the problem, i created a function that called used the data class, rebuilt/published and hey presto! it appeared in my list of available classes.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment