WebMethod not being hit

Qamar, Mo 106 Reputation points
2022-03-30T18:54:56.757+00:00

WebMethod works fine if project is run in local Visual Studio but the same WebMethod will not be hit if project is deployed on local IIS.
What do I need to do to get it to work on localhost and/or a web server?

Developer technologies ASP.NET Other
{count} votes

3 answers

Sort by: Most helpful
  1. Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
    2022-03-30T20:29:38.257+00:00

    you don't say the technology you are using, but use the browsers debug tools to see the url and server response. probably missing the part of the path.

    0 comments No comments

  2. Qamar, Mo 106 Reputation points
    2022-04-01T15:15:42.987+00:00

    It has been fixed.
    I was making 2 ajax calls to web method; removed one and adjusted the first call.

    0 comments No comments

  3. Qamar, Mo 106 Reputation points
    2022-04-01T16:07:11.16+00:00

    This issue has been resolved but I don't see an option to mark it as answered.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.