troubleshooting Question

SQL server 2005 - CLR - asynchronously executed stored procedure - terminating unexpectedly.

Avatar of vu3lmg
vu3lmgFlag for United States of America asked on
.NET ProgrammingMicrosoft SQL Server 2005
6 Comments3 Solutions1299 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 it abruptly terminates without any error.  I have error handlers to log the error in the database.
I've checked event viewer which doesn't show anything.

...
//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);
...
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 3 Answers and 6 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 3 Answers and 6 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