SecurityException

Dec 17, 2008 at 4:52 AM
I've seen similar things here before, but no solutions:

This is using the VB sample from section 6.5 of the Toolkit Documentation:

[SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=gibberish' failed.]
   System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
   System.Security.CodeAccessPermission.Demand() +58
   System.Net.ServicePointManager.set_ServerCertificateValidationCallback(RemoteCertificateValidationCallback value) +54
   facebook.API.postRequest(String requestUrl, String postString) +105
   facebook.API.SendRequest(IDictionary`2 parameterDictionary, Boolean useSession) +185
   facebook.auth.getSession(String auth_token) +84
   facebook.API.CreateSession() +20
   facebook.Components.FacebookService.CreateSession(String authToken) +32
   WebApplication1._Default.Page_Load(Object sender, EventArgs e) in Default.aspx.vb:40
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6785
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +242
   System.Web.UI.Page.ProcessRequest() +80
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
   System.Web.UI.Page.ProcessRequest(HttpContext context) +49
   ASP.default_aspx.ProcessRequest(HttpContext context) +37
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously
Jan 6, 2009 at 4:25 AM
I appended my info to this Workitem, although I'm not on GoDaddy hosting.

<A href="http://www.codeplex.com/FacebookToolkit/WorkItem/View.aspx?WorkItemId=11530">http://www.codeplex.com/FacebookToolkit/WorkItem/View.aspx?WorkItemId=11530</A>

No answers yet.