IIS stack overflow caused by website program code error(Application Popup)

Lionsure 2020-10-04 Original by the website

A common situation is that iis overflow with a large amount of website visits, which is often easy to cause illusions, as soon as iis overflow, it is thought that it is caused by it. As a result, we follow this direction to find the cause, and spend a lot of time but no results. What's more serious is that when iis overflow, a window popped up to wait to select "OK" or "Cancel", and the application pool used by the website stops working, and all dynamic web pages cannot be opened, which seriously affects the user experience of website and the ranking in the search engines, which may cause the ranking to plummet.

In fact, in addition to iis overflow caused by the increase in website traffic, code errors of program of website will cause iis overflow more frequently, and it is often necessary to choose "OK" or "Cancel" for this situation, so the impact is very large, even if the website has a dedicated administrator, it is impossible to click "OK" 24 hours a day, therefore, it is necessary to find the cause of iis overflow(code error).

 

I. Tips for IIS stack overflow caused by website program code error

This can be found in the Event Viewer, there are generally two places, one is the Applications and Services Logs, and the other is the Windows Logs.

1. IIS stack overflow messages in Applications and Services Logs

Event type: Error
       Event source: .NET Runtime
       Event type: None
       Event ID: 1024
       Date: 2014-12-25
       Time: 11:38:42
       User: N/A
       Computer: WL93000683563

Description:
       .NET Runtime version: 4.0.30319.1022-Application ErrorApplication has generated an exception that could not be handled.

Process ID=0x564 (1380), Thread ID=0x7bc (1980).

Click OK to terminate the application.

Click CANCEL to debug the application.

 

Event type: Error
       Event source: .NET Runtime
       Event type: None
       Event ID: 1027
       Date: 2014-12-25
       Time: 11:38:41
       User: N/A
       Computer: WL93000683563

Description:
       Application: w3wp.exe
       Framework Version: v4.0.30319

Description: The process was terminated due to stack overflow.

 

 

2. IIS stack overflow messages in Windows Logs

Event type: warning
       Event source: W3SVC
       Event type: None
       Event ID: 1011
       Date: 2014-12-26 11:15:57
       Time:
       User: N/A
       Computer: WL93000683563

Description:
       A process serving application pool 'xx' suffered a fatal communication error with the World Wide Web Publishing Service. The process id was '2412'. The data field contains the error number.

 

 

II. Analysis error for IIS stack overflow

I can't see what the problem is from the Applications and Services Logs, but the Windows Logs prompts an error: "The data field contains the error number." . It reminds us that the data members of class are defined incorrectly, for example:

Public string userName;

Public string UserName
       {
              Get{ return UserName;}
       }

It should return "userName" instead of "UserName". There is only a slight difference between uppercase and lowercase letters. If you don't pay attention, you will get an error. After correcting this error, there will be no IIS stack overflow caused by "The data field contains the error number.".