Help getting started

Jul 5, 2007 at 5:01 PM
I'm sure I'm missing something very basic, but I can't seem to get the web code sample running - I keep getting Parser Error Message: Could not load type '_Default'.

Line 1: <%@ Page Language="vb" AutoEventWireup="true" CodeFile="Default.aspx.vb" Inherits="_Default" %>

The dll's are in the bin directory, so I don't think that's the issue. I also have the virtual directory set up in IIS. I'm stumped.
Jul 5, 2007 at 5:05 PM
Sorry - the one thing I didn't check was to make sure that I was using the right version of .NET when I set up my virtual directory in IIS - its fine now!
Jul 5, 2007 at 5:06 PM
Hmmm. that is just references the name of the class that is defined in Default.aspx.vb.

In the Web Sample it looks like

Imports Facebook
Imports Facebook.Entity

Public Partial Class _Default
Inherits Page
Private _fbService As Facebook.Components.FacebookService = New Facebook.Components.FacebookService()

Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)

' ApplicationKey and Secret are acquired when you sign up for
_fbService.ApplicationKey = "7a399eeba47b0f5b2bfd88cc872ada4a"
_fbService.Secret = "fad3d3fbeb8571957c39e2792073b978"

Are you trying to run our sample? Or are you copying the code into your own website?