Webservice trouble.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jensen Bredal

    #1

    Webservice trouble.


    Hello,
    I have written a very simple web service with only one "web method". The web
    method does what it is supposed
    to do when invoked locally but fails one invoked remotelly
    with http error 500.


    Any idea what i have done wrong?


    Many thanks in advance
    JB


  • Sami Vaaraniemi

    #2
    Re: Webservice trouble.

    HTTP error 500 means that there is probably an unhandled exception in the
    web service method. To debug the problem, you can try e.g.,:

    1) set <customErrors mode="Off" /> in web.config to see ASP.NET error page
    remotely
    2) add error logging (i.e., catch all exceptions and log them somewhere)
    3) attach debugger to the web service, put a break point in the web method
    and step through code until you hit the error

    Regards,
    Sami


    "Jensen Bredal" <first.last@yah oo.dk> wrote in message
    news:%23VRxr%23 XzEHA.3880@TK2M SFTNGP10.phx.gb l...[color=blue]
    >
    > Hello,
    > I have written a very simple web service with only one "web method". The
    > web
    > method does what it is supposed
    > to do when invoked locally but fails one invoked remotelly
    > with http error 500.
    >
    >
    > Any idea what i have done wrong?
    >
    >
    > Many thanks in advance
    > JB
    >
    >[/color]


    Comment

    Working...