Asp – Facebook Toolkit 2.0 – Error when running it on a server with asp.net 2.0 installed

asp.net-2.0asp.net-3.5facebook

I'm getting the following error when trying to run the Facebook Connect toolkit on a server with ASP.Net 2.0 installed – I manually moved over System.Core and System.xml.Linq to the server from the 3.5 DLLs.

Most other things seem to run, until I try to access the "users" object – more specifically, the getinfo() method.

This is the error – anyone have any ideas? Thanks!

Method not found: 'Void System.Xml.XmlReaderSettings.set_MaxCharactersFromEntities(Int64)'.

[MissingMethodException: Method not found: 'Void System.Xml.XmlReaderSettings.set_MaxCharactersFromEntities(Int64)'.]
System.Xml.Linq.XNode.GetXmlReaderSettings(LoadOptions o) +0
System.Xml.Linq.XElement.Parse(String text, LoadOptions options) +60
System.Xml.Linq.XElement.Parse(String text) +7
Microsoft.Xml.Schema.Linq.XTypedServices.Parse(String xml) +23
facebook.users.getInfo(String uids) +201
facebook.users.getInfo(Int64 uid) +34
content_FBLoggedIn.Page_Load(Object sender, EventArgs e) +481
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061

Best Answer

googleing for set_MaxCharactersFromEntities suggests this might be a problem of 64 bit dlls on the server vs. 32bit dlls on the local development machine.