base.Page_Load(sender, e); throws exception

Aug 1, 2007 at 12:08 PM
Hi, i am following the documentation to build an FBML page but the code provided is throwing an exception when i attempt to run it.

Heres my code:

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Facebook;
using Facebook.WebControls;

public partial class _Default : CanvasFBMLBasePage

private const string FACEBOOKAPIKEY = "xxx";
private const string FACEBOOK_SECRET = "xxx";

new protected void Page_Load(object sender, EventArgs e)
base.Secret = FACEBOOK_SECRET;
base.Page_Load(sender, e); // throws exception
catch (Exception ex)


the exception i get is

unable to evaluate expression because the code is optimised or a native frame is on top of the call stack

If anyone can help it would be really appreciated.