string message = $"Hello {FName.FirstName}! We have recieved your Reset Password request. Please click the link to Reset Password. URL : {Request.HttpRequestUri.Scheme}://{Request.RequestUri.Host}:{(Request.RequestUri.IsDefaultPort ? string.Empty : Request.RequestUri.Port.ToString())}{"/api/Login/ResetPassword?uid="}{ user.UserId}";
I have to create this code send reset password link on mail using .net core 3.1.It's not working .
I have this error-
'HttpRequest' does not contain a definition for 'HttpRequestUri' and no accessible extension method 'HttpRequestUri' accepting a first argument of type 'HttpRequest' could be found (are you missing a using directive or an assembly reference?) .
Please solve this it's most important for me.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Farhan AhmedRank #73 · 25K reputationPosted Jul 3, 2020, 4:57 PM EDT
Avnish KumarRank #1,003 · 2K reputationPosted Jul 5, 2020, 9:03 PM EDT