No path is too difficult. No destination is too far !
Versioning problem in reference.cs in WCF service consumption in Silverlight 2
A starnge problem occured when I was trying to add reference to one of my WCF service in my silverlight project. When deeply researched I found that some of the data contracts have been references twice in the reference.cs i.e. some classes with version 3.0.0.0 and some with 2.0.0.0 version. Strange!!
A quick work around was to generate the reference via svcutil.exe and it worked well in case where the project was justa relay service and not the silverlight application. In silverlght app, it throws the error for async and completed methods. Then I used SLSvcutil.exe i.e. svcutil for silverlight which is bundled with silverlight 3 only. I used this and generated the refences.cs for me. One problem left is FAULTCONTRACTS in the code. That i removed manually and it is working now.
| Print article | This entry was posted by Ashish Sehajpal on February 18, 2010 at 3:53 pm, and is filed under Development. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
about 5 months ago
Good Article
about 1 month ago
Hello from Vyatka River!!! Thank you for information! Itґs a good idea for next full revision…
))
Write more!!!