Session timeout in webservice is not working getting an exception
[WebMethod(EnableSession = true)]
public void resetsession()
{
Session.Timeout = 1000;
}
Request format is unrecognized for URL unexpectedly ending in '/resetsession'.
Can any one look into the issue?
I don’t know what .NET version you’re using, but I remember having this issue a long time ago, so maybe your HTTP GET and HTTP POST is disabled?
Then the solution would be to add this to your web.config:
And maybe you also need this in your web.config:
Found this article with a little bit more information.