Deployed C# API is not accessible, swagger, routes, all return 404

Eric Milliot 0 Reputation points
2025-04-14T03:49:00.7733333+00:00

I was able to connect my github repo, github action auto-deployment on commit. Builds and deploys successfully (creating artifact) from the yml script Azure I auto-generated and committed to my repo.

Azure overview page says my app is running good, no errors, however I cannot access my web API at all, not the swagger page, nor the routes. I keep getting 404.

https://reviewthisphoto.azurewebsites.net/swagger/index.html

Swagger is coded to always render regardless if prod of dev.

From my azure page:
Web app

Name

reviewthisphoto

Publishing model

Code

Runtime Stack

Dotnetcore - 9.0

Domains

Default domain

reviewthisphoto.azurewebsites.net

Custom domain

Add custom domain

Hosting

Plan Type

App Service plan

Name

ASP-ReviewThisPhoto-a1db

Operating System

Linux

Instance Count

1

SKU and size

Basic (B1)Scale up

What have I done wrong? Nothing appears incorrect for me.

.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,215 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.