New InitializationEngine not working with .NET 4.0?

Vote:
 

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?

 

#45048
Oct 27, 2010 14:13
Vote:
 

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

http://world.episerver.com/Articles/Items/EPiServer-CMS-60-now-supporting-ASPNET-40/

#45053
Oct 27, 2010 19:00
Vote:
 

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.

#45062
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.