tags:

views:

198

answers:

0

I've created a new Silverlight application, so I have a web project called "SilverlightOnLineChess.Web" and the Silverlight app called "SilverlightOnlineChess.Client". In this solution I've created a new WCF RIA Services class library called "SilverlightOnlineChess.Data", and in doing so it creates the associated web project called "SilverlightOnlineChess.Data.Web". I've created the necessary Entity Data Model and the domain service classes in the "SilverlightOnlineChess.Data.Web" project and made sure I checked the "Expose OData endpoint".

Everything works fine and dandy to view data via the app. However, if I try to hit the url to see what the OData brings back as in: "http://localhost:49771/SilverlightOnlineChess-Data-Web-OnlineChessService.svc/OData/" it doesn't know what this url is. It only works if I create the services and entity model in the main web project "SilverlightOnLineChess.Web" and not the "SilverlightOnLineChess.Data.Web".

So now if I enter the url as in:

"http://localhost:49771/SilverlightOnlineChess-Web-OnlineChessService.svc/OData/", it brings back the metadata.

Any ideas?