My understanding from the Microsoft documentation is the userSecret configuration is supposed to be automatically created by the WebApplication.CreateBuilder() while in the development environment. This is not true for my current WebAPI .net7 application. I have run the init command and populated the secrets file. Any ideas on why the userSecrets would be missing from the configuration sources?
User Secrets not loading with WebApplication.CreateBuilder(args)
590 views Asked by kevin At
1
There are 1 answers
Related Questions in WEBAPI
- Web API talking to Vue app hosted separately in IIS... why is app.use spa needed?
- Set-Cookie header not forwarded by nginx to the client
- How to programatically fast forward video on a website
- WebApi for Vue app errors, fails to call command line
- ASP.NET Www-Authenticate: Bearer error="invalid_token", error_description="The signature key was not found"
- Automatic Spotipy Max Retries Reached
- Mac Sonoma 14.4 Dotnet 8.0.203 SDK webapi https error
- Certificate error: ASP.NET Core 8 WebAPI with HTTPS running in a docker container hosted on Ubuntu 22.04
- Error Deserializing SOAP Envelope using C#
- When exactly is the setTimeout callback put on the macrotask queue?
- Migrating a Blazor Hosted App from .NET 7 to .NET 8 is giving a serialization error
- PrestaShop 1.7.8 API bug on simple product creation
- how to access a file under the localhost path that my Python app runs
- preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource
- Browser API | Close window programmatically
Related Questions in .NET-7.0
- Why https is disabled on publish in .NET Core 7.0
- Is it possible for a .net core app run 2 different GC modes at the same time?
- Entity Framework Core 7 - Saving entities with child entities that already exists using a different key
- Calling a service class from a controller results in On object reference is required for the non-static field, method error
- I need to modify the value of string type if the property name is "xyz" in JsonConverter<string> using System.Text.Json
- WebPage doesnt want to work with controller .net 7.0
- Why can't Hangfire find the executable it is running from?
- Blazor and communication between pages, layouts and components
- Blazor component state and render clarity
- Authorization .NET 7 - Minimal API. Jwt token not valid, but everything is connected correctly
- .NET Authentication .NET 7 Vs .NET 8 in my simple API service
- Index error when deleting and creating an object in SQLite's table
- OAuth 2.0 authorization in .Net 7
- Entity Framework Core 7 - configuring two keys
- WebRootPath is null in ASP.NET Core MVC application
Related Questions in USER-SECRET
- ASP.NET Core with Docker over HTTPS using User Secrets
- .net7 Web API User Secrets not loading
- User Secrets not loading with WebApplication.CreateBuilder(args)
- How do I get .NET Feature Management to use config in User Secrets?
- How do I correctly update my EF Core context to use secrets.json instead of a hard-coded connection string?
- ASP.NET Core - User Secrets per Git Branch
- Specflow test runsettings & usersecrets
- grab UserSecrets from a NuGet package
- C# - Using user-secrets import in all class of a project
- Azure function startup (.net core 5, runtime v3) occurs well before Program.Main
- Manage User Secrets in a custom config file
- How to use .NET Core secrets in .sh file that is called from docker-compose
- Does .Net Core can change User Secret based on Environment in launch settings?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
From the documentation:
Ensure that your environment is set to
Development. This is usually done via theASPNETCORE_ENVIRONMENTenv variable for web apps.