Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. web services

web services

Scheduled Pinned Locked Moved WPF
databasewcflinqsysadminhelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    picasso2
    wrote on last edited by
    #1

    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

    A 1 Reply Last reply
    0
    • P picasso2

      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

      A Offline
      A Offline
      Abhinav S
      wrote on last edited by
      #2

      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

      P 1 Reply Last reply
      0
      • A Abhinav S

        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

        P Offline
        P Offline
        picasso2
        wrote on last edited by
        #3

        Re-publishing the domain services solved my problem. Many thanks for the help Abhinav

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups