title: Accessing A MySQL Database In Silverlight (C#)
body: <p>I am trying to access a MySQL database in a <a href="http://silverlight.net" rel="nofollow">Silverlight</a> application. I have tried to reference to System.Data.Services to access the SQLClient class, but it says:</p>
  
  <blockquote>
    <p>You can't add a reference to
    System.Data.Services.dll as it was not
    built against the Silverlight runtime.
    Silverlight projects will only work
    with Silverlight assemblies.</p>
  </blockquote>
  
  <p>I have also tried to add a reference to MySQL.Data, but received the same error. </p>
  
  <p>I have read online that I will need to use a WebService, but I do not know how to make one.</p>
  
  <p>I am using Visual Studio Ultimate 2010, I am targeting PHP and MySQL servers, not ASP, and would appreciate any help. </p>