Can’t resolve non-rooted path

When adding a GuiPlugin attribute to a class in order to display it in the EPiServer Admin View, I get the error Can’t resolve non-rooted path.

The changes I made were the colored ones:

[Authorize(Roles = “Administrators, WebAdmins”)]
[GuiPlugIn(DisplayName=”Portal Users”, Url =”UserProfile”, Area = PlugInArea.AdminMenu)]
public class UserProfileController : Controller

This was due to  having incorrectly defined the Url parameter. The controller for the plugin resided in /UserProfileController, and the default View was Index, so the correct setup was to change the Url parameter to “/UserProfile/Index”.

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s