开发者

Facebook C# SDK

I'm starting out with the Facebook C# SDK and trying to run the MVC Sample on my test server and am running into the following error:

Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriatel开发者_JAVA百科y.

Parser Error Message: Could not load type 'Facebook.Web.Mvc.ViewUserControl'.

Source Error:

Line 1: <%@ Control Language="C#" Inherits="Facebook.Web.Mvc.ViewUserControl" %>

Source File: /Views/Facebook/LoginButton.ascx Line: 1

I've set up several MVC 2.0 projects in the past and have followed the instructions on the getting started section on http://facebooksdk.codeplex.com/ (added and changed setting in web.config, etc.)

What am I missing in order to run the sample project(s).


You are using a very old sample from the SDK. The problem is that the class Facebook.Web.Mvc.ViewUserControl does not exist. That was only in a very early alpha build. I would recommend downloading the new sample to get started. You can get that here: http://facebooksdk.codeplex.com/releases/view/54371#DownloadId=160969

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜