Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WCF and WF
  4. Async Exception with WCF - Silverlight

Async Exception with WCF - Silverlight

Scheduled Pinned Locked Moved WCF and WF
wcfhelpcsharphtmlwpf
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    avnerpeer
    wrote on last edited by
    #1

    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 !

    R E 2 Replies Last reply
    0
    • A avnerpeer

      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 !

      R Offline
      R Offline
      Ray Cassick
      wrote on last edited by
      #2

      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.


      LinkedIn[^] | Blog[^] | Twitter[^]

      1 Reply Last reply
      0
      • A avnerpeer

        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 !

        E Offline
        E Offline
        Eduard Keilholz
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups