Unable to find a module by assembly 'EPiServer.Labs.LanguageManager

Vote:
 

I have upgrade episerver commerce version 11.2.6 to 12.10.0 and episerver from 10.10.4 to version 11.10.5 and i am struggling with issue 

Unable to find a module by assembly 'EPiServer.Labs.LanguageManager, Version=3.1.6.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7'
Parameter name: moduleAssembly

It work on my development enviriment but not work on vitual machine. So i guess my local is already exist old version

Bassiclly the webroot is same both on my local and VM

Can anyone please help me resolve this issue:

Stack trace:

 

Unable to find a module by assembly 'EPiServer.Labs.LanguageManager, Version=3.1.6.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7'
Parameter name: moduleAssembly

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.ArgumentException: Unable to find a module by assembly 'EPiServer.Labs.LanguageManager, Version=3.1.6.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7'
Parameter name: moduleAssembly

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:

[ArgumentException: Unable to find a module by assembly 'EPiServer.Labs.LanguageManager, Version=3.1.6.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7'
Parameter name: moduleAssembly]
   EPiServer.Shell.Paths.ToResource(Assembly moduleAssembly, String moduleRelativeResourcePath) +325
   EPiServer.Labs.LanguageManager.Helpers.ModuleHelper.ToPhysicalVPPResource(Type type, String virtualpath) +26
   EPiServer.Labs.LanguageManager.Helpers.ModuleHelper.CreateTranslationFolderIfNotExisted(String folderName) +34
   EPiServer.Framework.Initialization.Internal.ModuleNode.Execute(Action a, String key) +58
   EPiServer.Framework.Initialization.Internal.ModuleNode.Initialize(InitializationEngine context) +123
   EPiServer.Framework.Initialization.InitializationEngine.InitializeModules() +248

[InitializationException: Initialize action failed for Initialize on class EPiServer.Labs.LanguageManager.InitializationModule, EPiServer.Labs.LanguageManager, Version=3.1.6.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7]
   EPiServer.Framework.Initialization.InitializationEngine.InitializeModules() +774
   EPiServer.Framework.Initialization.InitializationEngine.ExecuteTransition(Boolean continueTransitions) +194
   EPiServer.Framework.Initialization.InitializationModule.EngineExecute(HostType hostType, Action`1 engineAction) +876
   EPiServer.Framework.Initialization.InitializationModule.FrameworkInitialization(HostType hostType) +185
   EPiServer.Global..ctor() +42
   ASP.global_asax..ctor() +10

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
   System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +194
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +100
   System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +1485
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +298
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +27
   System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[] args) +80
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +182
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +369

[HttpException (0x80004005): Exception has been thrown by the target of an invocation.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +532
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +113
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +714

Regards,

Thao Pham

#198209
Oct 23, 2018 11:28
Vote:
 

Moved this question to Add ons forum where it is more relevant.

In cases like this it should be much easier by just comparing folder of the local site and the site on remote - by using Beyond Compare, for example. Some possiblities:

  • There is a Shell setting for LanguageManager but there is no assembly in bin folder
  • Version in bin folder does not match the version in web.config 
#198214
Oct 23, 2018 12:01
Vote:
 

Hi Quan Mai,

I already checked carefully

  • The assembly EPiServer.Labs.LanguageManager already exist on webroot/bin folder
  • Version in bin folder is 3.1.6.0 and the is no version specific in web.config
  • I also tried to commpared folder of local site and the site on remote. I saw they are identical

It very strange since error message say "Unable to find a module by assembly 'EPiServer.Labs.LanguageManager, Version=3.1.6.0"

i mean EPiServer.Labs.LanguageManager alreday placed in bin folder, and version also correct

Please give me an advice

Thanks,

Thao Pham

#198220
Oct 23, 2018 12:57
Vote:
 

By "They are identical", did you use the binary comparison? So are you saying the web.config, the files in bin folder and modules folder are the same and identical to a binary level?

#198221
Oct 23, 2018 13:04
Vote:
 

Hi Quan Mai,

Yes, I used binary comparison, and bin folder and modules folder was same and indentical to a binary level

I also have just tried to copy all webroot from my local site to the remote site and then try it again but same issue still occurs

I spent too much time on this issue but sitll stuck, please help me

#198223
Oct 23, 2018 13:14
Vote:
 

It sounds like you might want to look into the GAC on the VM http://www.nirsoft.net/dot_net_tools/gac_viewer.html 

#198224
Oct 23, 2018 13:37
Vote:
 

Hi Quan Mai,

I wil try and try

Please keep in touch

Thanks

Thao Pham

#198225
Oct 23, 2018 13:57
Vote:
 

Hi Quan,

I tried to clean all GAC on VM and now site is up, but i don't know why since i upgraded episerver to latest version it seems that all custom properties is not work

I view console tab from chrome and i saw a lot of log error related to dojo

Can you please give an advaice

dojo.js:15501 Failed to load resource: the server responded with a status of 404 ()
xhr @ dojo.js:15501
dojo.xhr @ dojo.js:14629
_24b @ widgets.js:2
dojo.cache @ widgets.js:2
(anonymous) @ Editor.js:46
runFactory @ dojo.js:1107
execModule @ dojo.js:1236
execModule @ dojo.js:1227
(anonymous) @ dojo.js:1271
guardCheckComplete @ dojo.js:1251
checkComplete @ dojo.js:1266
onLoadCallback @ dojo.js:1428
onLoad @ dojo.js:1662
dojo.js:14454 ErrorCtor
_deferError @ dojo.js:14454
(anonymous) @ dojo.js:14414
notify @ dojo.js:8123
complete @ dojo.js:8104
reject.errback @ dojo.js:8166
notify @ dojo.js:8138
complete @ dojo.js:8104
reject.errback @ dojo.js:8166
notify @ dojo.js:8138
complete @ dojo.js:8104
reject.errback @ dojo.js:8166
(anonymous) @ dojo.js:14649
signalListener @ dojo.js:8325
Deferred.then.promise.then @ dojo.js:8546
otherwise @ dojo.js:8786
dojo.xhr @ dojo.js:14642
_24b @ widgets.js:2
dojo.cache @ widgets.js:2
(anonymous) @ /ClientResources//editors/stringlist/Editor.js:46
at dojo.js:802 "Error: Invalid template:
at Function._21f.getCachedTemplate (https://abc.local/EPiServer/Shell/11.10.0/ClientResources/epi/shell/widgets.js:2:69677)
at Object.buildRendering (https://abc.local/EPiServer/Shell/11.10.0/ClientResources/epi/shell/widgets.js:2:67496)
at Object.create (https://abc.local/EPiServer/Shell/11.10.0/ClientResources/epi/shell/widgets.js:2:15484)
at Object.postscript (https://abc.local/EPiServer/Shell/11.10.0/ClientResources/epi/shell/widgets.js:2:14925)
at new <anonymous> (https://abc.local/EPiServer/Shell/11.10.0/ClientResources/dojo/dojo.js:4381:7)
at Object._6ff (https://abc.local/EPiServer/Shell/11.10.0/ClientResources/epi/shell/widgets.js:2:251595)
at https://electrolux.local/EPiServer/Shell/11.10.0/ClientResources/dojo/dojo.js:3135:55
at runFactory (https://abc.local/EPiServer/Shell/11.10.0/ClientResources/dojo/dojo.js:1107:43)
at execModule (https://abc.local/EPiServer/Shell/11.10.0/ClientResources/dojo/dojo.js:1236:5)
at https://abc.local/EPiServer/Shell/11.10.0/ClientResources/dojo/dojo.js:802:7
----------------------------------------
rejected at signalDeferred (https://abc.local/EPiServer/Shell/11.10.0/ClientResources/dojo/dojo.js:8372:15)
at signalListener (https://abc.local/EPiServer/Shell/11.10.0/ClientResources/dojo/dojo.js:8343:5)
...
Error
at Promise.Deferred.then.promise.then (https://electrolux.local/EPiServer/Shell/11.10.0/ClientResources/dojo/dojo.js:8540:24)
at when (https://abc.local/EPiServer/Shell/11.10.0/ClientResources/dojo/dojo.js:9065:26)
at Object._createInternal (https://abc.local/EPiServer/Shell/11.10.0/ClientResources/epi/shell/widgets.js:2:250546)
at Object.<anonymous> (https://abc.local/EPiServer/Shell/11.10.0/ClientResources/epi/shell/widgets.js:2:250145)
at https://abc.local/EPiServer/Shell/11.10.0/ClientResources/dojo/dojo.js:3135:55
at Object.map (https://abc.local/EPiServer/Shell/11.10.0/ClientResources/dojo/dojo.js:3650:15)
at Object._createWidgets (https://abc.local/EPiServer/Shell/11.10.0/ClientResources/epi/shell/widgets.js:2:250075)
at Object.<anonymous> (https://abc.local/EPiServer/Shell/11.10.0/ClientResources/epi/shell/widgets.js:2:249660)
at https://abc.local/EPiServer/Shell/11.10.0/ClientResources/dojo/dojo.js:3135:55
at runFactory (https://abc.local/EPiServer/Shell/11.10.0/ClientResources/dojo/dojo.js:1107:43)"

#198255
Oct 24, 2018 8:53
Vote:
 

That is a different matter, please create another thread for it. 

#198256
Oct 24, 2018 8:59
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.