C
C#6mo ago
Gipper

✅ Trouble setting up user-secrets

I'm trying to set up my ASP.NET app to send emails to confirm account registration. Following this documentation: https://learn.microsoft.com/en-us/aspnet/core/security/authentication/accconfirm?view=aspnetcore-8.0&tabs=visual-studio Reffering to the section called "Configure SendGrid user secrets" when I try to input this command into my CLI:
dotnet user-secrets set sendGridKey MM$s85<Y60%X=q.BN+TN8z|Q%qQWie'|PxO
dotnet user-secrets set sendGridKey MM$s85<Y60%X=q.BN+TN8z|Q%qQWie'|PxO
I simply get another CLI prompt and not the success message shown in the documentation. What gives? HelP?
Account confirmation and password recovery in ASP.NET Core
Learn how to build an ASP.NET Core app with email confirmation and password reset.
4 Replies
Pobiega
Pobiega6mo ago
can you show the output you get? or is it no output at all? did you dotnet user-secrets init?
Code\test\helloworld via .NET v8.0.300 🎯 net8.0
❯ dotnet user-secrets init
Set UserSecretsId to '7b6fe6b6-176e-469c-9bc5-c1338bf6c1aa' for MSBuild project 'D:\Code\test\helloworld\helloworld.csproj'.

Code\test\helloworld via .NET v8.0.300 🎯 net8.0
❯ dotnet user-secrets set test a
Successfully saved test = a to the secret store.
Code\test\helloworld via .NET v8.0.300 🎯 net8.0
❯ dotnet user-secrets init
Set UserSecretsId to '7b6fe6b6-176e-469c-9bc5-c1338bf6c1aa' for MSBuild project 'D:\Code\test\helloworld\helloworld.csproj'.

Code\test\helloworld via .NET v8.0.300 🎯 net8.0
❯ dotnet user-secrets set test a
Successfully saved test = a to the secret store.
Gipper
GipperOP6mo ago
all the output I get is another prompt (so just a ">" in a newline after the command expecting me to presumably input something else into the command line (view pic))
No description
Unknown User
Unknown User6mo ago
Message Not Public
Sign In & Join Server To View
Gipper
GipperOP6mo ago
many thanks, solved now :meowheart:
Want results from more Discord servers?
Add your server