title: Silverlight 5, return from WCF Ria Service, VB.NET - Simple Hello World
body: <p>i can't found on any website (yeah.. i took a good couple or hours searching/Reading/testing), a way to call a simple Hello World Function by Return, and show it to the user.</p>
  
  <p>Here is my WCF class code:</p>
  
  <pre><code>Imports System.ServiceModel
  Imports System.ServiceModel.Activation
  
  &lt;ServiceContract(Namespace:="Servicio")&gt;
  &lt;AspNetCompatibilityRequirements(RequirementsMode:=AspNetCompatibilityRequirementsMode.Allowed)&gt;
  Public Class ServicioBD
  
  &lt;OperationContract()&gt;
  Public Function ReturnString(ByVal number As Integer) As String
  
      If number = 1 Then
          Return "Hello World!"
      Else
          Return "Bye World!"
      End If
  
  End Function
  </code></pre>
  
  <p>I added this service with the name "ServicioWCF_BD".</p>
  
  <p>And this is how im calling it from the MainPage.xaml:</p>
  
  <pre><code>Private Sub SayHello()
  Dim wcf As New ServicioWCF_BD.ServicioBDClient
      Dim message As String = wcf.ReturnStringAsync(1)  'ERROR THE EXPRESSION DOESNT GENERATE A VALUE
      MessageBox.Show(message)
  End Sub
  </code></pre>
  
  <p>When i try to get the value from the function visual says the error: "The expression doesnt generate a value".</p>
  
  <p>I hope you can help me, actually its the first time im stuck so hard with something that looks so simple.....
  * sigh *</p>