Copied to clipboard

Flag this post as spam?

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


  • Mike Chambers 636 posts 1253 karma points c-trib
    Jan 09, 2013 @ 17:12
    Mike Chambers
    0

    contour 3.0.5 at rackspace cloud hosted medium trust environment get security exception

    Just tried to install the 3.0.5 package and doesn't appear to work in medium trust

     

    Inheritance security rules violated while overriding member: 'Umbraco.Forms.Data.CloneHelper.NonSerialiazableTypeSurrogateSelector.GetObjectData(System.Object, System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)'. Security accessibility of the overriding method must match the security accessibility of the method being overriden.

     

    Will investigate on our dev servers for standard medium trust... but thought I'd post in case it's an easy fix Tim?

  • Comment author was deleted

    Jan 09, 2013 @ 17:51

    Will take a look, when does this happen?

  • Comment author was deleted

    Jan 09, 2013 @ 17:52

    SHould work on medium trust but I'll double check tomorrow since some new stuff hasn't been tested

  • Mike Chambers 636 posts 1253 karma points c-trib
    Jan 09, 2013 @ 23:29
    Mike Chambers
    0

    immediately after install.. I can get the site back up and running by removing the dll's

  • Mike Chambers 636 posts 1253 karma points c-trib
    Jan 10, 2013 @ 00:42
    Mike Chambers
    0

    I've set up a dev server running ms medium trust (iis7 windows server 2008 u4.11.1) and both 3.0.5 and 3.0.6 exhibit the security violation.

    full trace here

    Server Error in '/' Application.


    Inheritance security rules violated while overriding member: 'Umbraco.Forms.Data.CloneHelper.NonSerialiazableTypeSurrogateSelector.GetObjectData(System.Object, System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)'. Security accessibility of the overriding method must match the security accessibility of the method being overriden.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

    Exception Details: System.TypeLoadException: Inheritance security rules violated while overriding member: 'Umbraco.Forms.Data.CloneHelper.NonSerialiazableTypeSurrogateSelector.GetObjectData(System.Object, System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)'. Security accessibility of the overriding method must match the security accessibility of the method being overriden.

    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:

    [TypeLoadException: Inheritance security rules violated while overriding member: 'Umbraco.Forms.Data.CloneHelper.NonSerialiazableTypeSurrogateSelector.GetObjectData(System.Object, System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)'. Security accessibility of the overriding method must match the security accessibility of the method being overriden.]
       System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes) +0
       System.Reflection.RuntimeAssembly.GetExportedTypes() +122
       Umbraco.Core.TypeFinder.GetTypesWithFormattedException(Assembly a) +94
       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) +1389
       Umbraco.Core.PluginManager.ResolveTypes(Boolean cacheResult) +150
       Umbraco.Core.CoreBootManager.InitializeResolvers() +33
       Umbraco.Web.WebBootManager.InitializeResolvers() +19
       Umbraco.Core.CoreBootManager.Initialize() +319
       Umbraco.Web.WebBootManager.Initialize() +51
       Umbraco.Web.UmbracoApplication.Application_Start(Object sender, EventArgs e) +91
    
    [HttpException (0x80004005): Inheritance security rules violated while overriding member: 'Umbraco.Forms.Data.CloneHelper.NonSerialiazableTypeSurrogateSelector.GetObjectData(System.Object, System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)'. Security accessibility of the overriding method must match the security accessibility of the method being overriden.]
       System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +4057141
       System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +191
       System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +352
       System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +407
       System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +375
    
    [HttpException (0x80004005): Inheritance security rules violated while overriding member: 'Umbraco.Forms.Data.CloneHelper.NonSerialiazableTypeSurrogateSelector.GetObjectData(System.Object, System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)'. Security accessibility of the overriding method must match the security accessibility of the method being overriden.]
       System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11700896
       System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +141
       System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4869125
    

    found this... http://debugsofa.com/2011/09/08/derived-types-match-security-accessibility-base-type-accessible/ might be of help?

    (also had a few issues on install... 3.0.5 some of my razor macros stopped working with dynamicNodeList.Any() doesn't exist, don't get this with 3.0.6 I notice the manual install includes system.web.mvc is this overwriting the 4.11.1 to cause this issue

    with the 3.0.6 install I got unable to complete installation as couldn't gain exclusive access to app_data/temp/PluginCache/umbraco-packages.list. - I did have the umbraco admin open in another browser.. redoing the install resulted in duplicate entries in the trees.config but was simple to remove.)

  • Comment author was deleted

    Jan 10, 2013 @ 08:54

    Can duplicate the issue, working on it now http://issues.umbraco.org/issue/CON-208

  • Comment author was deleted

    Jan 10, 2013 @ 09:05

    Fixed and will be part of 3.0.6 coming later today :)

Please Sign in or register to post replies

Write your reply to:

Draft