Skip to content

IIS AspNetCore Module V2 returns 10s of 503 error and "Failed to gracefully shutdown applicaiton" warning when recycling a Hello world demo #49350

Closed
@AlexChongMicrosoft

Description

@AlexChongMicrosoft

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

1.There is a demo adding a simple function manageloop() in a helloworld.cs.
2.When using .net framework 4.7.2, everything is good.
3.When using .net core 6, it returns around 10s of 503 error and "Failed to gracefully shutdown applicaiton" warning when recycling.

Expected Behavior

The asp.net core 6 app should shut down gracefully and returns 200.

Steps To Reproduce

I have the demo running in my lab.
1.Publish the web app demo to IIS.
2.keep sending Get requests to the IIS site.
3.Recycle the appilcation pool.

Then 503 is got in the postman which sends reuqests. "Failed to gracefully shutdown applicaiton" shows in the event viewer log.

Exceptions (if any)

No exception.

.NET Version

I target it to .NET 6. I have .NET 7.0.203 as the runtime

Anything else?

This is the event viewer warning.
image

This is the 503 returned by postman
image

This is the freb of 503, which indicates the 503 is returned from IIS
image

I have the demo and lab. Please contact me to demo it. If any further information is needed. Please let me know.

Metadata

Metadata

Assignees

Labels

area-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsinvestigate

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions