0

I am using aspx page. Is there a way to enable GET request using WebMethod? This is the link I am trying to reach in debug, but it doesn't stops on break point:

http://localhost:32725/Rest/DialerWebMethods.aspx/dial

[WebMethod]
    public static string Dial() {

        return "test";                        

    }
David
  • 239
  • 1
  • 2
  • 12
  • 1
    Possible duplicate of [Enable ASP.NET ASMX web service for HTTP POST / GET requests](http://stackoverflow.com/questions/618900/enable-asp-net-asmx-web-service-for-http-post-get-requests) – huse.ckr May 22 '17 at 08:10
  • Unfortunately, It doesn't solved my problem . – David May 22 '17 at 08:24
  • IS the problem that it doesn't work or is the problem that you can't set breakpoints? The title suggests that it just doesn't work but your talk of breakpoints suggests otherwise... – Chris May 22 '17 at 08:33
  • Is it working? Are you getting the returned value, even if it doesn't stop on the break point? – Thangadurai May 22 '17 at 08:34
  • The problem is when I run in debug and trying to reach this url(that I quoted), it dosent reach to this function 'dial' in code, and doesn't return the value. – David May 22 '17 at 08:41
  • Are you able to call other WebMethod in the class ? – Mukul Varshney May 22 '17 at 10:59

0 Answers0