locked
Could not load type 'System.Runtime.CompilerServices.ExtensionAttribute' from assembly 'mscorlib RRS feed

  • Question

  • User-1100895119 posted

    I'm getting this error message:

    System.TypeLoadException: Could not load type 'System.Runtime.CompilerServices.ExtensionAttribute' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

    ...and think the issues is caused by my setup.

    On my dev box .net 4.5 is installed (it's an .net 4 folder inplace installation), the asp.net site is being built to .net 4, but is running on a windows 2003 server (.net 4.5 not possible). I refer to this article http://www.mattwrock.com/post/2012/02/29/What-you-should-know-about-running-ILMerge-on-Net-45-Beta-assemblies-targeting-Net-40.aspx 

    The solution in the article is to manually point to the originally .net 4 assemplies.

    How do I do this? (I build the site on my dev box using vs2012 and ftp deploy to production).

    Friday, October 11, 2013 3:08 AM

Answers