A plugin with 'Payments.manual' system name is already defined

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
11 years ago
hi
after mishandling I blocks. Do you have any idea to solve the problem

Thanks

A plugin with 'Payments.Manual' system name is already defined

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Exception: A plugin with 'Payments.Manual' system name is already defined

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[Exception: A plugin with 'Payments.Manual' system name is already defined]
   Nop.Core.Plugins.PluginManager.Initialize() in f:\Own\nopDownloads\downloads\nopCommerce_2.50_Source\Libraries\Nop.Core\Plugins\PluginManager.cs:107

[Exception: A plugin with 'Payments.Manual' system name is already defined
]
   Nop.Core.Plugins.PluginManager.Initialize() in f:\Own\nopDownloads\downloads\nopCommerce_2.50_Source\Libraries\Nop.Core\Plugins\PluginManager.cs:176

[InvalidOperationException: The pre-application start initialization method Initialize on type Nop.Core.Plugins.PluginManager threw an exception with the following error message: A plugin with 'Payments.Manual' system name is already defined
.]
   System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods) +423
   System.Web.Compilation.BuildManager.CallPreStartInitMethods() +306
   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +591

[HttpException (0x80004005): The pre-application start initialization method Initialize on type Nop.Core.Plugins.PluginManager threw an exception with the following error message: A plugin with 'Payments.Manual' system name is already defined
.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8950644
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +97
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +256
11 years ago
Are you creating a new plugin that has the same name as Payments.Manual? :)
11 years ago
I modified the plugin by removing Two cards and then recompiled
i wanted after to uninstall the plugin and then reinstall
but big problems since
11 years ago
What did you delete? :)
11 years ago
i m deleted in Nop.Plugin.Payments.Manual in the files PaymentManualController.cs

            model.CreditCardTypes.Add(new SelectListItem()
            {
                Text = "Discover",
                Value = "Discover",
            });
            model.CreditCardTypes.Add(new SelectListItem()
            {
                Text = "Amex",
                Value = "Amex",
            });
11 years ago
Hmmm... I don't see why these changes can affect the plugin. So you have REBUILD (not BUILD) the plugin? Can you try DELETING all the folders under "~/Presentation/Nop.Web/Plugins" and REBUILD the whole project? :P
11 years ago
I found the problem
in my plugin folder I renamed my plugin payments.manual in 00payments.manual and copy my new plugin in folder
is for this reason that there were two identical plugin
I m deleted 00payments.manual  and it's ok
thank a lot for your time

Best regards
11 years ago
No problem. :)
10 years ago
wooncherk wrote:
Hmmm... I don't see why these changes can affect the plugin. So you have REBUILD (not BUILD) the plugin? Can you try DELETING all the folders under "~/Presentation/Nop.Web/Plugins" and REBUILD the whole project? :P


I know it's been a while, but thanks wooncherk, this answer helped me.  After renaming a plugin I made from product to widget, I forgot about it being put in the presentation side of things from all my debugging, so I was getting this error.  Clearing this folder did the trick.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.