Hi everyone,
I am using Visual Studio 2010 RTM, Silverlight 4, WCF RIA Services.
When I execute the following code, everything works fine:
DBDomainContext
db = new
DBDomainContext();
uiDataGrid.ItemsSource = db.Teams;
db.Load(db.GetTeamsQuery(), true);
But when I add the Windows Azure Cloud Service project and use the existing project as a WebRole I get the following error:
System.ServiceModel.DomainServices.Client.DomainOperationException:
Load operation failed for query 'GetTeams'. The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (application/msbin1).
If using a custom encoder, be sure that the IsContentTypeSupport method is implemented properly.
The first 1024 bytes of the response were:
'<html>
<head>
<title>
Could not load type 'System.ServiceModel.Activation.ServiceHttpHandlerFactory' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
</title>
.....'