File or assembly name 'PhoneCodeContractsAssemblies, Version=1.0.0.0

Dec 30, 2010 at 7:48 PM

I am getting this message when I try to use code below. any suggestion?

File or assembly name 'PhoneCodeContractsAssemblies, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null', or one of its dependencies, was not found.
xaml:

<UserControl.Resources>        <imagetools:ImageConverter x:Key="ImageConverter" />     </UserControl.Resources>    

   <imagetools:AnimatedImage Name="ImgLoading" Source="{Binding ImageSource, Converter={StaticResource ImageConverter}}" />

code:
            Random rand = new Random();
            ImageTools.ExtendedImage myImage = new ImageTools.ExtendedImage();
         
            ImageSource ="http://mywebsite.com/" + rand.Next(0, 14) + ".gif";
            myImage.UriSource = new  Uri(ImageSource, UriKind.Absolute);
            
            this.ImgLoading.Source =(ImageTools.ExtendedImage)myImage;

Coordinator
Dec 30, 2010 at 10:34 PM
You have to add the

PhoneCodeContractsAssemblies.dll as a reference to your application. This is what the message says.
Dec 30, 2010 at 10:41 PM

yes, after I made this post. I realized that dll but although i set reference, it is still giving error.additionally  dlls i added as reference are,

  • ImageTools
  • ImageTools.Controls
  • ImageTools.IO.Gif

I dont know what else I have to. appreciate  for your help

Coordinator
Dec 30, 2010 at 10:45 PM
Very Strange, send me ur sample project with the reference when u want,
I can have a look. But please delete bin and obj folders first.

Send it to sebastianstehle@gmx.de