Facebook Toolkit issues on godaddy server
venutsmad said 8 months, 3 weeks ago:
i am using Facebook toolkit (downloaded from codeplex) on my application to retrieving Facebook member data into my application.
it is working fine on my local systems and also working fine on some other web hosting server. when it comes to godaddy it is thoroughgoing below exception
System.Security.SecurityException: Request for the permission of type ‘System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089′ failed.
here is code i am retriving graph API from facebook
var user = client.Get(“https://graph.facebook.com/me?access_token=” + myfacebooktoken);
i understand that the issue is some trusted permissions to the website..
can you help me how to resolve this issue. it is very urgent for us to update the website
Gary A said 8 months, 3 weeks ago:
@venutsmad
ASP.NET runs in Medium Trust on our Web Hosting. This cannot be changed on Web Hosting. Additional information relating to the Trust level can be found here:
You may want to check with the developers of the application to see if there is an option for it to work under Medium Trust.
-Gary
venutsmad said 8 months, 3 weeks ago:
i changed the web.config file from full to medium
<trust level=”Medium”/>
but still i am having the same problem.
venutsmad said 8 months, 3 weeks ago:
still i am having same issue..but the same code is working fine on rackspace server..though i am not changed web.config file
Gary A said 8 months, 2 weeks ago:
@venutsmad
Changing the trust level through the web.config would not correct the issue if the application itself uses scripting that is only available in full trust. You may need to look through the scripting of the application you are attempting to use to see if this is something that you would be able to modify.
You may also want look into using a Virtual Dedicated or Dedicated server if you require Full Trust.
-Gary
0 min expected wait time