Copied to clipboard

Flag this post as spam?

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


  • Kevin Farrow 46 posts 67 karma points
    May 21, 2010 @ 11:12
    Kevin Farrow
    0

    Security Exception when upgrading to v4.0.4

    Just carried out an in-place upgrade to my a customer's website but am getting an error.

    We replaced the /bin, /umbraco and /umbraco_client folders, checked the permissions onthe folders and changed the version to 4.0.4 in the web.config file.

    We've tried recycling the Application Pool, starting and stopping the web site (and Application Pool) but are still getting this problem, any ideas?

    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.Reflection.Assembly._GetType(String name, Boolean throwOnError, Boolean ignoreCase) +0
    System.Web.Compilation.CompilationUtil.GetTypeFromAssemblies(AssemblyCollection assembliesCollection, String typeName, Boolean ignoreCase) +227
    System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +362
    System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +64

     

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    May 21, 2010 @ 12:59
    Dirk De Grave
    0

    Make sure the app pool identity does have full control on the umbraco folders. Sure strange things happen when doing a copy from one location to another, it sometimes break the permission settings.

    Oh, and whilst you're upgrading, make sure to get the 4.0.4.1 release (has some important bugfixes!)

    Cheers,

    /Dirk

  • Kevin Farrow 46 posts 67 karma points
    May 23, 2010 @ 13:49
    Kevin Farrow
    0

    Thanks Dirk. I reinstalled from backup, carried out the update again, recreated the App Pool and everything is working ok now.

Please Sign in or register to post replies

Write your reply to:

Draft