Link to home
Create AccountLog in
Avatar of digitalpacman

asked on

Asp Classic Application Pool Expires After .Net Upload


I have a .net solution that accepts multi-part form data for uploads and saves the files into a directory viewable on a website. The website that shows and uses the images is an Asp Classic website.

For some reason, randomly, when uploading files the Asp Classic application pool is "emptied". There are no errors in event logs. The application pool does not get recycled. The w3p process does not get a new ID, and there is no log anywhere that the application pool was restarted.

In the upload, I am doing:

File.Copy(a, b, true);

and I resize images via

The only way I have been able to stop the issue from happening is adding a Thread.Sleep(500) after the File.Copy and a Thread.Sleep(100) after the resize method.
Avatar of Najam Uddin
Najam Uddin
Flag of United States of America image

have you created 2 two app pools and both are running in different app pools, if not make them
Avatar of digitalpacman


Yes I have an application pool for each.

We have no .net applications running under the same app pool as any classic application.
Avatar of wolfman007
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of Kumaraswamy R
This question has been classified as abandoned and is being closed as part of the Cleanup Program. See my comment at the end of the question for more details.