Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Technical Problems

Status
Not open for further replies.

RemoteSilicon

Programmer
Feb 13, 2001
45
GB
Hi

I have a sequence of ASP pages. In one page say "DISPLAY" I am reading a few text files and displaying the text in my ASP page. In another ASP page say "SEARCH" I am doing the same with some more functionality i.e apart from reading files I am also reading a directory structure and finding files. Later these files are opened and text is read. The "READING FILE" functionality is in an included file. I even put the code in the files but didnt worked. Here are the problems I am facing.

1. When I load SEARCH in one browser and DISPLAY in another browser, it gives me "Requested resource in use" message until SEARCH is complete.

2. I want to display my own message when script is timed out in SEARCH, but it displays the defualt error message. I used "ON ERROR RESUME NEXT" command but that didnt worked.

Thanks
 
The error that you are getting is being issued by IIS, in your virtual directory for that site you can set IIS to show either a detailed error message. ie the message you are getting or you can set your own message. To get to this option. Right click on the virutal directory and choose properties, the under the virtual directory tab click on the configuration button,then click the App Debugging and choose to send your own message which you can then input.

Roj
 
Thanks for replying. The problem is that the site where it will be hosted, I dont have access to its web server i.e I cannot change its settings. I need to display formatted message if the script times out. Is there any way to do this because other errors can be handled through "ON ERROR RESUME NEXT" command but this isn't. Thnaks again.
 
ASP3 is suppose to have better error handling, I don't have it yet so I don't exactly know. However in ASP2 if you cannot make it work using

ON ERROR RESUME NEXT
if err.Number > 0 then
show your message
end if

then I'm afraid I don't know of any other method that does not use the server settings.

Sorry
Roj
 
Thanks for your help Roj. Is there any site that may be helpful on this topic?
 
I think you get the 'requested resource is in use' message because one thread of your site locks the file while it reads it therefore not allowing any other thread to use it
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top