Copied to clipboard

Flag this post as spam?

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


  • dheeraj 8 posts 57 karma points
    May 23, 2013 @ 20:16
    dheeraj
    0

    This error after build(Only first time)

    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 failed.

    Source Error: 

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    Stack Trace: 



    [SecurityException: Request failed.]
       System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes) +0
       System.Reflection.RuntimeAssembly.GetExportedTypes() +49
       Umbraco.Core.TypeFinder.GetTypesWithFormattedException(Assembly a) +139
       Umbraco.Core.TypeFinder.GetTypes(Type assignTypeFrom, IEnumerable`1 assemblies, Boolean onlyConcreteClasses) +161
       Umbraco.Core.PluginManager.LoadViaScanningAndUpdateCacheFile(TypeList typeList, TypeResolutionKind resolutionKind, Func`1 finder) +53
       Umbraco.Core.PluginManager.ResolveTypes(Func`1 finder, TypeResolutionKind resolutionType, Boolean cacheResult) +1357
       Umbraco.Core.CoreBootManager.InitializeApplicationEventsResolver() +78
       Umbraco.Web.WebBootManager.InitializeApplicationEventsResolver() +41
       Umbraco.Core.CoreBootManager.Initialize() +537
       Umbraco.Web.WebBootManager.Initialize() +79
       Umbraco.Core.UmbracoApplicationBase.StartApplication(Object sender, EventArgs e) +100


    Could some one please help me in this. This is happening only first build.
  • Rob Williams 12 posts 31 karma points
    May 23, 2013 @ 20:34
    Rob Williams
    0

    Did you set the sites permissions properly?

  • dheeraj 8 posts 57 karma points
    May 23, 2013 @ 22:21
    dheeraj
    0

    could you suggest me how to set the proper site permissions. It was working when i kept the trust level to "Full". But i want the trust level to be "medium" as my provider is asking for this.

     

Please Sign in or register to post replies

Write your reply to:

Draft