Restart application gives HttpSysException The prefix is already registered #60107
Labels
area-networking
Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
Is there an existing issue for this?
Describe the bug
I would like to start and stop our application on demand, without exiting the process. Code would be similar like:
However, with http.sys this gives an exception:
Microsoft.AspNetCore.Server.HttpSys.HttpSysException: 'The prefix 'http://localhost:5074/' is already registered.'
.Minimum testcase: WebApplication2.zip
Is there any way to restart the app or a workaround to make this work?
Expected Behavior
No response
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
9.0.102
Anything else?
No response
The text was updated successfully, but these errors were encountered: