public void ProcessRequest(HttpContext context) { //Debugger.Launch(); context.Response.ContentType = "text/plain"; using (var reader = new StreamReader(context.Request.InputStream)) { var stream = context.Request.InputStream; byte[] mXML = new byte[stream.Length]; stream.Read(mXML, 0, mXML.Length); oDFLocation = new DFCls_LocationForm(mXML); if (oDFLocation.SaveLocation()){ context.Response.Write(oDFLocation.GetLocation()); } else{ context.Response.Write("failure"); } } }