Question

    var res1 = await dataRequest.GetResponseAsync();   very slow .(2 mintues)

  var dataRequest = HttpWebRequest.Create(serverUri + "/UsrGetUnityUserTickets/GetUnityUserTickets" + "?Data=" + jsonData) as HttpWebRequest;

                    dataRequest.Method = "GET";                    dataRequest.Accept = "application/atom+xml";                    dataRequest.ContentLength = 0;                    dataRequest.ContentType = "application/atom+xml;type=entry";                    dataRequest.KeepAlive = false;                    dataRequest.CookieContainer = bpmCookieContainer;               

                    dataRequest.Proxy = System.Net.WebRequest.DefaultWebProxy;

                    var res1 = await dataRequest.GetResponseAsync();  

                    using (var dataResponse = (HttpWebResponse)res1)

                    {

 

getting very slow from res1 .

Like

5 comments

Dear Satyanarayana Pati,

The slowness is most likely caused by usage of proxy. Please try to exclude the following line and check speed:

dataRequest.Proxy = System.Net.WebRequest.DefaultWebProxy;

Regards,

Anastasia 

Hi Anastasia Botezat,

getting Same issue.

Anastasia Botezat,

C:\Users\10435\Desktop\S1.jpg

Dear Satyanarayana,

Based on your screenshot you have not removed the proxy usage. Please remove it and try again.

Nevertheless, the speed is also directly depending on the number of records retrieved. In case you have lots of records, the response will take some time.

Regards,

Anastasia

Hi Anastasia Botezat,

if i add/remove  dataRequest.Proxy = System.Net.WebRequest.DefaultWebProxy;    there was no change in Responce time. 

still getting late responce in   dev environment this service out of five services .  but perfectly work in Production in all  services .

Can you please suggest .

Log in or register to comment