I have a Silverlight 4 application using RIA Services 1.0 SP1.
In the web application that hosts the Silverlight app I have a few RIA services and a pure WCF service that is there for other consumers (not the Silverlight app).
RIA Services is attempting (and failing) to generate client proxy code in the Silverlight app to call the WCF service. I do not need to call that service from Silverlight.
How can I prevent RIA Services from generating the client code for that service?
I there an attribute I can use to ignore that service?
EDIT
I was assuming that it would be RIA Services trying the generate the proxy, but I'm not sure. Here's more info:
I have the following compilation warning:
Client proxy generation for service 'MyNamespace.MyWcfService' failed: Error: Endpoint 'WSHttpBinding_SurveyCentreWcfService' at address 'http://localhost/Service' is not compatible with Silverlight 4. Skipping...
I haven't manually added any Service Reference in my Silverlight application, but the WCF RIA Services Link is set in the project properties.
My service class looks like this:
[ServiceContract]
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
[ServiceBehavior(Namespace = "http://www.xxx.com/services/")]
public class MyWcfService
{
...
}