Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Bunnynut 136 posts 318 karma points
    Oct 23, 2013 @ 11:51
    Bunnynut
    0

    Security Exception when logging into Umbraco

    Hi there,

    I have extended Umbraco by adding a custom section. This all worked fine on the develop machine but on the production server i am confronted with the exception below.
    First i thought that this was due to the fact that the account under which the application pool is running does not have the appropiate rights. But in frustration and as a quick test i gave the specified user full control over the complete website. No cigar.

    When i force a recompile, by making a change to the web.config, it works. But when i log in after some time i am confronted with the same error message.

    Can anyone help me, any help is gratly appreciated.

    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.Security.Permissions.FileIOPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

    Source Error:

    [No relevant source lines]


    Source File: App_Web_umbraco.aspx.5f2dec3.ze6qq8jt.0.cs    Line: 0

    Stack Trace:

    [SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
       System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
       System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, StackCrawlMark& stackMark) +31
       System.Security.CodeAccessPermission.Demand() +46
       System.Reflection.RuntimeAssembly.VerifyCodeBaseDiscovery(String codeBase) +136
       System.Reflection.RuntimeAssembly.GetName(Boolean copiedName) +69
       System.Reflection.Assembly.GetName() +12
       Umbraco.Core.TypeExtensions.GetFullNameWithAssembly(Type type) +37
       umbraco.cms.presentation.Trees.<>c__DisplayClass12.<EnsureTreesRegistered>b__d(ApplicationTree tree) +59
       System.Collections.Generic.List`1.FindAll(Predicate`1 match) +106
       umbraco.cms.presentation.Trees.TreeDefinitionCollection.EnsureTreesRegistered(Boolean clearFirst) +381
       umbraco.cms.presentation.Trees.TreeDefinitionCollection.get_Instance() +30
       umbraco.controls.Tree.TreeControl.Initialize() +174
       umbraco.controls.Tree.TreeControl.OnPreRender(EventArgs e) +47
       System.Web.UI.Control.PreRenderRecursiveInternal() +83
       System.Web.UI.Control.PreRenderRecursiveInternal() +168
       System.Web.UI.Control.PreRenderRecursiveInternal() +168
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6704
       System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +245
       System.Web.UI.Page.ProcessRequest() +72
       System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
       System.Web.UI.Page.ProcessRequest(HttpContext context) +58
       ASP.umbraco_umbraco_aspx.ProcessRequest(HttpContext context) in App_Web_umbraco.aspx.5f2dec3.ze6qq8jt.0.cs:0
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +341
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69
    

     

     

     

Please Sign in or register to post replies

Write your reply to:

Draft