Feb 22, 2009 at 9:45 AM
I've started to play with the toolkit and I'm having issues getting anything to work. This simple code:

FacebookAPI api = new FacebookAPI();
api.ApplicationKey = "xxx";
api.Secret = "xxx";

with exception:

Request for the permission of type 'System.Net.WebPermission, System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

My site is running with Full Trust and I can't see anyone else having this issue, so I presume it's something simple I'd doing wrong!

Thanks for any help.


Mar 15, 2009 at 9:46 PM

I've the same problem as yours.
Everything thig is ok when the application is nuiing on localhost but i get a System.Net.WebPermission Exception when the application in runned on a server.

Do you find any solution ?
Mar 20, 2009 at 5:51 AM
I changed the identify of the worker process to Network Service, I'm pretty certain that's what fixed it, but I honestly can't be sure now.