Error Wjile Loading Plugins On start

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
I get this error everytime at the start of the application. all the solution is freshly compiled and with no errors. plugins are copied correctly. but when loading, this error happens everytime ... Note that the InstalledPlugins.txtx file in the app_Data directory was always emty. I had to manually add the list of plugins ... any idea pls and thank you in advance:

Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
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.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

Source Error:


Line 122:
Line 123:                            //init plugin type (only one plugin per assembly is allowed)
Line 124:                            foreach (var t in description.ReferencedAssembly.GetTypes())
Line 125:                                if (typeof(IPlugin).IsAssignableFrom(t))
Line 126:                                    if (!t.IsInterface)


Source File: D:\nopcommerceCopy\src\Libraries\Nop.Core\Plugins\PluginManager.cs    Line: 124

Stack Trace:


[ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.]
   System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) +0
   System.Reflection.RuntimeModule.GetTypes() +4
   System.Reflection.Assembly.GetTypes() +78
   Nop.Core.Plugins.PluginManager.Initialize() in D:\nopcommerceCopy\src\Libraries\Nop.Core\Plugins\PluginManager.cs:124

[Exception: Method 'CompareTo' in type 'Nop.Plugin.DiscountRules.BillingCountry.BillingCountryDiscountRequirementRule' from assembly 'Nop.Plugin.DiscountRules.BillingCountry, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
]
   Nop.Core.Plugins.PluginManager.Initialize() in D:\nopcommerceCopy\src\Libraries\Nop.Core\Plugins\PluginManager.cs:144

[Exception: Method 'CompareTo' in type 'Nop.Plugin.DiscountRules.BillingCountry.BillingCountryDiscountRequirementRule' from assembly 'Nop.Plugin.DiscountRules.BillingCountry, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.

Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
]
   Nop.Core.Plugins.PluginManager.Initialize() in D:\nopcommerceCopy\src\Libraries\Nop.Core\Plugins\PluginManager.cs:163

[InvalidOperationException: The pre-application start initialization method Initialize on type Nop.Core.Plugins.PluginManager threw an exception with the following error message: Method 'CompareTo' in type 'Nop.Plugin.DiscountRules.BillingCountry.BillingCountryDiscountRequirementRule' from assembly 'Nop.Plugin.DiscountRules.BillingCountry, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.

Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
.]
   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: Method 'CompareTo' in type 'Nop.Plugin.DiscountRules.BillingCountry.BillingCountryDiscountRequirementRule' from assembly 'Nop.Plugin.DiscountRules.BillingCountry, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.

Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9080828
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +97
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +258
12 years ago
if anybody is interested, to solve all issues, clean up all references to asp.net 2.0 (System.web.webpages.dll and others) from all projects .... and make sure all these dlls are version 1.0.0.0

then all works fine.
12 years ago
sch09 wrote:
if anybody is interested, to solve all issues, clean up all references to asp.net 2.0 (System.web.webpages.dll and others) from all projects .... and make sure all these dlls are version 1.0.0.0

then all works fine.


Is this something that is going to be sorted out in the next release?

I would suspect more and more people are going to have mvc 4 and web pages 2 installed.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.