I have tried to download the file from the server through the webmethod but it has not work for me. my code as below
[System.Web.Services.WebMethod()]
Instead of calling a Web Method it would be a better idea to use a generic handler (.ashx file) and put your code for downloading the file in the ProcessRequest method of the handler.