I recieve this exception when I try to run the sample application for WP7 that comes with the Facebook C# SDK:
File or assembly name 'Microsoft.Contracts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=736440C9B414EA16', or one of its dependencies, was not found.
It occurs at this part in code:
// Constructor
public MainPage()
{
InitializeComponent();
_fbClient = new FacebookClient();
FacebookLoginBrowser.Loaded += new RoutedEventHandler(FacebookLoginBrowser_Loaded);
}
Not sure what this means, as this is the first time I recieve this error. And I can't find "Microsoft.Contracts". I tried rebuilding and everything works nicely, but when I run I recieve the exception.
Can someone explain whats going on and maybe how to fix it?
EDIT: It occurs specifcly when a new instance of the FacebookClient is created in the MainPage Constructor.