title: Silverlight application not communicating with web service on server
body: <p>I have developed a Silverlight application locally on my laptop.</p>
  
  <p>Everything works fine however when I deploy it to the server the web service runs fine, in that it talks to the data base and gets the desired results. My problem lies with the front-end <code>SL</code> app where it is bringing up this error:</p>
  
  <pre><code>Debugging resource strings are unavailable
  
     at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary()
     at FrontEnd.WebService.UIDReturnCompletedEventArgs.get_Result()
     at FrontEnd.Views.Users.client_UIDReturnCompleted(Object sender, UIDReturnCompletedEventArgs e)
     at FrontEnd.WebService.Service1SoapClient.OnUIDReturnCompleted(Object state)
  Caused by: [Async_ExceptionOccurred]
  Arguments: 
  Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&amp;Version=4.1.10329.0&amp;File=System.dll&amp;Key=Async_ExceptionOccurred
  </code></pre>
  
  <p>So I went to the link given and it stated that is was a <code>Async_ExceptionOccurred</code> error. 
  Is this a timing issue? The <code>UIDReturn</code>is a web method that brings back a user ID from the database, this is initiated on page load of the Silverlight page, I thought perhaps the value was not back in time and therefore this is why it was crashing however this works locally and on the test server so perhaps it is an IIS issue? </p>
  
  <p>Here is where the web service is called-</p>
  
  <pre><code> void OnLoadCompleted(object sender, RoutedEventArgs e)
      {
          string fullUserName = WebContext.Current.User.DisplayName;
          string userName = fullUserName.Substring(fullUserName.IndexOf('\\') + 1);
  
  
          WebService.Service1SoapClient client = new WebService.Service1SoapClient();
  
              client.UIDReturnCompleted += new EventHandler&lt;UIDReturnCompletedEventArgs&gt;(client_UIDReturnCompleted);
              client.UIDReturnAsync(userName);
  
      }
  </code></pre>
  
  <p>The <code>fullUserName</code> is from the current logged in user, perhaps this value has not been loaded yet and due to this it is breaking the connection.</p>