Error accessing view after publish on server RRS feed

  • Question

  • User1589179672 posted


    I'm getting an error trying to send an email in my web after publish (self-contained method in a linux server).

    Controller sends email by smtpclient with html (formed with an html template and replace method in the stringbuilder). The problem is that the server says me that can't access to the specified root for the html template. Maybe I have to add something to the publish method, .csproj file or is a configuration of the ngix in the server?

    I add some pictures to be more clarifyfied.



    This works in localhost with visual studio and IIS, but I need that this works in a linux server, I hope you can help me.

    Thanks in advance.

    Tuesday, February 11, 2020 10:31 AM

All replies

  • User-474980206 posted

    Typically the views are not included in the publish. You will need to add them.

    Tuesday, February 11, 2020 3:18 PM
  • User1589179672 posted


    Nice!!! I've added it in other place (with js and images folders in wwwtoot) and it works perfectly. Thank you so much!!

    Can close this post.


    Tuesday, February 11, 2020 3:21 PM