error creating the route with name 'Nop.Plugin.Myplugin.Configure' and template 'Plugins/MyPluginl/Configure'

Posted: December 07, 2017 at 9:34 AM Quote #197428
Hi,

I am experiencing problems in creating a simple Configure View.

Those are my components I added:

public class MyPlugin : BasePlugin, IMiscPlugin
    {       public override string GetConfigurationPageUrl()
        {

            return _webHelper.GetStoreLocation() + "Admin/ABCMyPlugin/Configure";
        }

######################################

public class ConfigurationModel : BaseNopModel
    {
//empty right now
}

#########################################

@model Nop.Plugin.ABC.MyPlugin.Models.ConfigurationModel
@inject Nop.Core.IWebHelper webHelper
@{
    Layout = "_ConfigurePlugin";
}
<form asp-controller="WidgetsGoogleAnalytics" asp-action="Configure" method="post">
    <div class="panel-group">
        <div class="panel panel-default">
            <div class="panel-body">
                <h1> Mail Absender </h1>
            </div>
        </div>
    </div>
</form>



#########################################

Views/
---_ViewImports.cshtml
---Configure.cshtml


############

What am I missing???

Also I realized that despite my settings a subfolder net461 is created in
nop.web/plugins/abc.myPlugin/net461
and assemblies and files of the plugin are placed beneath.
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)
Posted: December 07, 2017 at 10:03 AM Quote #197430
apfelsine wrote:

Also I realized that despite my settings a subfolder net461 is created in
nop.web/plugins/abc.myPlugin/net461
and assemblies and files of the plugin are placed beneath.


You can remove net461 from out path at plugin library project property
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)
Raju Paladiya
Posted: December 11, 2017 at 7:30 AM Quote #197597
I DID remove it, but it is applied automatically by Visual Studio! Even if I remove it, the minute I save it gets reentered again.
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)
Posted: December 11, 2017 at 7:50 AM Quote #197602
apfelsine wrote:
I DID remove it, but it is applied automatically by Visual Studio! Even if I remove it, the minute I save it gets reentered again.


That would be due the Copy Local setting of the reference property.
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)
If this post helped please vote UP so others can benefit.

"The man who asks a question is a fool for a minute, the man who does not ask is a fool for life." -- Confucius
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.