web services
-
Hello Listeners, Working on a silverlight application. The data that needs to be returned is very small (1-4 rows) My domainservice includes following code to populate a datagrid public IQueryable GetProductsFiltered(int vendorId) { return this.ObjectContext.Products.Where(P => P.VendId == vendorId); } When the correct value is provided via a “GetProductsFilteredQuery(2)”, the server returns the data and datagird is properly populated. Now I need to return data based on a column named SiteID so I added another method public IQueryable GetProductsFilteredSite(int siteId) { return this.ObjectContext.Products.Where(P => P.SiteID == siteId); } And call it by something like this “GetProductsFilterSiteQuery(5)” . Compiles fine but but error is generated when running the application: “Local operation failed for query “ GetProductsFilterSite”. The remote server returned an error: NotFound”. Run the query manually –OK Fiddler also logs an 504 error “ReadResponse() failed: The server did not return a response for this request.” But also shows a valid argument passed to GetProductsFilterSiteQuery() method Any idea is greatly appreciated
-
Hello Listeners, Working on a silverlight application. The data that needs to be returned is very small (1-4 rows) My domainservice includes following code to populate a datagrid public IQueryable GetProductsFiltered(int vendorId) { return this.ObjectContext.Products.Where(P => P.VendId == vendorId); } When the correct value is provided via a “GetProductsFilteredQuery(2)”, the server returns the data and datagird is properly populated. Now I need to return data based on a column named SiteID so I added another method public IQueryable GetProductsFilteredSite(int siteId) { return this.ObjectContext.Products.Where(P => P.SiteID == siteId); } And call it by something like this “GetProductsFilterSiteQuery(5)” . Compiles fine but but error is generated when running the application: “Local operation failed for query “ GetProductsFilterSite”. The remote server returned an error: NotFound”. Run the query manually –OK Fiddler also logs an 504 error “ReadResponse() failed: The server did not return a response for this request.” But also shows a valid argument passed to GetProductsFilterSiteQuery() method Any idea is greatly appreciated
You can try out two things - 1) If you are deploying your service on IIS, you will need to redeploy after adding the new method. 2) You will need to update your service proxy. If you added the website manually, then just right click on the service and refresh.
WP Apps - Color Search | Arctic | XKCD | Sound Meter | Speed Dial
-
You can try out two things - 1) If you are deploying your service on IIS, you will need to redeploy after adding the new method. 2) You will need to update your service proxy. If you added the website manually, then just right click on the service and refresh.
WP Apps - Color Search | Arctic | XKCD | Sound Meter | Speed Dial