question

80401807 avatar image
0 Votes"
80401807 asked RoyLi-MSFT edited

ASP .NET application hangs with IIS 8 and Windows server 2012 R2

Hello Microsoft Community ,

I have an issue that i can't identify it from where it's happening , so let me introduce the issue in bullet points format :

Am deploying a .NET Framework application , separated into frontend and backend part into iis in a windows 2012 server .

The frontend part is communicating with backend via API's ; ( the frontend part is built using eviromnement to refer the backend like http://myapp.domain.com/api ... ) , so everything was running smoothly

I tried to migrate to HTTPS for the endpoints ; so i made a new frontend build ( Angular ) that points to https://myapp.domain.com/api ... of course with making successefully an SSL certificate to establish communication .

The app is working smoothly , but suddenly , i see hangs , and exactly from from worker processes , and for the appropriate app pool for backend part , i see the accumlation of request and not connecting anymore , i can't get any response from the deployed backend any more , even seperately when using POSTMAN !

The app can get back working only if i restart the server , note that The CPU is not full , and memory also ; so threads of the app can find place to continue and have place to be executed.

Am using iis 8 and windows server 2012 R2 , and i would be so gratefull , if i get clear explanation about the root cause , contributing to the hangs and stopping backend.

sql-server-generalwindows-server-iiswindows-server-2012
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@JasserRAHALI-1380
There are many reasons for the hangs, you need more information to analyze the cause of the hang, such as you can check the iis logs to see if there is any long running pages, go after the time-taken attribute using log parser, you can also use IIS Debug Diagnostics Tool, this tool will generate detail log file, which will help you to identify the problem. you can also refer to this link about Troubleshoot hanging requests on IIS: troubleshoot-iis-hanging-requests.

0 Votes 0 ·

1 Answer

LimitlessTechnology-2700 avatar image
0 Votes"
LimitlessTechnology-2700 answered

Hello

Thank you for your question and reaching out. I can understand you are having issues related to ASP .NET application hangs .

  1. Please disable any Antivirus program or Windows firewall you may have for temporary purpose.

  2. Please check IIS Storage Pool and try to Increase its time out limits and resources.

  3. Please check event logs and your Applications debug logs for advanced troubleshooting.

  4. As you mentioned it was working earlier hence please try to Uninstall any Windows updates and reboot your Server.


--If the reply is helpful, please Upvote and Accept as answer--

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.