Unable to load one or more of the requested types.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
Hi,
I developed a project own local server and when I published, I have recevied that error message. If I build solution, project running local server otherwise it not working. So I can't publish my project. Please would you suggest a solution ?


And sorry for my english.


Server Error in '/' Application.

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:

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:


[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() +9
   System.Reflection.Assembly.GetTypes() +70
   Nop.Core.Plugins.PluginManager.Initialize() in D:\Works\Projects\b2b\Libraries\Nop.Core\Plugins\PluginManager.cs:148

[Exception: Plugin 'Seven Spikes Core'. Could not load file or assembly 'Nop.Admin, Version=3.9.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
Could not load file or assembly 'Nop.Admin, Version=3.9.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
Could not load file or assembly 'Nop.Admin, Version=3.9.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
]
   Nop.Core.Plugins.PluginManager.Initialize() in D:\Works\Projects\b2b\Libraries\Nop.Core\Plugins\PluginManager.cs:167

[Exception: Plugin 'Seven Spikes Core'. Could not load file or assembly 'Nop.Admin, Version=3.9.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
Could not load file or assembly 'Nop.Admin, Version=3.9.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
Could not load file or assembly 'Nop.Admin, Version=3.9.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

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

[InvalidOperationException: The pre-application start initialization method Initialize on type Nop.Core.Plugins.PluginManager threw an exception with the following error message: Plugin 'Seven Spikes Core'. Could not load file or assembly 'Nop.Admin, Version=3.9.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
Could not load file or assembly 'Nop.Admin, Version=3.9.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
Could not load file or assembly 'Nop.Admin, Version=3.9.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
.]
   System.Web.Compilation.BuildManager.InvokePreStartInitMethodsCore(ICollection`1 methods, Func`1 setHostingEnvironmentCultures) +615
   System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods) +141
   System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +102
   System.Web.Compilation.BuildManager.ExecutePreAppStart() +157
   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +549

[HttpException (0x80004005): The pre-application start initialization method Initialize on type Nop.Core.Plugins.PluginManager threw an exception with the following error message: Plugin 'Seven Spikes Core'. Could not load file or assembly 'Nop.Admin, Version=3.9.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
Could not load file or assembly 'Nop.Admin, Version=3.9.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
Could not load file or assembly 'Nop.Admin, Version=3.9.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +10085804
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +95
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.2106.0
6 years ago
Hello,

Can you check which version of nopCommerce are you using and which version Seven Spikes plugin are you using?

Thanks,
Jatin
6 years ago
All them's version is 3.90. I was install without source code. Site working but I cant found cause of problem.
Thanks for answer.
6 years ago
All them's version is 3.90. I was install without source code. Site working but I cant found cause of problem.
Thanks for answer.
6 years ago
Hi caneralcilioglu

This normally happens when you try to run the application before it has finished building, try cleaning and building the app first, and then make sure you let it complete before trying to view the site.

Are you getting any build errors ?
6 years ago
You are missing Nop.Admin.dll in your bin folder. Build Nop.Admin, go to your projects bin folder paste it in your published project's bin folder.
6 years ago
That worked a treat robinrogne! Nop.Admin had been somehow de-referenced from Nop.Web. After adding the dll as reference everything worked again.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.