Tuesday, February 22, 2011

Silverlight : Could not load file or assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its depend

Very irritating!

and very similar to here:
http://bartwullems.blogspot.com/2010/08/could-not-load-file-or-assembly.html


Solved as follows:

cd C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0

gacutil /i System.Windows.dll

gacutil /i System.Core.dll

5 comments:

  1. I have gone through your post and found some information which is quite important for me.
    So, please keep it up with your these kind of posts.
    Infinite Air Conditioner Compressor

    ReplyDelete
  2. Chevrolet W4 Turbocharger
    Nice post, thanks for sharing this wonderful and useful information with us.

    ReplyDelete
  3. After this change, opening a XAML file in my VS 2010 crashes the IDE

    ReplyDelete
  4. Thank you for good help ! It worked for me !

    ReplyDelete
  5. I was getting following error in silverlight 5 project.

    The located assembly's manifest definition does not match the assembly reference. (System.Windows.dll)

    This solution worked for me

    ReplyDelete