Try our conversational search powered by Generative AI!

New InitializationEngine not working with .NET 4.0?


I'm trying to add an initialization module to a new .NET 4.0 project, but compile fails after adding the [InitializableModule] attribute to the class, stating that:

1. The type 'System.ComponentModel.Composition.ExportAttribute' is defined in an assembly that is not referenced by EPiServer.Framework.dll

2. EPiServer.Framework.InitializableModuleAttribute is not an attribute class.

Any ideas?


Oct 27, 2010 14:13

Check the step in section 6. of this article. It should solve your problem:

Oct 27, 2010 19:00

Thanks a lot!

Of course, I had the version of System.ComponentModel.Composistion.dll that is installed with .NET 4.0 referenced, replacing this reference with the one included in the EPiServer installation solved the problem.

Oct 28, 2010 10:38
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* 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.