Async Exception with WCF - Silverlight
-
I have developed a Workflow and published it as WCF webservice on IIS. I then created a Silverlight 3 webapplication that references the published svc webservice. The clientaccesspolicy.xml is in the wwwroot of the webserver. When calling the silverlight webapplication, the call sometimes works perfectly and sometimes give the Async_Exception. We have been struggling with this for a week now. Still, there is aprogress - The Error messages that reciving from the async method says: "The content type text/html of the response message does not match the content type of the binding(text/xml; charset=utf-8). If using custom encoder, be sure that the IsContentTypeSupported method is implemented propertly.The first 1024 bytes of the response were: '<!--<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">-->...." Appreciate any help in the matter. Thanks !
-
I have developed a Workflow and published it as WCF webservice on IIS. I then created a Silverlight 3 webapplication that references the published svc webservice. The clientaccesspolicy.xml is in the wwwroot of the webserver. When calling the silverlight webapplication, the call sometimes works perfectly and sometimes give the Async_Exception. We have been struggling with this for a week now. Still, there is aprogress - The Error messages that reciving from the async method says: "The content type text/html of the response message does not match the content type of the binding(text/xml; charset=utf-8). If using custom encoder, be sure that the IsContentTypeSupported method is implemented propertly.The first 1024 bytes of the response were: '<!--<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">-->...." Appreciate any help in the matter. Thanks !
I would start by running a trace on the system using wireshark to capture the entire transactions, both working and not working, then once you get an error, start by doing a side-by-side and seeing what the REAL differences in the messaging are. Also, could you be at a traffic level that is maybe limiting your available ports at certain load times? Any other exceptions being caught? Is the messaging reliable enough to ensure that your packets are really not getting corrupted or altered in route? If this is a REAL issue for you it may just be time to reach out to a support path like MS or a local vendor. But I would start by actually doing the full side by side using wireshark first.
-
I have developed a Workflow and published it as WCF webservice on IIS. I then created a Silverlight 3 webapplication that references the published svc webservice. The clientaccesspolicy.xml is in the wwwroot of the webserver. When calling the silverlight webapplication, the call sometimes works perfectly and sometimes give the Async_Exception. We have been struggling with this for a week now. Still, there is aprogress - The Error messages that reciving from the async method says: "The content type text/html of the response message does not match the content type of the binding(text/xml; charset=utf-8). If using custom encoder, be sure that the IsContentTypeSupported method is implemented propertly.The first 1024 bytes of the response were: '<!--<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">-->...." Appreciate any help in the matter. Thanks !
You may want to take a peek at the log of your webservice which probably shows an error. The .: I love it when a plan comes together :. http://www.zonderpunt.nl