问题描述
ServerErrorin'/'Application.--------------------------------------------------------------------------------SecurityExceptionDescription:Theapplicationattemptedtoperformanoperationnotallowedbythesecuritypolicy.Tograntthisapplicationtherequiredpermissionpleasecontactyoursystemadministratororchangetheapplication'strustlevelintheconfigurationfile.ExceptionDetails:System.Security.SecurityException:Requestforthepermissionoftype'System.Security.Permissions.SecurityPermission,mscorlib,Version=2.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089'failed.SourceError:Anunhandledexceptionwasgeneratedduringtheexecutionofthecurrentwebrequest.Informationregardingtheoriginandlocationoftheexceptioncanbeidentifiedusingtheexceptionstacktracebelow.StackTrace:[SecurityException:Requestforthepermissionoftype'System.Security.Permissions.SecurityPermission,mscorlib,Version=2.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089'failed.]System.Web.UI.PageParser.GetCompiledPageInstance(StringvirtualPath,StringinputFile,HttpContextcontext)+41URLRewriter.RewriterFactoryHandler.GetHandler(HttpContextcontext,StringrequestType,Stringurl,StringpathTranslated)+649System.Web.HttpApplication.MapHttpHandler(HttpContextcontext,StringrequestType,VirtualPathpath,StringpathTranslated,BooleanuseAppConfig)+175System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()+128System.Web.HttpApplication.ExecuteStep(IExecutionStepstep,Boolean&completedSynchronously)+161
解决方案
解决方案二:
Theapplicationattemptedtoperformanoperationnotallowedbythesecuritypolicy.Tograntthisapplicationtherequiredpermissionpleasecontactyoursystemadministratororchangetheapplication'strustlevelintheconfigurationfile.
解决方案三:
恩,楼上已经指出要点,系统的权限不够