System.StackOverflowException when setting this.Api

Sep 11, 2007 at 8:25 AM
Hi,

I am trying to write a ASP.NET based IFrame application for Facebook. I created a new ASP.NET application and write "Hello World" to the screen. I then run it using F5 and it works as expected. I then publish it to server and test it again and it still works. I then add Facebook API 1.2 and change Page to CanvasIFrameBasePage. Next I try and set the this.API to my API key and get a System.StackOverflowException exception when I run it. If I remove this, all is fine again. I have double checked that the key and secret is correct!

I am using Facebook API and Orcas March 2007 CTP.

Regards,

Rudi Grobler
http://dotnet.org.za/rudi
Sep 11, 2007 at 8:29 AM
After rechecking the code, and commenting out all 3 lines (Api,Secret and PageLoad) and readding them one by one I discovered that it only gets the StackOverflowException once the this.PageLoad(sender, e) is called?

Rudi Grobler
http://dotnet.org.za/rudi
Sep 11, 2007 at 8:40 AM
Sorry, I feel a little blond today...

I used this. and not base.

Regards,
Rudi Grobler
http://dotnet.org.za/rudi

PS. If my server is behind a firewall which only forwards traffic on port 80 to my webserver, will that be a problem? I now get a "The remote name could not be resolved: 'api.facebook.com'"? I only get this error on my server and not on my development machine? Thy are on the same network?