One possible solution would be to add exception processing for certain errors that could be detected. In your example of "File Not Found" you could add that check and then if the file is not there go ahead and do any closing of files or other clean up before you return to the ASPX program. We have not yet started to work with the .NET environment, but you may want to look if it has a way do the exception processing under its umbrella of control.
↧