Initialize action failed for EPiServer.Framework.IInitializableModule.Initialize on class Foundation.Find.Cms.Initialize, Foundation.Find.Cms

Vote:
 

I am very new to Episerver. Went through the readme in https://github.com/episerver/Foundation

Installation went through fine. I can compile the solution without any error. I tried to load http://yourdomainname/setup

page and I am getting the following error.

Initialize action failed for EPiServer.Framework.IInitializableModule.Initialize on class Foundation.Find.Cms.Initialize, Foundation.Find.Cms

After debugging I found that initialization is failing to load types from Microsoft.IdentityModel.Clients.ActiveDirectory

Any help will be appreciated. Thanks.

#224267
Jun 15, 2020 16:23
Vote:
 

I suppose you are using a fairly old version of Find. upgrading to at least 13.2.6 should get rid of that, and you get other improvements as well

#224269
Jun 15, 2020 17:20
Vote:
 

The version of Find in the project is 13.2.7.

#224272
Jun 15, 2020 17:38
Vote:
 

Is there any error you faced while installation?

#224298
Jun 16, 2020 10:32
Himadri - Jun 16, 2020 12:36
There was no error in installation. Solution compiles fine and all nuget packages restored. Databases are there, websites are there in IIS. Host file has entries. Is there any way to disable Find? I can then try to see if rest of the site is loading or not.
Ravindra S. Rathore - Jun 16, 2020 12:42
You can.
https://world.episerver.com/forum/developer-forum/EPiServer-Search/Thread-Container/2019/6/disable-episerver-find-temporarily/
Ravindra S. Rathore - Jun 16, 2020 12:43
or I think you can uninstall the find NuGet package
Himadri - Jun 16, 2020 12:44
Thanks. I will give that a try.
Himadri - Jun 16, 2020 15:59
Disabling find doesn't work as mentioned in the article. The issue is happening when application is bootstrapping.
Vote:
 

I was mistaken with another issue - can you post the full stacktrace here?

#224302
Jun 16, 2020 11:55
Himadri - Jun 16, 2020 12:39
Here is the stack trace from SiteErrors.log. This doesn't show which dll is failing to load. I can see that only when I debug in visual studio and look at the LoaderExceptions property

2020-06-15 15:36:25,825 [1] ERROR EPiServer.Framework.Initialization.InitializationEngine: Initialize action failed for 'EPiServer.Framework.IInitializableModule.Initialize on class Foundation.Find.Cms.Initialize, Foundation.Find.Cms, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.Assembly.GetTypes()
at System.Linq.Enumerable.
Vote:
 

I could bring up the site by commenting code in void IInitializableModule.Initialize(InitializationEngine context) in Initialize class ofFoundation.Find.Cms

Something will break later. Search is working though. 

#224309
Jun 16, 2020 16:49
* 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.