.net - Common causes of SlSvcUtil.exe not reusing a data contract types -


i have wcf web service that's being consumed both silverlight , .net clients. in order share data contract types both clients, contracts defined in 2 class libraries: 1 silverlight , 1 .net. files defining data contract types shared between 2 library projects via links.

generation of proxy consume service works nicely .net. specifically, data contract types .net class library reused expected.

however, generation of silverlight proxy via slsvcutil.exe not reuse data contract types. true whether invoke slsvcutil.exe command line /r switch or use "add service reference" dialog visual studio.

through trial , error, i've determined single type utilized in single service method source of problem. if service ceases use type, slsvcutil.exe generates proxy expected (with types reused data contracts assembly).

now i've narrowed issue down type, i'm not sure next. type contain member implements ixmlserializalble. cause behavior? common causes this? approaches further troubleshooting?

i'm sure you've long since moved on this, came across similar problem morning - had type didn't have default constructor. after adding one, mysterious type went away when running slsvcutil. why work svcutil beyond me, though. hope helps!


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -