[Solved] ASP Website Error: An error occurred on the server when processing the URL.

” An error occurred on the server when processing the URL. ”  occurs when accessing the webpage ,

The access phenomenon is: an error will be reported when the ID is greater than 32767, and there is no problem if the ID is less than 32767

 

 

Cases less than 32767:

 

Setting method one: 

Run CMD as administrator, locate the directory to %windir%\system32\inetsrv\, and execute

appcmd set config -section:asp -scriptErrorSentToBrowser: true

Meaning: Send an ASP internal error to the browser to expose problem location.

Visit again and report the error:

Microsoft VBScript Runtime Error Error ‘800a0006’ Overflow: ‘CInt’

Check the file Sitepage.asp and find that the function is used, and the string is converted to an integer asp: cint()–note that only the range of short integer values ​​must be between -32768 and 32767;

clng() is applied to long integers; that is, here when the ID is greater than 32767, the function cint() should be replaced by clng().

  After saving, it was found that the solution was successful.

Read More:

Leave a Reply

Your email address will not be published. Required fields are marked *