Webservice throws exception "Expected text/xml" but got text/html

Discussion in 'C#' started by Leo, Dec 1, 2006.

  1. Leo

    Leo New Member

    Joined:
    Nov 10, 2006
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    0
    I access a Webservice written by our client developers in C#.I call a method written by me and return a dataset to the client.This exception happens only when more than 3 users access the application fropm their client machines.

    I put tracing statements in my method and even put try-catch block in order to write to a log file if exception happens.But no errors are written to the log file from my method.

    But the control does not go back to the client code.It would take some tinme and throws this error ""Expected text/xml" but got text/html".

    Does anyone know how can i find out the real problem behind this, what is the actual problem that has occured?



    Pls help.
     
  2. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,645
    Likes Received:
    87
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    http://blog.pradeep.net.in
    It's very hard to say where exactly the problem lies without knowing in-depth about the webservice.
     
  3. Leo

    Leo New Member

    Joined:
    Nov 10, 2006
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    0
    Atleast i wanna know how to get the original error that is thrown.How can that be got than this common exception.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice