Locations of visitors to this page


Silverlight 2 Beta 2 VB only bug

Onteora Software

Ken Tucker's Blog

About the author

Author Name is someone.
E-mail me Send mail

Recent posts

Recent comments

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2008

Silverlight 2 Beta 2 VB only bug

           I have been playing around trying to use a wcf service with a vb silverlight 2 beta 2 app and kept getting a InvalidOperationException when trying to call the wcf service (of course it works fine in c#). 

Tim Anderson's blog correctly shows all you have to do is give the contract a fully qualified namespace to fix the issue.   

http://www.itwriting.com/blog/?p=666

  

So in a nut shell vb generates this in ServiceReferences.ClientConfig

         <client>            <endpoint address="http://localhost:1735/Service1.svc" binding="basicHttpBinding"                bindingConfiguration="BasicHttpBinding_IService11" contract="ServiceReference1.IService1"                name="BasicHttpBinding_IService1" />

        </client>

When it should be

         <client>            <endpoint address="http://localhost:1735/Service1.svc" binding="basicHttpBinding"                bindingConfiguration="BasicHttpBinding_IService11" contract="VBSqlData.ServiceReference1.IService1"                name="BasicHttpBinding_IService1" />        </client>

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Posted by Ken Tucker on Sunday, June 15, 2008 11:17 PM
Permalink | Comments (0) | Post RSSRSS comment feed

Related posts

Add comment


(Will show your Gravatar icon)  

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

Friday, August 29, 2008 11:26 PM