Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The server method xxx failed (asp.net ajax)

Tags:

ajax

asp.net

I have a website project, that is working fine. However every once a while certain ajax pages (that make calls to a webservice) throw a "the server method xxx failed". I have ELMAH installed, however do not see any stacktrace or anything. The worst is that I can not reproduce the error locally. I just get an email notification from ELMAH. Does anybody know how I can fix this issue?

Edit: After 1 year I am still having the same issue.

like image 332
vikasde Avatar asked Sep 16 '25 10:09

vikasde


1 Answers

It's too insufficient description. My assumptions:

  • Did you add EnablePageMethods ="true" to your ScriptManager control?
  • If yes, did the control (if it is; e.g. button) which call the web service method perform an anync postback instead of full one?
  • Does the signature of server method and a call from the client-side match?
  • Are you using URL rewriting?
like image 85
Oleks Avatar answered Sep 19 '25 07:09

Oleks