Copied to clipboard

Flag this post as spam?

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


  • Arnold Schuitema 4 posts 24 karma points
    Mar 28, 2011 @ 11:44
    Arnold Schuitema
    0

    Error after installation

    Hi,

    After uploading and installing umbraco 4.7 to my host I get an error when opening the homepage:

    Inheritance security rules violated by type: 'umbraco.presentation.templateControls.ItemDesigner'. Derived types must either match the security accessibility of the base type or be less accessible.

    When I open the admin all of the nodes are empty. As far as I can see I followed all the rules I had to apply to the web.config.

    I set the umbracoUseMediumTrust to true.

    I also added requirePermission="false"  to the clientdepency section.

    It still seems there is a security issue.

    Anybody knows whats going wrong?


    Thanks

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Mar 28, 2011 @ 11:55
    Jan Skovgaard
    0

    Hi Arnold

    Do you know if your host is offering full trust or medium trust?

    /Jan

  • Arnold Schuitema 4 posts 24 karma points
    Mar 28, 2011 @ 11:59
    Arnold Schuitema
    0

    I think they offer medium trust, they have a tutorial over here, http://www.testingcode.org/blog/2010/09/umbraco-4-5-x-met-asp-net-4-0-en-medium-trust/

    It is in dutch, and it is for the 4.5 version.

  • Richard Soeteman 4036 posts 12864 karma points MVP
    Mar 28, 2011 @ 12:05
    Richard Soeteman
    0

    Hi Arnold,

    Did you set umbracoUseMediumTrust in web.config file to true?

    Cheers,

    Richard

  • Arnold Schuitema 4 posts 24 karma points
    Mar 28, 2011 @ 12:28
    Arnold Schuitema
    0

    Hi Richard,

    Yes I did, but that doesn't help anything

    Thanks,

    Arnold

  • Jan Reilink 5 posts 25 karma points
    Mar 29, 2011 @ 12:16
    Jan Reilink
    0

    The hoster here :)


    Parse Error on Arnolds web site:

    // ----

    Server Error in '/' Application.
    Parser Error
    Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

    Parser Error Message: Inheritance security rules violated by type: 'umbraco.presentation.templateControls.ItemDesigner'. Derived types must either match the security accessibility of the base type or be less accessible.

    Source Error:

    Line 1:  <%@ Master Language="C#" MasterPageFile="~/umbraco/masterpages/default.master" AutoEventWireup="true" %>
    Line 2:  <asp:content id="Content1" contentplaceholderid="ContentPlaceHolderDefault" runat="server">
    Line 3: 


    Source File: /masterpages/umbMaster.master    Line: 1

    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

    // ----

    Security Exception (retrieved with Fiddler's Request Builder - disregard HTML entity values):

    // ----

    [TypeLoadException]: Inheritance security rules violated by type: &#39;umbraco.presentation.templateControls.ItemDesigner&#39;. Derived types must either match the security accessibility of the base type or be less accessible.
       at System.Reflection.CustomAttribute._CreateCaObject(RuntimeModule pModule, IRuntimeMethodInfo pCtor, Byte** ppBlob, Byte* pEndBlob, Int32* pcNamedArgs)
       at System.Reflection.CustomAttribute.CreateCaObject(RuntimeModule module, IRuntimeMethodInfo ctor, IntPtr& blob, IntPtr blobEnd, Int32& namedArgs)
       at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent)
       at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit)
       at System.RuntimeType.GetCustomAttributes(Type attributeType, Boolean inherit)
       at System.ComponentModel.ReflectTypeDescriptionProvider.ReflectGetAttributes(Type type)
       at System.ComponentModel.ReflectTypeDescriptionProvider.ReflectedTypeData.GetAttributes()
       at System.ComponentModel.TypeDescriptor.TypeDescriptionNode.DefaultTypeDescriptor.System.ComponentModel.ICustomTypeDescriptor.GetAttributes()
       at System.ComponentModel.TypeDescriptor.GetAttributes(Type componentType)
       at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildBuildMethod(ControlBuilder builder, Boolean fTemplate, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse, Boolean fControlSkin)
       at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse)
       at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse)
       at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse)
       at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse)
       at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse)
       at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse)
       at System.Web.Compilation.TemplateControlCodeDomTreeGenerator.BuildMiscClassMembers()
       at System.Web.Compilation.MasterPageCodeDomTreeGenerator.BuildMiscClassMembers()
       at System.Web.Compilation.BaseCodeDomTreeGenerator.BuildSourceDataTree()
       at System.Web.Compilation.BaseCodeDomTreeGenerator.GetCodeDomTree(CodeDomProvider codeDomProvider, StringResourceBuilder stringResourceBuilder, VirtualPath virtualPath)
       at System.Web.Compilation.BaseTemplateBuildProvider.GenerateCode(AssemblyBuilder assemblyBuilder)
       at System.Web.Compilation.AssemblyBuilder.AddBuildProvider(BuildProvider buildProvider)
    [HttpParseException]: Inheritance security rules violated by type: &#39;umbraco.presentation.templateControls.ItemDesigner&#39;. Derived types must either match the security accessibility of the base type or be less accessible.
       at System.Web.UI.TemplateParser.ProcessException(Exception ex)
       at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)
       at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)
       at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath)
       at System.Web.UI.TemplateParser.ParseInternal()
       at System.Web.UI.TemplateParser.Parse()
       at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType()
       at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider)
       at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders()
       at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
       at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
       at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
       at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
       at System.Web.Compilation.BuildManager.GetVPathBuildResultWithAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
       at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean ensureIsUpToDate)
       at System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection)
       at System.Web.UI.Page.get_Master()
       at System.Web.UI.Page.ApplyMasterPage()
       at System.Web.UI.Page.PerformPreInit()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       at System.Web.UI.Page.ProcessRequest()
       at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
       at System.Web.UI.Page.ProcessRequest(HttpContext context)
       at ASP.default_aspx.ProcessRequest(HttpContext context)
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    --><!--
    This error page might contain sensitive information because ASP.NET is configured to show verbose error messages using &lt;customErrors mode="Off"/&gt;. Consider using &lt;customErrors mode="On"/&gt; or &lt;customErrors mode="RemoteOnly"/&gt; in production environments.-->

    // ----

     

    Regards,

    Jan Reilink
    VEVIDA Nederland

  • Jeroen de Visser 5 posts 25 karma points
    Apr 15, 2011 @ 11:04
    Jeroen de Visser
    0

    Hi Arnold and Jan,

    I was wondering if you have made some progress with this issue. I have two hosting accounts on shared server environments (one at VEVIDA and one at Webstekker) and encounter the same problem.

    Umbraco versions which run at .NET 3.5 work fine, but versions running at .NET 4.0 (like Umbraco 4.7.0) return a security exception. Even after setting umbracoUseMediumTrust in the web.config file to true.

    Best regards,
    Jeroen

  • Jan Reilink 5 posts 25 karma points
    Apr 22, 2011 @ 07:45
    Jan Reilink
    0

    Jeroen,

    Unfortunately there is no progress, yet. Somewhere down the line, the need for new -more extended- permissions was added to Umbraco 4.6/4.7 and I haven't had the time or opportunity to try to figure this one out. But, I believe this is something the Umbraco developers need to do. There are a lot of messages on this forum about empty nodes in the admin area, and other errors.

    If Umbraco is still willing to support medium trust, then they'll come with a patch (fix) soon.

    For ASP.NET version 4.0, Umbraco 4.5.2 runs fine too. But you'd miss the added Razor functionality.

    Regards,

    Jan Reilink
    VEVIDA Nederland

  • Comment author was deleted

    Apr 27, 2011 @ 11:08

    Ok this should be fixed in the 4.7.1 release (wich is still work in progress atm).

    But it would be ace if you could test the latest nightly build to confirm that it works now.

    http://nightly.umbraco.org/umbraco%204.7/4.7%20RC/

    Regards,
    Tim

  • Jan Reilink 5 posts 25 karma points
    Apr 27, 2011 @ 11:41
    Jan Reilink
    0

    Hi Tim,

    Thank you! On Windows Server 2003 (IIS 6.0) and ASP.NET 4.0: works like a charm, with a MySQL database back-end :)

    //Edit: On Window Server 2008 R2 (IIS 7.5) webservers and ASP.NET 4.0 works too :-)

    Regards,
    Jan Reilink

  • Comment author was deleted

    Apr 27, 2011 @ 14:23

    Great, thanks for confirming Jan!

  • Jeroen de Visser 5 posts 25 karma points
    May 02, 2011 @ 19:27
    Jeroen de Visser
    0

    Hi Jan,

    Thank you for your efforts to enable Umbraco to run on shared hosting at Vevida!

    I installed the latest nightly build (4.7.1), as recommended by Tim, and have set umbracoUseMediumTrust to true. It works like a charm.


    Best regards,
    Jeroen

     

  • Arnold Schuitema 4 posts 24 karma points
    May 02, 2011 @ 20:27
    Arnold Schuitema
    0

    Hi Jan,

    Thanks a lot, I will try the new version as soon as it is released.

    Cheers,

    Arnold

  • Roge Cuijpers 1 post 21 karma points
    May 17, 2011 @ 13:02
    Roge Cuijpers
    0

    Hello,

    I experienced exactly the same as the starter of this post with my Umbraco on a shared host in medium trust. After using the nightly build 4.7.1 the 'Inheritance security rules violated by type: 'umbraco.presentation.templateControls.ItemDesigner'. Derived types must either match the security accessibility of the base type or be less accessible.' error was solved and the site is working.

     

    However regarding the administrator panel the whole content tree is still empty in my situation, so it's impossible for me to add or alter sth in my website. Somebody idead what i should check?

     

    Thanks a lot! 

  • Kevin Farrugia 5 posts 25 karma points
    May 23, 2011 @ 13:54
    Kevin Farrugia
    0

    Hello,

     

    I am also experiencing the same issue, i.e. System.Security.SecurityException: Request for the permission of type 'System.Configuration.ConfigurationPermission, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' failed. even after having installed and ran nightly build 4.7.1.391.  In the web.config I have set the AppSetting with key "umbracoUseMediumTrust" to true; however it didn't make any difference. Am I missing something perhaps?

     

    Edit: I forgot to add that after adding requirePermission="false" for the section name="clientDependency" I am now encountering an different error, also security related.

    On SQL CE: System.InvalidOperationException: Cannot perform CAS Asserts in Security Transparent methods

    On MSSQL: Inheritance security rules violated by type: 'umbraco.presentation.templateControls.ItemDesigner'.

     

    Can someone please help me out because I don't know where else to look.


    Thanks a lot for your help

    Kevin

  • Malachi Burke 4 posts 24 karma points
    Jun 06, 2011 @ 04:48
    Malachi Burke
    0

    This really helped me a lot.  Running the late may nightly of 4.7.1, solved the code permission problems on my shared host.  Thank you!

  • Jonathan Corbett 2 posts 22 karma points
    Jun 16, 2011 @ 23:52
    Jonathan Corbett
    0

    I'm getting the same issue using the 4.7 version of Umbraco as well, but I'm just wondering what changes have been made to the nightly 4.7.1 build to allow full trust?

    I've added the requirePermission attributes and the medium trust setting but still get the CAS security exception as it looks for the SQL CE database.

    If the changes were to more than just the web config, then can I just get a copy of the other files that have been updated from the build folder and overwrite the old ones rather than trying to upgrade on all my machines, TFS and the other developer machines we have?

  • Greg 2 posts 22 karma points
    Aug 31, 2011 @ 19:29
    Greg
    0

    Hi. I'm having exactly this problem trying to get Umbraco running on a Rackspace Cloud Site. Has anything moved forward on this?

    Does anyone know what changes I need to make to get it going? Does the 4.7.1 nightly build fix it, and when is 4.7.1 due for release?

    Any and all advice greatly appreciated.

    Greg

  • Kevin Farrugia 5 posts 25 karma points
    Aug 31, 2011 @ 19:51
    Kevin Farrugia
    0

    hey, i plan on compiling a short document of the steps i had taken to make it work, however it was finally working (not 100% yet tbh) but if I remember well I used the nightly build 4.7.1 and installed locally, then copied the files using FTP and the DB also. something like that.  like i said, i don't remember really well, but if you are a bit patient i am going to have another go at this and will post the steps over here. however it's possible, so don't give up! =)

  • Mike Chambers 635 posts 1252 karma points c-trib
    Sep 02, 2011 @ 10:53
    Mike Chambers
    0

    My route was

    the latest nightly build, 4.7.1.425 on my full trust dev site

    once site all done migrate db and files to rackspace

    set useMediumtrust and turn off debug

    {add key="umbracoDebugMode" value="false" /} {add key="umbracoUseMediumTrust" value="true" /}

    requirePermission="false" on client dependancy

    {section name="clientDependency" requirePermission="false" type="ClientDependency.Core.Config.ClientDependencySection, ClientDependency.Core" /}

    add identity impersonate settings

    {identity impersonate="true" userName="dfw\XXX" password="XXXXXX" /}

    and change the sessionstate store to sql (after getting rackspace to convert a empty database I had set up for the purpose)

    {sessionState mode="SQLServer" allowCustomSqlDatabase="true" sqlConnectionString="data source=mssql0804.wc1\inst2;initial catalog=4078XX_umbraco46sessions_XXX;user id=4078XX_XXX;password=XXX" cookieless="false" timeout="20" /}

    turn of the xml in memory cache. (otherwise in this loadbalanced environment nodes data can be out of sync)

    {!-- Enable / disable xml content cache --} {XmlCacheEnabled}False{/XmlCacheEnabled} {!-- Update disk cache every time content has changed --} {ContinouslyUpdateXmlDiskCache}False{/ContinouslyUpdateXmlDiskCache}

    add a scheduled task to rebuild the document cache every 15mins (just a usercontrol with a call to umbraco.library.RefreshContent(); and some logging)

    (by firing at www.domain.com the node it fires on should get the request itself, thats the hope and it seems to work) - due to the fact that there is no dns on cloud sites for individual nodes to be able to use the distributed transaction mechanism in umbraco.

    {task log="true" alias="rebuildCache" interval="900" url="http://www.domain.com/rebuildcache"/}

    All seems to work..... apart from an ongoing issue with cloud sites and umbraco in medium trust that pages take 5+secs waiting before assets begin to load... :-( as can be seen seen in firebug and chrome resource monitor... it looks to be a lag between the site and sql query...... has anyone else seen this? Rackspace seem to intimate that it's the volume of sql IO that is at fault....

    if anyone wants to see this first hand http://umbraco46.fidus.co.uk is our test bed.

  • Greg 2 posts 22 karma points
    Sep 04, 2011 @ 08:27
    Greg
    0

    Thanks for the replies.

    In the end I decided I didn't want to use a non stable build for my client. I have persuaded them to upgrade to a Cloud Server rather than a Cloud Site. I FTP'd my files over, set up the db, changed the config accordingly, fiddled with file permissions and then everything worked perfectly. Its not ideal, I'd rather it was a Cloud Server as there'd be less maintenance, but it was the safe option in the end.

    I hope Umbraco resolves the medium trust issues soon.

    Greg

  • Mujeeb 2 posts 22 karma points
    Sep 04, 2011 @ 08:35
    Mujeeb
    0

    Starter kits

    To help you get started here are some basic starter kits. They have been tailored to suit common site configurations and install useful functionality such as blogs or image galleries.
    Mouse over the icons to learn more about what the starter kits will install.

  • Mujeeb 2 posts 22 karma points
    Sep 04, 2011 @ 08:35
    Mujeeb
    0

    Starter kits

    To help you get started here are some basic starter kits. They have been tailored to suit common site configurations and install useful functionality such as blogs or image galleries.
    Mouse over the icons to learn more about what the starter kits will install.

Please Sign in or register to post replies

Write your reply to:

Draft