I have no problem in using NeatUpload for say, a 100MB file on the local intranet. But when I deploy my asp.net 2.0 website to the Internet, the same file usually fails to transfer. Does anyone have any suggestions on what to do to make it work better? Small files work reliably.
1. Perhaps the NeatUpload UploadHttpModule isn't being used and the request is being stored in memory. When memory is exhausted the aspnet_wp.exe might crash. To confirm that the UploadHttpModule is being used, copy NeatUpload's Demo.aspx and Demo.aspx.cs to your app and use them to upload a file. If you see a progress bar, the UploadHttpModule is being used and this isn't the problem.
2. Perhaps the ASP.NET ISAPI extension is killing the aspnet_wp.exe process because it thinks it is non-responsive. I think if it does that it normally logs something in the event log. Is there anything in your event log the corresponds to when the aspnet_wp.exe process is dying? What (if anything) are the following <processModel> attributes set to in your Machine.config file: pingFrequency, pingTimeout, responseDeadlockInterval, timeout, idleTimeout?
Also, what version of NeatUpload and .NET are you running? If you aren't running NeatUpload-1.2.5, please try upgrading to that version. Lastly, how long does it take for the crash to occur?
Thanks for the additional details and especially the link. I didn't realize an exception thrown in a non ASP.NET thread would cause the server to crash by default.
Since the error message refers to system.data.sqlclient.sql and NeatUpload doesn't do anything DB related I suspect this isn't related to NeatUpload. To determine that, simply remove the UploadHttpModule from your httpModules section and see if the problem still occurs. You won't see a progress bar anymore but the application should otherwise work the same. If you still get the error, the problem is not related to NeatUpload.
You say you have a module that catches unhandled errors, but are you sure that it works like the module described in this article http://support.microsoft.com/?id=911816? If it just adds an Application.Error handler, that won't catch the kind of error you're seeing. Instead you need to add a handler to AppDomain.CurrentDomain.UnhandledException? You might want to test the module by creating an ASP.NET page which starts a new thread that throws an exception. Does your handler catch that exception?
As for the underlying cause, my best guess (it it is really just a wild guess) is that you might be attempting to use a DB connection which has timed out for some reason. --Dean
Using the debugging tools and following the following guide ( http://blogs.msdn.com/tess/archive/2006/04/27/584927.aspx ) we found out that the actual crash occurs in a Thread that's being created to log a few things for statistics purposes. The error itself is a Deadlock and that specific download thread is the victim chosen by Sql Server).
Sorry to point the finger at NeatUpload and thanks again :)
"The error itself is a Deadlock and that specific download thread is the victim chosen by Sql Server"... hmm I dont think I understand.. but ill give it a whack..
Im having the same problem all of a sudden.. so im guessing that.... some other thread totally unrelated to NeatUpload is causing the upload process to crash? Sounds right I guess.. but im on a hosted server.. so im guessing i should "request a dedicated application pool?" because I think my host runs SQL Server and .NET on the same machine.. and im my case its a 20MB file but I was uploading 100MB files earlier without problem..
PS Great product! I cant wait to show you my firefox skin! Worked on it all night
There is a range of Ash shoes to match different kinds of outfits. They are available in various styles so you have no difficulty in choosing the type of shoes that can match your outfit and project the right personality.http://topsheossale.com/ ash store The clothes that you choose to wear will be complemented well with these shoes and this is the best thing about this brand. You can simply choose from a wide selection of shoes from Ash whether it is for outdoors or party. The shoes from Ash make heads turn your way if you match the shoes with your attire to get a great combination.