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 anos atrás
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 anos atrás
Hi Adam,

Thanks! We'll check it
6 anos atrás
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.