The 5th annual nopCommerce conference will take place in India on the 10th-11th of October. Please find more about this event here

nop 4.0 RenderPartialViewToString no longer finds absolute paths

Posted: October 26, 2017 at 4:28 PM Quote #195277
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?
This post/answer is useful
1
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
- Adam K
www.aperturelabs.biz
Posted: October 27, 2017 at 2:01 AM Quote #195289
Hi Adam,

Thanks! We'll check it
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Interested in the dedicated Premium support services provided by core developers? Please visit http://www.nopcommerce.com/supportservices.aspx

Regards,
Andrei Mazulnitsyn
Posted: October 27, 2017 at 11:55 AM Quote #195320
Done. You can see the changes in this commit.
Thanks for the suggestion.
This post/answer is useful
2
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Interested in the dedicated Premium support services provided by core developers? Please visit http://www.nopcommerce.com/supportservices.aspx

Regards,
Maksim Romanov
Premium support services
  • Dedicated premium support services provided by core developers are intended for persons who run mission critical websites, work on projects with tight deadlines, or want to get dedicated support.
Professional services
  • Want to open a new store? Want to take your store to the next level? Need a custom extension? We can customize nopCommerce to fit your store perfectly. Request a quote to get started.
eCommerce CONFERENCE 2019
Learn more