troubleshooting Question

ASP.NET - asynchronously executed stored procedure - not responding.

Avatar of vu3lmg
vu3lmgFlag for United States of America asked on
C#ASP.NET
9 Comments1 Solution1151 ViewsLast Modified:
I have an web project (ASP.NET ) that searches the archive database.
From the web GUI the file is loaded by the user that is used to search the archive database.
This archive database search is performed by a stored procedure running under .NET CLR on SQL server 2005). The stored procedure code is written in using C#.
* Code is attached which makes Asynchronous call.

PROBLEM :  
# The sp starts to run under the SQL server but the web page goes into infinite loop (stops responding).
...
//Calling Synchronous Methods Asynchronously
SystemMaint.UploadFileToDatabase_Async UploadCaller = 
	new SystemMaint.UploadFinCENFileToDatabase_Async(oSystemMaint.UploadFileToDatabase);
IAsyncResult result = UploadCaller.BeginInvoke((appPath + saveDir), 
	Server.HtmlEncode(FULoad.FileName), txtSearchStartDate.Text, 
	txtSearchEndDate.Text, null, null);
Thread.Sleep(System.Threading.Timeout.Infinite);
...
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 9 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros