nop 4.0 RenderPartialViewToString no longer finds absolute paths

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 年 前
eg:
this.RenderPartialViewToString("~/Plugins/MyPluginPath/Views/Partials/_myPartialView.cshtml", model);


For some reason, razorViewEngine.FindView can't seem to find my view in nop 4.0 specifically.  The file certainly exists in the build output folder (/Presentation/Nop.Web/Plugins/MyPlugin/Views/Partials/_myPartialView.cshtml) as it renders properly in a view with:

@Html.Partial("~/Plugins/MyPluginPath/Views/Partials/_myPartialView.cshtml", model)


Am I missing something simple?
6 年 前
Hi Adam,

Thanks! We'll check it
6 年 前
Done. You can see the changes in this commit.
Thanks for the suggestion.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.