Author: slikrik | Posted on: 1/23/2009 11:08:16 AM | Views : 296

Greetings,

 I have a C# application that self-hosts a simple Web Service.  The service is for deleting orders in a stock trading application.  The function simply takes in a string that represents the OrderID the user wishes to delete, and then it deletes it.

 What I've noticed is sometimes when I'm testing this locally (web service and web site that uses it are on same machine) occasionally it can take sometimes 10 minutes for the web service to execute.  In my ASP.NET application (in a button's click handler) I call the web service:

 
try {
IOrderRouter.OrderRouterClient client = new IOrderRouter.OrderRouterClient();
client.DeleteOrder(CurrentOrderID.Value);

System.Threading.Thread.Sleep(250);
GridView1.DataBind();
} catch (Exception ex) {
}
When I debug, it seems the con ...

Go to the complete details ...