I was working in a Web api project to send mail after user registration.
In my startup.cs i have
app.UseStaticFiles(); app.UseStaticFiles