Could not load type 'Facebook.API.FacebookAPI' from assembly facebook,

Aug 5, 2008 at 6:29 AM
Hey,
      I am just beginning with Facebook toolkit, whenever i try to build the website, i get this exception

Could not load type 'Facebook.API.FacebookAPI' from assembly 'facebook, Version=2.0.3133.26782, Culture=neutral, PublicKeyToken=null'.

I have already registered the assemblies, but i still get this exception. Below is the detailed error log

Source Error:

[No relevant source lines]

Source File: f:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\web2\da178c07\946d9f5d\App_Web_yzqmpbrw.0.cs    Line: 0

Stack Trace:

[TypeLoadException: Could not load type 'Facebook.API.FacebookAPI' from assembly 'facebook, Version=2.0.3133.26782, Culture=neutral, PublicKeyToken=null'.]
Facebook.WebControls.CanvasFBMLBasePage..ctor() +0
_Default..ctor() +24
ASP.default_aspx..ctor() in f:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\web2\da178c07\946d9f5d\App_Web_yzqmpbrw.0.cs:0
__ASP.FastObjectFactory_app_web_yzqmpbrw.Create_ASP_default_aspx() in f:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\web2\da178c07\946d9f5d\App_Web_yzqmpbrw.2.cs:0
System.Web.Compilation.BuildResultCompiledType.CreateInstance() +49
System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +115
System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +31
System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +40
System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +139
System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +128
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +161



Aug 5, 2008 at 9:27 PM
I was getting this error too. It turns out that I had to download the source and rebuild the binaries provided in the bin.zip.
Coordinator
Aug 6, 2008 at 7:41 PM
amitabh, Let us know if adding references to the projects solves your problems.