David Smith

David Smith

  • NA
  • 2k
  • 0

C# silverlight wcf service

Dec 28 2011 5:07 PM
Can someone point in the right direction. I using silverlight to get access to sdf file to retrieve data. I am getting an error below can point me into the right direction.



base {System.SystemException} = {System.Net.WebException: The remote server returned an error: NotFound. ---> System.Net.WebException: The remote server returned an error: NotFound.
  at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
  at Sys...



 [OperationContract]
  public List<ClientDetails> GetCLientList()
  {

  GenericDatabaseClientEntities clientEntity = new GenericDatabaseClientEntities(); the error happens right here, I using a ADO 4.0 .net Entity model to get access to an sdf database file.


  var clientInfo = from c in clientEntity.ClientDetails
  select c;

  var clientList = new List<ClientDetails>();

  foreach (var item in clientInfo)
  {

  var client = new ClientDetails
  {
  Author = item.Author,
  Category = item.Category,
  ClientId = item.ClientId,
  ContractName = item.ContractName,
  Description = item.Description,
  Name = item.Name,
  Version = item.Version,
  };

  clientList.Add(client);
  }



  return clientList;
  }