Master.API sudden problem...

Apr 22, 2009 at 3:21 PM
I run on some confusing state.
I am building a Facebook app (IFrame) and app worked great. I paused FB app development for about a week.
When I wanted to continue on my FB app, sudden error apears (when compiling):
Error 1 'System.Web.UI.MasterPage' does not contain a definition for 'API' and no extension method 'API' accepting a first argument of type 'System.Web.UI.MasterPage' could be found (are you missing a using directive or an assembly reference?)

All of a sudden, Master doesn't have a definition for API and I understand that I might be missing using statement (I didn't make ANY changes to the code whatsoever, that I am aware of), but anything that I try to put in using statement doesn't seem to define API.

I have facebook and facebook.web added to my reference, of course.

Does anyone have an idea how to solve this?

Thank you
Jun 2, 2009 at 10:23 PM


Not sure if you figured this out yet, but it in your web content page make sure you have

<%@ MasterType VirtualPath="~/IFrameMaster.Master" %>

(or whatever your Master Page is)