User-1764838006 posted
i am having problems with the security of my website. I am trying to add some news tot the site. I keep getting an error that says:
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.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed
Line 319:
Line 320: If Not System.Web.HttpContext.Current Is Nothing Then
Line 321: item.Save(System.Web.HttpContext.Current.User.Identity.Name)
Line 322: Else
Line 323: item.Save(System.Threading.Thread.CurrentPrincipal.Identity.Name)
I have checked the the asp.net configuration file and my username is in an administrator role. Can someone help me figure this out?