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

7 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. This is a nice article..
    Its very easy to understand ..
    And this article is using to learn something about it..
    asp.net, c#, javascript
    Thanks a lot..!

    ReplyDelete
  3. I have read a few good stuff here. Certainly worth bookmarking for revisiting. I wonder how much effort you put to create such a fantastic informative site.
    Mazda Supercharger

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

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

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

    ReplyDelete
  7. 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