I'm trying to use RIA services, I installed Silverlight 4 and Silverlight 4 Tools/SDK, but I cannot setup a LINQToEntitiesDomainService because I can't find this namespace/assembly: System.ServiceModel.DomainServices.EntityFramework. Where does this assembly come from, not sure why it's missing? Is that an add-on I'm missing?
Thanks.
When you create an instance of a domain service, you specify the data operations that are permitted through the domain service. The DomainService class is the base class for all classes that serve as domain services.
The LinqToEntitiesDomainService<TContext> class derives from the DomainService class and is used when interacting with LINQ to Entities models. A domain service class must be marked with the EnableClientAccessAttribute attribute to make the service available to the client project.
The latter does not include the System.ServiceModel.Web assembly. Show activity on this post. Apparently when you select .NET framework 4.0 while creating the project, Visual Studio 2010 Beta 2 actually targets .NET framework 4 client profile.
System. Service Model Namespace Provides classes related to the service model. This exception is typically thrown on the client when the action related to the operation invoked does not match any action of operations in the server. The exception that is thrown when access to the address is denied.
You should find it in:-
Program Files[ (x86)]\Microsoft SDKs\RIA Services\v1.0\Libraries\Server
As the folder suggests this is a server-side dll; if you are attempting to add to your Silverlight project then that would be the problem. Its designed to be referenced by the Web project or a library project that is reference by the web project.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With