Copied to clipboard

Flag this post as spam?

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


  • Simon Smith 19 posts 41 karma points
    Oct 09, 2011 @ 17:02
    Simon Smith
    0

    Xslt extension problems

    Hi,

    I'm using the uTube package for inserting YouTube videos. In my dev environment it works fine, however in production I get the following error when trying to parse the XSLT macros:

    System.Exception: Unable to load one or more of the types in assembly 'System.Data.SqlServerCe, Version=4.0.0.1, Culture=neutral, PublicKeyToken=89845dcd8080cc91'. Exceptions were thrown:
    System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
    at umbraco.BusinessLogic.Utils.TypeFinder.FindClassesMarkedWithAttribute(Assembly assembly, Type attribute)
    at umbraco.BusinessLogic.Utils.TypeFinder.FindClassesMarkedWithAttribute(Type attribute)
    at umbraco.macro.GetXsltExtensionsImpl()
    at umbraco.macro.b__4()
    at umbraco.cms.businesslogic.cache.Cache.GetCacheItem[TT](String cacheKey, Object syncLock, CacheItemPriority priority, CacheItemRemovedCallback refreshAction, CacheDependency cacheDependency, TimeSpan timeout, GetCacheItemDelegate`1 getCacheItem)
    at umbraco.macro.GetXsltExtensions()
    at umbraco.macro.AddMacroXsltExtensions()
    at umbraco.presentation.webservices.codeEditorSave.SaveXslt(String fileName, String oldName, String fileContents, Boolean ignoreDebugging)

    It's not the specific binary that is causing the problem, as initially it was complaining about some of the binaries added by Concierge. I've removed that package, but the problem remains.

    Does anyone have any ideas how to fix this? It's a shared hosting environment to which I don't have administrator access.

    Thanks,
    Simon

  • Kevin Blake 23 posts 45 karma points
    Oct 09, 2011 @ 17:28
    Kevin Blake
    0

    Possibly a long shot - but is it because your shared hosting only supports Medium Trust?  A couple of changes to your web.config might help fix it (or at least reproduce locally so you can debug further)

     

    In you appSettings:

    <add key="umbracoUseMediumTrust" value="true" /> 

    and under system.web

    <trust level="Medium" originUrl=".*" />

     

     

  • Simon Smith 19 posts 41 karma points
    Oct 09, 2011 @ 17:34
    Simon Smith
    0

    Yeah, I'm currently having to use medium trust (umbracoUseMediumTrust is set to true). I tried adding the

    <trustlevel="Medium"originUrl=".*"/>

    bit to web.config, but it just caused things to break more :( Looks like my host has disabled overriding trust.

    I really need a VPS or a dedicated server, but when that starts at £20 a month it's a bit expensive when I'm paying for it out of my pocket. Got any suggestions?

  • Kevin Blake 23 posts 45 karma points
    Oct 09, 2011 @ 20:16
    Kevin Blake
    0

    Did the <trust> tag cause the same error to occur on your localhost?

    If not, I'm probably on the wrong track and it's got nothing to do with trust levels :)

    If I hadn't just signed up for 3x sites on discountasp for another year, I'd be tempted to split the cost of a VPS with you... Next year :)

  • Simon Smith 19 posts 41 karma points
    Oct 09, 2011 @ 20:45
    Simon Smith
    0

    Locally it has no effect i.e. it doesn't break it, nor does it fix it. Thanks anyway.

    I currently share a Linux VPS with a friend, so I've asked him if he would mind if we traded in for a Windows 2008 R2 VPS instead. You're welcome to join in the fun when the time comes :)

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Oct 09, 2011 @ 23:54
    Lee Kelleher
    0

    Hi Simon,

    Definitely sounds like a trust setting issue - which hosting company are you with?

    Umbraco v4.7.1 should support Medium trust, I believe SQL CE works in medium trust too - but never tried it.  You'll need to confirm with your host to which trust level you are on.

    Alternatively hosting, I've got a couple of sites with WinHost - they've been pretty good to me, no problems.

    Cheers, Lee.

  • Simon Smith 19 posts 41 karma points
    Oct 10, 2011 @ 11:22
    Simon Smith
    0

    Thanks Lee. I'm hosting with Pipe 10. I'll try their support to see if they have any ideas on the trust isue. They have a custom-configured trust level based on medium trust.

  • Simon Smith 19 posts 41 karma points
    Oct 12, 2011 @ 17:07
    Simon Smith
    0

    VPS isn't the way to go, at least not the cheapo one from Webfusion. Plesk gets in the way of everything. Think I'm just going to host a Windows VM on my home broadband connection (albeit a decent one) at this rate.

Please Sign in or register to post replies

Write your reply to:

Draft