Asynchronous callback function is called multiple times (C#)
<p>This is a code snippet for processing HttpWebRequest by AsyncCallback function.
Server side response well. It just responds only one return message, but this client code is called multiple times and give a terrible headache.</p>

<p>// Create Request
            HttpWebRequest request = (HttpWebRequest)WebRequest.Create(requestUri);</p>

<pre><code>        try
        {
            // Make request with the following inline Asynchronous callback
            request.BeginGetResponse(new AsyncCallback((asynchronousResult) =&gt;
                {
                    HttpWebRequest aRequest = (HttpWebRequest)asynchronousResult.AsyncState;
                    HttpWebResponse aResponse = (HttpWebResponse)aRequest.EndGetResponse(asynchronousResult);

                    using (StreamReader streamReader = new StreamReader(aResponse.GetResponseStream()))
                    {
                        // Deserialize the result
                        string jsonString = streamReader.ReadToEnd();
                        result = DeserializeToListOfObject(jsonString);

                        JavaScriptSerializer jS = new JavaScriptSerializer();
                        result = (List&lt;object&gt;)jS.Deserialize&lt;List&lt;object&gt;&gt;(jsonString);

                        if (result[0] is object[])
                        {
                            foreach (object message in (object[])result[0])
                            {
                                this.ReturnMessage = message;
                            }
                        }
</code></pre>

<p>I got the very continuous the same return messages.
Anyone could help? Thanks in advance.</p>
