Error handling in Classic Asp without a timeout error

In the classic asp page, I need to catch the error description and paste it into the table in the database. when I use 'on error resume next', I get a timeout error as follows:

The maximum time for the script to execute has been exceeded. You can change this limit by specifying a new value for the Server.ScriptTimeout property or by changing the value in the IIS administration tools

Please help me catch the exception and insert into the database.

+3
source share
3 answers

, : " Script ". , .

, ASP , Script . , , , ASP, , .

, - ( ) Script, On Error Resume Next, .

ASP Script, , Script ( Script). IIS " ". HTTP- 500; 100 URL- ASP script.

ASP script. , ASP, Server.GetLastError. , - .

+6

/ -, ? , , .

0

If the exception is related to your database, you could find your answer ... have you checked to see what the problem is in the first place?

0
source

Source: https://habr.com/ru/post/1713851/


All Articles