locked
first try wcf data service always times out from client RRS feed

  • Question

  • hi,

    I have read all other posts and have been googling this for the last 2 hours! I started wcf data services about 3 hours ago btw.

    My service is on an asp.net4 app, the ado entity model exposes an sql server db.

    Here is FasDataService.svc.cs

     public class FasDataService : DataService<FASStoreEntities>
     {
    public static void InitializeService(DataServiceConfiguration config)
    {
       config.DataServiceBehavior.MaxProtocolVersion = DataServiceProtocolVersion.V2;
       config.UseVerboseErrors = true;
       config.SetServiceOperationAccessRule("*", ServiceOperationRights.All);
       config.SetEntitySetAccessRule("*", EntitySetRights.All);
    }
    }
    
    

    I have then a win forms 4 app with the following code in the Main()
    FASStoreEntities fas = new FASStoreEntities(u);
    var a = from al in fas.Customers 
      where al.Name == "Alinio"
      select al;
    MessageBox.Show(a.First().Phone1);
    


    **When I run the web app and point to http://localhost:15995/FasDataService.svc/Customers(1) it loads up the one and only customer in there**

    My error is WebException was unhandled:
    The operation has timed out.
    The inner exception is null.

    I changed this also : var a = from al in fas.Customers select al;
    But it times out on the next line, at MessageBox.Show(a.First().Phone1); 

    Also, Everything is local but when I do this (in chrome) it takes a good load of time! Its scary to think of how it would perform in production?

    Thanks

    Friday, October 8, 2010 8:43 PM

Answers

  • This somehow got fixed on its own because it wasn't happening the next morning, but through the course of the day i had tons of errors and the only thing that helped me through it was fiddler2

    Ive learnt its a must have since its very hard to know what really went wrong when running a wcf ds.

     

    Hope that helps someone.

    • Marked as answer by gideonisrael Wednesday, October 13, 2010 3:28 AM
    Wednesday, October 13, 2010 3:28 AM