Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
I have the same error, and it's intermittent. Sometimes the website works, but for most part it doesn't. The support is not able to reproduce the error in their environment with my code either.
You can try to delete all temprorary ASP.NET files, recycle the app pool, clean solution and then re-build. That worked for my colleague.
Did you solve this Aaron? Or do you still have the same error, I'm still struggling with it.
Just ran into the same problem when updating the references. Anyone have a solution for this?
Does your "SearchRegisterPage" have any dependencies that are injected in the constructor? If the implementations of those dependencies are set up in init modules then you need to ensure that your custom module has a dependency on the module that sets up those dependencies.
If the above is true then the desired initialisation order is:
However unless you explicitly set init module dependencies then EPiServer can execute them in any order so you may end up executing 1. 3. 2. rather than 1. 2. 3. which may explain the intermittent error.
Let me know if any of this doesn't make sense or needs more explanation!
In case the wording above isn't clear this is what I meant in code:
[InitializableModule] [ModuleDependency(typeof(EPiServer.Web.InitializationModule))] public class RegisterCustomImplementationsForSearch : IInitializableModule { public void Initialize(InitializationEngine context) { //Your work here } public void Preload(string[] parameters) { } public void Uninitialize(InitializationEngine context) { } }
Then:
[InitializableModule] [ModuleDependency(typeof(RegisterCustomImplementationsForSearch))] public class YourCustomInitModule : IInitializableModule { public void Initialize(InitializationEngine context) { //Your work here } public void Preload(string[] parameters) { } public void Uninitialize(InitializationEngine context) { } }
The problem appears to have been introduced in Find 9.1. Downgrading to Find 9.0 resolves the issue.
Just a quick update here... I got a pre-release package from EPiServer where this bug is fixed. So there will hopefully be a fix out soon.
Hi! Any news on this? I seem to have the same problem. It was intermittent until yesterday when I updated to the latest EPi + Find. Now I can't start the site at all.
I have tried to find some intialization order problem but I can't find it.
The exception is always thrown when I do UnifiedSearchRegistry.ForInstanceOf<>().UseHitType<>() in an initialization module setting up Find conventions.
Hmm, actually I tried that after reading your post, but before I updated to the latest versions yesterday.
Now I removed it from my Find conventions initialization module again and it works! :) Thank you!
Hi,
I have an initialization module which defines an always apply filter for PageData and MediaData.
When I run the site I am getting the exception :
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
The loader exception contains :
{"Could not load type 'Castle.Proxies.SearchRegisterPageProxy' from assembly 'DynamicProxyGenAssembly2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.":"Castle.Proxies.SearchRegisterPageProxy"}
Two others are running the exact same code and do not experience this problem. Any ideas what could cause this or how I might go about diagnosing the problem?
Thanks,
Aaron