Threads in ASP .NET
-
Hi, I have a asp .net application. In the application I attempt to start a thread from globals "Application_start" method. My problem is that the start page never fully loads and the secondary thread fails on a specific line but it gives me no indication as to which one. Thus I get the message "Server Unavailable". Is this a case of deadlock? or do you need to apply threads differently in asp .net. cheers Mike
-
Hi, I have a asp .net application. In the application I attempt to start a thread from globals "Application_start" method. My problem is that the start page never fully loads and the secondary thread fails on a specific line but it gives me no indication as to which one. Thus I get the message "Server Unavailable". Is this a case of deadlock? or do you need to apply threads differently in asp .net. cheers Mike
Well, I'm not sure of the specific problem, but here are a couple of links to some excellent articles on threading in ASP.NET. Perhaps you've already read them, but if not, they're good reads: http://msdn.microsoft.com/msdnmag/issues/05/10/WickedCode/ http://msdn.microsoft.com/msdnmag/issues/03/06/Threading/ You might consider turning on tracing just calling the failing code synchronously until you can determine which line is causing the error.