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.]
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!)
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
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
Thanks Dirk. I reinstalled from backup, carried out the update again, recreated the App Pool and everything is working ok now.
is working on a reply...