My application has been working fine, until I upload the code to a SHARED web server. When I run the web app, i get the following error:
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permissionplease contact your system administrator or change the application's trust level in the configuration
Exception Details: System.Security.SecurityException: That assembly does not allow partially trusted callers.
It does not seem to like my public declaration of Facebook.Components.FacebookService in my master page (as follows)
public partial class MasterPage : System.Web.UI.MasterPage
public Facebook.Components.FacebookService fb = new Facebook.Components.FacebookService();
However, I need to make it public so I can access this object from other pages on my site that use the masterpage.
Has anyone else had this problem? If so, what did you do to get around this?