You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I updated my templates, but there no effect on IIS server. Template files on server have been updated, but there is an old copy of the template somewhere. Restarting IIS have no effect and my email sending by old templates.
public string ConfirmOrderUserMessage(BookViewModelEmail book, MessageFormat format)
{
string templateFileName = "order-confirm-user.cshtml";
if (format == MessageFormat.Txt)
{
throw new NotImplementedException();
}
DynamicViewBag viewBag = new DynamicViewBag();
viewBag.AddValue("BaseUrl", _baseUrl);
var p = Path.GetFullPath(Path.Combine(_pathToTemplates, templateFileName));
var template = File.ReadAllText(p);
var result = Engine.Razor.RunCompile(template, "ConfirmOrderUserMessage" + format, null, book, viewBag);
return result;
}
I updated my templates, but there no effect on IIS server. Template files on server have been updated, but there is an old copy of the template somewhere. Restarting IIS have no effect and my email sending by old templates.
Some screenshots:
https://i.imgur.com/sqoXd0s.png
https://i.imgur.com/FU233fQ.png
How to force IIS to forget old templates?
The text was updated successfully, but these errors were encountered: