Question : Visual Studio 2008 Security Exception

I am writing an application in C#.  Whenever i open my solution in Visual Studio 2008, I get a dialog box that states "The project location is not trusted:  C:\xxx\xxx\xxx     Running the the application may result in security exceptions when it attempts to perform actions whicih require full trust.  Click OK to continue".  I added the line "[assembly: AllowPartiallyTrustedCallers]" to the AssemblyInfo.cs file, but this does not help.  I even right clicked on the zip file that this solution came from, and clicked "Unblock" on it, unzipped the solution again, with the same issues.  When starting the application to debug it, I get the message "Server Error in '/' Application.          

Security Exception                

 Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed."

Answer : Visual Studio 2008 Security Exception

Take a look here:
http://wiki.developers.facebook.com/index.php/Facebook_Share/Specifying_Meta_Tags

Specfically you need to add this to your <head>:
<link rel="image_src" href="thumbnail_image" / >
Random Solutions  
 
programming4us programming4us