Object reference not set to an instance of an object.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
8 years ago
hello

my website was working good after that my server stop working and i got that error :
Server Error in '/en' Application.
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:

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:


[NullReferenceException: Object reference not set to an instance of an object.]
   Nop.Core.Plugins.PluginManager.PerformFileDeploy(FileInfo plug) in e:\xs-kw-new11\Libraries\Nop.Core\Plugins\PluginManager.cs:327
   Nop.Core.Plugins.PluginManager.Initialize() in e:\xs-kw-new11\Libraries\Nop.Core\Plugins\PluginManager.cs:140

[Exception: Object reference not set to an instance of an object.
]
   Nop.Core.Plugins.PluginManager.Initialize() in e:\xs-kw-new11\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) +9932052
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34280
8 years ago
Pilot458 wrote:
hello

my website was working good after that my server stop working and i got that error :
Server Error in '/en' Application.
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:

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:


[NullReferenceException: Object reference not set to an instance of an object.]
   Nop.Core.Plugins.PluginManager.PerformFileDeploy(FileInfo plug) in e:\xs-kw-new11\Libraries\Nop.Core\Plugins\PluginManager.cs:327
   Nop.Core.Plugins.PluginManager.Initialize() in e:\xs-kw-new11\Libraries\Nop.Core\Plugins\PluginManager.cs:140

[Exception: Object reference not set to an instance of an object.
]
   Nop.Core.Plugins.PluginManager.Initialize() in e:\xs-kw-new11\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) +9932052
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34280

Do you install new plugin recently ?
8 years ago
Hi there might possible when your Nop.Web/Plugin directory will have empty folder of any one of plugin.
I got a same issue before couple of years.
8 years ago
something wrong with any of your plugin that is not able to load properly and throwing the exception.

try to remove the newest installed plugin systemname from root/AppData/installedplugin.txt file or uninstalled it from admin if possible.
8 years ago
This happens mainly when a plugin is installed, but tables needed for that plugin is not in that database.
8 years ago
I fixed this issue by checking the error.  Basically the description file had an incorrect dll reference.


FileName: Nop.Plugin.Other.xyzplugin.dll

Changed to:
FileName: Nop.Plugin.Misc.xyzplugin.dll

You have to find the actual dll file that is generated.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.