Sunday, April 5, 2026 11:25:35 PM

Trying to install plugins

11 years ago
#95 Quote
I'm trying to install the plugins as described on this step of the install guide http://www.nopaccelerate.com/wiki/installing-nopaccelerate-solr-plugins/installing-nopaccelerate-solr-plugins-in-nopcommerce-3-00/ however the plugins don't show up in the list of plugins when I go to Admin/Configuration/Plugins even after I hit the "Reload list of plugins" button. I'm putting the plugin files in the /Plugins folder, I tried moving them to the /Presentation/Nop.Web/Plugins folder but then I get the following error when trying to load any page on the site:

Object reference not set to an instance of an object.

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.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


Line 328:        private static Assembly PerformFileDeploy(FileInfo plug)
Line 329:        {
Line 330:            if (plug.Directory.Parent == null)
Line 331:                throw new InvalidOperationException("The plugin directory for the " + plug.Name +
Line 332:                                                    " file exists in a folder outside of the allowed nopCommerce folder heirarchy");

Source File: d:\Repositories\MessageHub\Libraries\Nop.Core\Plugins\PluginManager.cs    Line: 330

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Nop.Core.Plugins.PluginManager.PerformFileDeploy(FileInfo plug) in d:\Repositories\MessageHub\Libraries\Nop.Core\Plugins\PluginManager.cs:330
   Nop.Core.Plugins.PluginManager.Initialize() in d:\Repositories\MessageHub\Libraries\Nop.Core\Plugins\PluginManager.cs:140

[Exception: Object reference not set to an instance of an object.
]
   Nop.Core.Plugins.PluginManager.Initialize() in d:\Repositories\MessageHub\Libraries\Nop.Core\Plugins\PluginManager.cs:182

[InvalidOperationException: The pre-application start initialization method Initialize on type Nop.Core.Plugins.PluginManager threw an exception with the following error message: Object reference not set to an instance of an object.
.]
   System.Web.Compilation.BuildManager.InvokePreStartInitMethodsCore(ICollection`1 methods, Func`1 setHostingEnvironmentCultures) +547
   System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods) +132
   System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +102
   System.Web.Compilation.BuildManager.ExecutePreAppStart() +153
   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +521

[HttpException (0x80004005): The pre-application start initialization method Initialize on type Nop.Core.Plugins.PluginManager threw an exception with the following error message: Object reference not set to an instance of an object.
.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9930568
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254


Anyone have any idea how to fix this? I'm running NopCommerce 3.40 and have selected the corresponding nopaccelerate files for 3.40

Thanks!
0
11 years ago
#96 Quote
Hello Christopher,

Just Place NopAccelerate plugins folder(i.e.,XcellenceIT.Plugin.Solr.Core,XcellenceIT.Plugin.Solr.Products & XcellenceIT.Plugin.Solr.Search) at YourAppliactionFolder/Plugins/ and place Viewpage folder (i.e., SolrProduct & SolrSearch) at YourAppliactionFolder/Views/

Moreover I am not getting this: "I tried moving them to the /Presentation/Nop.Web/Plugins >folder" because Deployable code doesn't contains /Presentation/Nop.Web/Plugins hierarchy as you mention.

Regards,
Chitra
0
11 years ago
#97 Quote
I guess some more info from me would be helpful, I have placed the plugins in the folders you mentioned with no luck but maybe the steps are different when you are building and testing locally with Visual Studio? Is it even possible to use NopAccelerate with a locally built copy of NopCommerce?
0
11 years ago
#98 Quote
Hello Christopher,

Yes, It is even possible to use NopAccelerate with a locally built copy of NopCommerce using Visual Studio. For that place nopAccelerate plugins at \Presentation\Nop.Web\Plugins\ and place viewpages folder at \Presentation\Nop.Web\Views\ and hope you get plugins at admin side Configuration->Plugin list.

Still If you didn't get plugins then Reload list of plugins or just Restart Application once.

Regards,
Chitra
0
11 years ago
#99 Quote
Hello Chitra,

Tried to reply to the email/ticket you sent but never got any response so I'll just use this for communication...

Thanks for the help! I put the plugins in the right folder (as I had mentioned in my first post) and the views in the folder you mentioned but I’m still getting this same error when I try to run the site, any ideas on what I’m doing wrong:

Object reference not set to an instance of an object.

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.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


Line 328:        private static Assembly PerformFileDeploy(FileInfo plug)
Line 329:        {
Line 330:            if (plug.Directory.Parent == null)
Line 331:                throw new InvalidOperationException("The plugin directory for the " + plug.Name +
Line 332:                                                    " file exists in a folder outside of the allowed nopCommerce folder heirarchy");

Source File: d:\Repositories\MessageHub\Libraries\Nop.Core\Plugins\PluginManager.cs    Line: 330

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Nop.Core.Plugins.PluginManager.PerformFileDeploy(FileInfo plug) in d:\Repositories\MessageHub\Libraries\Nop.Core\Plugins\PluginManager.cs:330
   Nop.Core.Plugins.PluginManager.Initialize() in d:\Repositories\MessageHub\Libraries\Nop.Core\Plugins\PluginManager.cs:140

[Exception: Object reference not set to an instance of an object.
]
   Nop.Core.Plugins.PluginManager.Initialize() in d:\Repositories\MessageHub\Libraries\Nop.Core\Plugins\PluginManager.cs:182

[InvalidOperationException: The pre-application start initialization method Initialize on type Nop.Core.Plugins.PluginManager threw an exception with the following error message: Object reference not set to an instance of an object.
.]
   System.Web.Compilation.BuildManager.InvokePreStartInitMethodsCore(ICollection`1 methods, Func`1 setHostingEnvironmentCultures) +547
   System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods) +132
   System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +102
   System.Web.Compilation.BuildManager.ExecutePreAppStart() +153
   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +521

[HttpException (0x80004005): The pre-application start initialization method Initialize on type Nop.Core.Plugins.PluginManager threw an exception with the following error message: Object reference not set to an instance of an object.
.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9930568
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254
0