public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; try { BLLActivity bll = new BLLActivity(""); bll.APIActionResult(context); } catch (Exception ex) { context.Response.Write("Exception"); } }