sliverlight, ria, domain service - service not found

Posted on 2011-05-04
Last Modified: 2012-05-11
I have a silverlight application with two ria domain services ( dataservices). Until recently I have both services in one 'WCF RIA services Class Library' and everything was working perfectly.

Yesterday we decided to spilt the services into separate libraries (breaking many references and namespaces in the process). Everything is back together and compiling again, but now when we try to run the application we're getting an error:

The remote server returned an error: NotFound.  

Fiddler reveals a bit more:

HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly


It seems to me like the services are not being generated in the clientBin folder. I'm at a loss, the service used to generate, so I must be missing something. Any ideas?
Question by:Wasaga
    LVL 16

    Expert Comment

    by:Imran Javed Zia
    Just verify that url is correct in config file, secondly try to browse your service in browser. It seems that you have added new services but have not updated service reference to update the proxy classes

    Author Comment

    I see nothing in any config file (including the older version before the changes) that has any relevant url. The projects are linked through ria and the client side code IS generated correctly.

    Author Comment

    also, navigating to the url brings up the same 404 message. The service clearly isn't getting gernerated. I had a similar problem before, but only on the server and that was fixed by installing a missing component.
    LVL 39

    Expert Comment

    by:Kyle Abrahams
    Change the clientconfig (in your .xap file . . . rename to zip then extract service.config).  Ensure you are using relative urls.  The xap files always reference from clientbin so to get to the webroot use:

    ../<normal path to service from application root>

    Author Comment

    I'm not sure what that means. I never had to rename anything to zip or extract anything to get this working before?

    Author Comment

    Just to clarify:
    I'm using Silverlight 4.0 and WCF RIA Services, not just wcf

    Accepted Solution

    Found my own solution. Turns out when you have multiple domain services, the website project needs reference to both. In turn, the main silverlight project needs reference to both client-side ria projects, otherwise the service files will generate  in the main silverlight project AND in the client ria projects (causing duplication errors).

    Author Closing Comment

    the other answers did not apply to RIA services

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
    Here I am going to explain creating proxies at runtime for WCF Service. So basically we use to generate proxies using Add Service Reference and then giving the Url of the WCF service then generate proxy files at client side. Ok, what if something ge…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now