AI OnAI Off
Something got wrong when pasting, can't edit, namespace in class should of course be the name of my solution
Step 6. of this article. It should solve our problem:
http://world.episerver.com/Articles/Items/EPiServer-CMS-60-now-supporting-ASPNET-40/
Testing to create a GadgetMetric in my solution using the guidelines but get compile errors (EPiServer CMS 6 R2, with latest GA plugin)
'System.ComponentModel.Composition.ExportAttribute' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.ComponentModel.Composition, Version=2009.22.10.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7'.
But System.CompinentModel.Composition is already referenced, my web.config:
<dependentAssembly>
<assemblyIdentityname="System.ComponentModel.Composition"publicKeyToken="8fe83dea738b45b7"culture="neutral"/>
<bindingRedirectoldVersion="1.0.0.0-2009.22.10.0"newVersion="2009.22.10.0"/>
</dependentAssembly>
Error 2 'EPiServer.GoogleAnalytics.Analytics.GadgetMetricAttribute' is not an attribute class
This is my simple code, added the class to root: