Firstly I just want to say a big thank you to all the developers, mods and users who have contributed to this code base and made it as great as it is.
I have an issue with nopCommerce 2.65, I can install this fine on my local machine with full trust and all the appropriate permissions but I am having difficulty using this version for my medium trust shared hosting environment.
I have read though all the pages within this page https://www.nopcommerce.com/Boards/Topic.aspx?TopicID=568, that explains the changes needed for medium trust, but this post is 3 years old and seems out of date.
I was wondering if anyone could give me some pointers on what i need to change to make this compatible with my medium trust hosting.
Server Error in '/' 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) +12 Nop.Core.Plugins.PluginManager.Initialize() +1247
[Exception: Object reference not set to an instance of an object. ] Nop.Core.Plugins.PluginManager.Initialize() +2202
[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.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) +677
[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) +9088636 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +97 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +256
I don't think it's medium trust issue. It works fine in medium trust. I've seen several topics where other several users reported this issue (the same error stack), but I've never been able to replicate it. Really don't know how to resolve it.
I just got that PluginManager.PerformFileDeploy error yesterday while developing on my local PC. I just Cleaned the entire solution, and Rebuild, and it went away.
Tired, what you suggested New York, but still the same issue. Looks like I will have to use a different code base, shame because I really liked this. Thank you anyway.