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?
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?
Hi @QamarMo-8446,
You should provide the error message and describe the problem more precisely.
Maybe you can try removing router settings in web.config and adding to httpmodules section
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
Best regards,
Lan Huang
It has been fixed.
I was making 2 ajax calls to web method; removed one and adjusted the first call.
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.
It has been fixed.
I was making 2 ajax calls to web method; removed one and adjusted the first call.
This issue has been resolved but I don't see an option to mark it as answered.
I was making 2 ajax calls to web method; removed one and adjusted the first call.
Right, I explained this several times in your other threads.
5 people are following this question.