+1-888-365-2779
Try Now
More in this section

Forums / Set-up & Installation / Security Exception on Updating

Security Exception on Updating

2 posts, 0 answered
  1. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    30 Sep 2010
    Link to this post
    Hey Guys, my dev site updated to 3.7 SP4 (not by itself :), and I'm getting the error below now...do I just need to set full trust somewhere? (Win 7) .  Wierd thing is that "production" is working totally fine.

    Any idea? I'm running on the 2.0 Integrated pipeline.

    I have <trust level="Full" /> in system.web



    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 for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' 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 for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
       System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName) +0
       System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +62
       System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +42
       System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +77
       System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +105
       System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +64
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.4952; ASP.NET Version:2.0.50727.4927
  2. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    30 Sep 2010
    Link to this post
    Ok, so I left it for 45 minutes, came back and it fires up now....?

    Whatever, working at SP4 now :)
2 posts, 0 answered