Copied to clipboard

Flag this post as spam?

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


  • Ayman 11 posts 41 karma points
    Dec 20, 2012 @ 15:07
    Ayman
    0

    Error parsing XSLT file After moving my website from 1 hosting location to another

    Dear Ones,

    I am a total n00b in this, but we urgently need to do it for one of our customers. We had our :

    Website Backup, Database Backup & a Documentation on how to implement the website in our new hosting place.

    We have followed it accurately and we ended up with the website up & running but an error is showing in our webpage as follows and our website tabs are not appearing at all

    Error parsing XSLT file: \xslt\myNav.xslt

    Kindly help in resolving this issue, since its very crtical to get it completed. 

    Do note that it was up & running in another hosting space, now we were trying to migrate the website from the old to the new hosting space.

     

  • Chriztian Steinmeier 2798 posts 8788 karma points MVP 8x admin c-trib
    Dec 20, 2012 @ 15:15
    Chriztian Steinmeier
    0

    Hi Ayman,

    First make sure debug is on in the web.config (look for umbracoDebugMode) - then open your website and add ?umbDebugShowTrace=True to the URL

    Now you should be able to see a detailed error message in red somewhere on the page... what does it say?

    /Chriztian

    Also: Are you running the same Umbraco version in both locations?

  • Ayman 11 posts 41 karma points
    Dec 20, 2012 @ 15:36
    Ayman
    0

    Ok, here are the messages that are appearing with red

    1. umbracoMacro InnerExceptionUnable 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.
      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.<GetXsltExtensions>b__0()
        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.macro.GetXsltTransformResult(XmlDocument macroXML, XslCompiledTransform xslt, Dictionary`2 parameters)
        at umbraco.macro.loadMacroXSLT(macro macro, MacroModel model, Hashtable pageElements)0.
    2. umbracoMacro InnerExceptionUnable 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.
      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.<GetXsltExtensions>b__0()
        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.macro.GetXsltTransformResult(XmlDocument macroXML, XslCompiledTransform xslt, Dictionary`2 parameters)
        at umbraco.macro.loadMacroXSLT(macro macro, MacroModel model, Hashtable pageElements)
    3. libraryError returning dictionary item 'theEvent'
      No key theEvent exists in dictionary
        at umbraco.cms.businesslogic.Dictionary.DictionaryItem..ctor(String key)
        at umbraco.library.GetDictionaryItem(String Key)
    4. libraryError returning dictionary item 'Media'
      No key Media exists in dictionary
        at umbraco.cms.businesslogic.Dictionary.DictionaryItem..ctor(String key)
        at umbraco.library.GetDictionaryItem(String Key)
    5. libraryError returning dictionary item 'History'
      No key History exists in dictionary
        at umbraco.cms.businesslogic.Dictionary.DictionaryItem..ctor(String key)
        at umbraco.library.GetDictionaryItem(String Key)
    6. libraryError returning dictionary item 'Contact'
      No key Contact exists in dictionary
        at umbraco.cms.businesslogic.Dictionary.DictionaryItem..ctor(String key)
        at umbraco.library.GetDictionaryItem(String Key)
    7. Exception occurred while populating cache, Will set RazorDataTypeModelTypes to null so that this error remains visible and you don't end up with an empty cache with silent failure.0.5924201674907060.046087 The exception was System.Exception and the message was 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.MacroEngines.DynamicNode.TryGetMember(GetMemberBinder binder, Object& result)
    8. Exception occurred while populating cache, Will set RazorDataTypeModelTypes to null so that this error remains visible and you don't end up with an empty cache with silent failure.0.6376166493359810.044048 The exception was System.Exception and the message was 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.MacroEngines.DynamicNode.TryGetMember(GetMemberBinder binder, Object& result)
    9. Exception occurred while populating cache, Will set RazorDataTypeModelTypes to null so that this error remains visible and you don't end up with an empty cache with silent failure.0.6806561392352890.042812 The exception was System.Exception and the message was 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.MacroEngines.DynamicNode.TryGetMember(GetMemberBinder binder, Object& result)
    10. umbracoMacro InnerExceptionUnable 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.
      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.<GetXsltExtensions>b__0()
        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.macro.GetXsltTransformResult(XmlDocument macroXML, XslCompiledTransform xslt, Dictionary`2 parameters)
        at umbraco.macro.loadMacroXSLT(macro macro, MacroModel model, Hashtable pageElements)
  • Ayman 11 posts 41 karma points
    Dec 20, 2012 @ 15:37
    Ayman
    0

    Yes, its a copy from the main server, i did not re-install it from scratch, so it should be the same version.

  • Chriztian Steinmeier 2798 posts 8788 karma points MVP 8x admin c-trib
    Dec 20, 2012 @ 15:46
    Chriztian Steinmeier
    0

    Hi again,

    OK - that is most likely not an XSLT error - looks more like an error with the permissions... will try to call the cavalry (on twitter) for you...

    /Chriztian

  • Matt Brailsford 4125 posts 22222 karma points MVP 9x c-trib
    Dec 20, 2012 @ 15:53
    Matt Brailsford
    0

    Sounds like a permissions problem to me too, please ensure your permissions are set as per this link

    http://our.umbraco.org/wiki/reference/files-and-folders/permissions

    Cheers

    Matt

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Dec 20, 2012 @ 15:53
  • Lee Kelleher 4024 posts 15833 karma points MVP 13x admin c-trib
    Dec 20, 2012 @ 15:53
    Lee Kelleher
    0

    The errors appears to be due to the new hosting being under Medium Trust.

    Which version of Umbraco are you using? (and are you using the SQL CE database?)

    I know where were definite issues with SQL CE and Medium Trust.

    Cheers, Lee.

  • Ayman 11 posts 41 karma points
    Dec 20, 2012 @ 18:05
    Ayman
    0

    Matt Brailsford - I have checked all permissions and they seem to be all :

    Full Control
    Modify
    Read & Execute
    List Folder Contents
    Read
    Write

     Full Control, Modify, Read & Execute, List folder Contents, Read , Write. " All are marked " - Is this ok? or should i change them?

    Lee Kelleher  - I am running Umbraco 4. & my hosting place told me they have tried to tweak something in regards of Medium Trust but were not able to resolve it, I am not sure about the SQL CE Database???? 

     

  • Lee Kelleher 4024 posts 15833 karma points MVP 13x admin c-trib
    Dec 20, 2012 @ 18:11
    Lee Kelleher
    0

    Hi Ayman,

    Thanks for the info.  We'll need a more specific version number, as v4 has many minor versions (with many changes).

    Can you open the "web.config" file (in the root of your website), scroll down to the <appSettings> section and find the following values:

    • "umbracoConfigurationStatus" - this has the value of your Umbraco version.
    • "umbracoDbDSN" - this is your database connection string - do not copy-n-paste the value, but check if it contains a parameter called "datalayer". If so, which datalayer does it use? SQLCE or MySQL?  If it doesn't contain the "datalayer" parameter then you are using SQL Server (which is good to help resolve this Medium Trust issue).

    Thanks, Lee.

  • Ayman 11 posts 41 karma points
    Dec 20, 2012 @ 18:20
    Ayman
    0
    Hi Lee,
    Find the requsted info below:
    • Umbraco Version = 4.9.0
    • No data layer appears in the umbracoDbDSN String  , i think i am running SQL Server 2008.
  • Lee Kelleher 4024 posts 15833 karma points MVP 13x admin c-trib
    Dec 20, 2012 @ 18:25
    Lee Kelleher
    100

    Hi Ayman,

    OK cool, the quick fix for you to get your website back up and running is to remove the SQLCE assemblies, (of course, make a back-up first!!!), delete the following from your /bin folder:

    • /bin/amd64
    • /bin/x86
    • /bin/SQLCE4Umbraco.dll
    • /bin/System.Data.SqlServerCe.dll
    • /bin/System.Data.SqlServerCe.Entity.dll

    Good luck... and remember to make a back-up of those files, just in case you need to restore them.

    Cheers, Lee.

  • Ayman 11 posts 41 karma points
    Dec 20, 2012 @ 18:47
    Ayman
    0

    Thank you for your above resolution, i have removed the first 2 files that you posted above, but the 3 remaining .dll files are giving me access denided.

    Any idea how to enforce removing them? I tried removing them from the File Manager and from a FTP account but could not do it.

  • Lee Kelleher 4024 posts 15833 karma points MVP 13x admin c-trib
    Dec 20, 2012 @ 18:49
    Lee Kelleher
    0

    They'll most likely be locked by the web application itself, so it would need to be restarted.  Luckily you can do this by modifying the Web.config file ... try re-uploading it to the web-server.  Then before you view your website again, delete those other files from your /bin folder.

    Cheers, Lee.

  • Ayman 11 posts 41 karma points
    Dec 20, 2012 @ 18:59
    Ayman
    0

    Lee, do not know how to thank you , my problems are resolved :) 

    Cheers and the website is up and running.

    P.S. a quick question - When i run my website using the debugging mode, it still show couple of errors, is it related to the same website service migration issue?

  • Lee Kelleher 4024 posts 15833 karma points MVP 13x admin c-trib
    Dec 20, 2012 @ 19:01
    Lee Kelleher
    0

    Hi Ayman,

    Just marking the appropriate reply/post as the solution is thanks enough.  Happy that it's resolved.

    With the other errors, are those the same as your original post or different?

    Cheers, Lee.

  • Ayman 11 posts 41 karma points
    Dec 20, 2012 @ 19:07
    Ayman
    0

    Done :) and i think other errors requires another post opening.

    I will do open another post with the other issues.

    Thanks again.

    Have a good day.

  • Morten Bengtson 2 posts 22 karma points
    Dec 21, 2012 @ 01:01
    Morten Bengtson
    0

     Seems to be an issue with SqlServerCE assemblies and medium trust...

    "assembly version 4.0.0.0 and 4.0.0.1 is the same code, but 4.0.0.1 is isolated for desktop deployment and does not work with medium trust. Version 4.0 and 4.0 SP1 both support medium trust, as long as you use assembly version 4.0.0.0"
    http://erikej.blogspot.dk/2011/10/sql-server-compact-40-under-aspnet.html

     

  • Lee Kelleher 4024 posts 15833 karma points MVP 13x admin c-trib
    Dec 21, 2012 @ 01:50
    Lee Kelleher
    0

    Thanks Morten, much appreciated.  This has been resolved for the upcoming v6.0 release: http://issues.umbraco.org/issue/U4-677

    Cheers, Lee.

Please Sign in or register to post replies

Write your reply to:

Draft