System.InvalidOperationException: jsdebug Web Service method name is not valid
If you are getting a 'web service undefined' error when calling a web service from Javascript which is defined inside the ScriptManager tag like so:
<asp:ScriptManager ID="ScriptManager1" runat="server">
<Services>
<asp:ServiceReference Path="~/Services/WebService.asmx" InlineScript="True" />
</Services>
</asp:ScriptManager>
Actual Error:
System.InvalidOperationException: jsdebug Web Service method name is not valid.
at System.Web.Services.Protocols.HttpServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context
Solution:
To resolve this issue, run the following command line:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319>aspnet_regiis -i