dotnet / dotnet/aspnetcore

AspNetCoreModuleV2 report App_Offline.htm

Open
#54,501 0 comments 0 reactions 0 assignees View on GitHub
area-networking feature-iis
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 5h
Merged PRs (30d)
276

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Is your feature request related to a problem? Please describe the problem.

When deployment fails, _App_Offline.htm_ is kept in the application directory and must be manually removed. This is [documented](https://learn.microsoft.com/en-us/iis/publish/deploying-application-packages/taking-an-application-offline-before-publishing) but extremely difficult to diagnose. The web application just serves blank 503 page with no indication of the reason. Failed request tracing does not help:

![image](https://github.com/dotnet/aspnetcore/assets/10546952/7f0a5bd0-60d3-4ed8-930d-3095aaf849d5)

### Describe the solution you'd like

Indicate somewhere that the presence of _App_Offline.htm_ is the reason for the 503 response. This could be a substatus code, error code, failed request tracing message and/or a response header or content.

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.