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.
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)
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?
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 :)
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.
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.
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.
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
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:
and under system.web
Yeah, I'm currently having to use medium trust (umbracoUseMediumTrust is set to true). I tried adding the
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?
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 :)
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 :)
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.
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.
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.
is working on a reply...