Security Exception

Topics: Business Logic Layer, Controls
Mar 9, 2015 at 8:31 PM
System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Source Error:


Line 6: Security.RedirectForUnauthorizedRequest();
Line 7: }
Line 8: string loginUrl = Href(Utils.RelativeWebRoot + "Account/login.aspx");
Line 9: var userRights = string.Join("','", Security.CurrentUserRights().Select(r => r.Flag).ToArray());
Line 10: }

Source File: d:\inetpub\vhosts\vmtraininginstitute.com\httpdocs\blogenginenet\admin\index.cshtml Line: 8