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. WPF
  4. Async Exception with WCF - Silverlight

Async Exception with WCF - Silverlight

Scheduled Pinned Locked Moved WPF
csharpwcfwindows-adminxmlhelp
5 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. Appreciate any help in the matter. Thanks !

    R T 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. Appreciate any help in the matter. Thanks !

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

      My first guess would be that you are timing out. Try increasing the time variables in the configuration file to allow your service more time to respond.


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

      A 2 Replies Last reply
      0
      • R Ray Cassick

        My first guess would be that you are timing out. Try increasing the time variables in the configuration file to allow your service more time to respond.


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

        A Offline
        A Offline
        avnerpeer
        wrote on last edited by
        #3

        Hello, my configoration TimeOut is set to 20 sec, the exception is geted after 4 sec.... 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: '...." Thanks !

        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. Appreciate any help in the matter. Thanks !

          T Offline
          T Offline
          ToddHileHoffer
          wrote on last edited by
          #4

          Add the following to the configutation section of the web.config file in the service's application. It should give you more information to debug.

          I didn't get any requirements for the signature

          1 Reply Last reply
          0
          • R Ray Cassick

            My first guess would be that you are timing out. Try increasing the time variables in the configuration file to allow your service more time to respond.


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

            A Offline
            A Offline
            avnerpeer
            wrote on last edited by
            #5

            Any other Idea?

            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