This is a migrated thread and some comments may be shown as answers.

The client and service bindings may be mismatched

2 Answers 370 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Robin
Top achievements
Rank 1
Robin asked on 14 Apr 2011, 06:12 PM
We have a Silverlight application that uses an embedded Telerik report viewer to display a Crystal Report. The application consumes a Silverlight WCF.  Connecting the WCF to listboxes, comboboxes and the datagrid work fine.  However, the error below is thrown when attempting to bind the WCF to the report viewer. Any suggestions as to why this is happening and how to resolve it?  We've reviewed other questions on this forum that are similar to this issue but none of the answers worked for us.

"Content Type text/xml; charset=utf-8 was sent to a service expecting application/soap+xml; charset=utf-8.  The client and service bindings may be mismatched."

Thank you.

2 Answers, 1 is accepted

Sort by
0
Chandan Dey
Top achievements
Rank 1
answered on 25 Apr 2013, 04:55 PM
Hi,
I get the same error. When I try to call WCF service method the same error will occurred.

My code like......
BasicHttpBinding binding = new BasicHttpBinding();
binding.Name = "CustomBinding_IRemoteMonitorService";
binding.MaxBufferSize = 2147483647;
binding.MaxReceivedMessageSize = 2147483647;
binding.OpenTimeout = new TimeSpan(0, 30, 0);
binding.CloseTimeout = new TimeSpan(0, 30, 0);
binding.ReceiveTimeout = new TimeSpan(0, 30, 0);
binding.SendTimeout = new TimeSpan(0, 30, 0);

EndpointAddress address = new EndpointAddress(new Uri("http://localhost:8000/TestMonitorService"));
RemoteMonitorServiceClient client = new RemoteMonitorServiceClient(binding, address);

DateTime dtStart = new DateTime(2013, 4, 20, 00, 00, 00);
DateTime dtEnd = new DateTime(2013, 4, 25, 18, 10, 20);
Report[] arReport = client.CreateReport(dtStart, dtEnd);

But it works fine in silverlight application. My service is hosted in WindowsService.

Please let me know the solution asap.... Because base on my test with telerik trial version my client will be bye the Telerik Reporting tool.
I am using Windows7, VS2010, Database MySQL, Silverlight 5, Telerik Reporting tool trial version.......

Thanks in Advance
Chandan.

0
Stef
Telerik team
answered on 29 Apr 2013, 12:46 PM
Hi,

In order to display your Crystal Report document in our Silverlight ReportViewer control, you need to convert it to Telerik Reporting report definition first. Please check Converting reports from other reporting solutions help article and the linked in guide.

If you need further help, please elaborate on your scenario and if possible open a support ticket where you can send us your sample project illustrating the issue.

Greetings,
Stef
the Telerik team

Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.

Tags
General Discussions
Asked by
Robin
Top achievements
Rank 1
Answers by
Chandan Dey
Top achievements
Rank 1
Stef
Telerik team
Share this question
or