© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
C
C#
•
3y ago
•
1 reply
bookuha
❔ Access appsettings.json in ASP.NET Web API in Azure published App Service
https://stackoverflow.com/questions/76005641/azure-hosted-asp-net-web-api-cannot-access-appsettings-json
Stack Overflow
Azure-hosted ASP.NET Web API cannot access appsettings.json
I
'm trying to publish my
.NET 7 Web API on Azure as App Service
+ Database
.
Locally I execute the following code to get appsettings
.json working in my dotnet publish
(
-ed
) app
:
var builder
=
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
❔ Access AppSettings.json in asp.net core
C
C# / help
3y ago
❔ Access AppSettings from CSHTML in ASP.NET core
C
C# / help
3y ago
✅ Authorization in ASP.NET Web Api
C
C# / help
2y ago
❔ Azure ASP.NET web api defaultAzureCredentials Error (DevOps Help)
C
C# / help
3y ago