Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

SendGrid Breaks When Website is Uploaded to Remote Host

$
0
0

I successfully setup email confirmation on my development machine by following these instructions https://docs.microsoft.com/en-us/aspnet/core/security/authentication/accconfirm?view=aspnetcore-3.1&tabs=visual-studio but when I upload the site to the remote server SendGrid no longer works and emails cannot be sent. I think this is due to how that tutorial instructs people to store credentials using dotnet Powershell commands.

My understanding is that those commands stored the credentials somewhere on that machine and not in the application itself. If that is the case then how do you install the credentials on the remote machine? 

I tried the same dotnet commands but I enter "dotnetuser-secrets set SendGridUser MyProjectName" I get the same error I got on the development machine saying I needed to set the --project option. I was able to do that just by adding --project MyProjectName and every thing was fine. On the remote server I get an error that the project does not exist with a link to the \Users\Administrator\MyProjectName

How do I use SendGrid on a remote machine? I am not sure why it looks for a project in that location or how to make it look for a project elsewhere.


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>