ImageVault and EPiServer page provider does not work together
I have an an EPiServer CMS 5 R2 installation with ImageVault 22.214.171.1241 installed. Yesterday I tried to add a custom page provider to the project. I used the XML page provider found here: http://world.episerver.com/en/Articles/Items/Introducing-Page-Providers/#download
You will get the error:
EPiServer.BaseLibrary.ClassFactoryException: ClassFactory not initialized
[TypeInitializationException: The type initializer for 'EPiServer.DataFactory' threw an exception.]
EPiServer made some changes to the startup events of the application in R1 SP3. ImageVault does not implement the startup in this new way. If you look deeper in the stack trace you will see:
[Exception: Error initializing CreatedPageEvent in PluginStartup] ImageStoreNET.PluginStartup.get_CreatedPageEvent() +126
ImageVault hookes up the CreatedPageEvent to early and therefore the DataFactory.Instance isn’t instantiated.
Get the web site running
The problem is with the handler <add name="ImageVault" type="ImageStoreNET.PluginStartup, ImageVault.EPiServer5" />. Just comment this line and the application will start. I don't' know what this handler does but probably ImageVault will come up with a solution soon.