Unable to receive request in HttpModule RRS feed

  • Question

  • User-595641371 posted
    if (HttpContext.Current.Request.Path.Contains(".asmx") || HttpContext.Current.Request.Path.Contains(".svc"))
        string xmlParserstring = GetDocumentContents(HttpContext.Current.Request);
        if (!string.IsNullOrEmpty(xmlParserstring))
            XDocument bodyRequest = XDocument.Parse(xmlParserstring);
            string methodName = bodyRequest.Root
                                            .Where(eqw => eqw.Name.LocalName == "Body")
            if (methodName.Contains("LogonMethod") || methodName.Contains("UpdatePassword"))
                Log.DebugFormat("Notification from ASMX \\SVC: {0} at {1}", HttpContext.Current.Request.Path, DateTime.Now.ToString());
                Log.DebugFormat("Other Method Names {0}", methodName);

    My custom HttpModule receiving more requests from ASMX\SVC\ASHX\....After executing above said code, HttpModule not able to receive any sub-sequent request instead an application got terminated and not able to catch cause of the issue even Fiddler. Can't we process SOAP request intermediately while application receiving more request from ASMX\SVC\ASHX...? Could anyone help me on this issue?

    Note: I don't find any issue after removing above said code from HttpModule. I've not updated anything after receiving SOAP request, instead am just logging the method names.

    Monday, March 23, 2015 9:42 AM