• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1148
  • Last Modified:

sliverlight, ria, domain service - service not found

Hello,
I have a silverlight application with two ria domain services (ado.net 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

/ClientBin/DisMembershipService-Web-AuthenticationService.svc/binary/GetUser

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?
0
Wasaga
Asked:
Wasaga
  • 6
1 Solution
 
Imran Javed ZiaCommented:
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
0
 
WasagaAuthor Commented:
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.
0
 
WasagaAuthor Commented:
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.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
Kyle AbrahamsSenior .Net DeveloperCommented:
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>
0
 
WasagaAuthor Commented:
I'm not sure what that means. I never had to rename anything to zip or extract anything to get this working before?
0
 
WasagaAuthor Commented:
Just to clarify:
I'm using Silverlight 4.0 and WCF RIA Services, not just wcf
0
 
WasagaAuthor Commented:
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).
0
 
WasagaAuthor Commented:
the other answers did not apply to RIA services
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now