开发者

light, ria, domain service - service not found

I have a silverlight application with two ria domain services (ado.net dataservices). Until recently I have both se开发者_StackOverflowrvices 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?


Found my own solution. Turns out when you have multiple WCF RIA Service Class Libraries, the website project needs reference to both, or it won't generate the service.

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜