web-method

Making an Asynchronous WebService Call From ASP.Net MVC

I would (as the question states) like to make an asynchronous call, preferably using ASP.net AJAX. The code for the WebMethod looks like this: [WebMethod] public void SendMail(string name, string email, string subject, string body) { MailMessage toSend = new MailMessage(email, [email protected], subject, body); var smtp = new Smtp...

How do you end an Application from a Web Method within a Web Service?

I'm trying to create a method within a web service that will terminate the application when called. The purpose of this is to end a game being played with a Windows form. Does anyone have any ideas? Thank you. ...

ASMX Webservice dropping incoming parameters

I need some help figuring out how to troubleshoot a problem with an ASP.Net 2 asmx webservice which seems to be ignoring incoming params. I have an ASMX service that takes a string, does a little work with an SAP API, and returns the results of the operation as a string. It works fine in a dev environment, but fails in production becau...