Copied to clipboard

Flag this post as spam?

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


  • Peter Nielsen 159 posts 257 karma points
    Oct 27, 2011 @ 16:08
    Peter Nielsen
    0

    Error in all XSLT files after install

    Hi,

    I installed this package on a .NET 4 server with umbraco v 4.7.0

    The package ver was the newest beta aswell.

    But all my XSLT files threw an exception error, and when I tried to save an xslt file, I got the same error.

    So I had to uninstall the package again.

    I think the error was in the NHibernate.dll files... dont know what they do, but it was in these files the error was located?! :-)

    Any ideas what to do?! :)

    Regards

    Peter

  • Owen 123 posts 246 karma points
    Oct 27, 2011 @ 16:15
    Owen
    0

    Can you provide more information about the error?

    The package work well in my environment

  • Owen 123 posts 246 karma points
    Oct 27, 2011 @ 16:17
    Owen
    0

    And about the NHibernate, i use it as data provider, so the package can support mysql and sql too.

  • Peter Nielsen 159 posts 257 karma points
    Oct 27, 2011 @ 16:25
    Peter Nielsen
    0

    Hi,

    I just tried to install it again. Its a live site, so I can not have it to be offline, so I have to uninstall the package again...

    But now.. with a fresh CampaignLetter installation, all my XSLT files throws an error in the frontend like this:

    Error parsing XSLT file: \xslt\MenuName.xslt
    This is the only XSLT in the MenuName.xslt :
    <xsl:variable name="source" select="/macro/source"/>
    <xsl:template match="/">

      <xsl:value-of select="umbraco.library:GetXmlNodeById($source)/@nodeName"/>

    </xsl:template>
    Pretty simple...
    If I try to save this XSLT file i get this:
    Error occured

    System.Exception: Unable to load one or more of the types in assembly 'NHibernate.ByteCode.Castle, Version=3.1.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4'. Exceptions were thrown:
    System.IO.FileNotFoundException: Could not load file or assembly 'Castle.Core, Version=2.5.1.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc' or one of its dependencies. The system cannot find the file specified.
    System.IO.FileNotFoundException: Could not load file or assembly 'Castle.Core, Version=2.5.1.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc' or one of its dependencies. The system cannot find the file specified.
    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)

    And this if I use the /?umbdebugshowtrace=1 i get:

    InnerException Unable to load one or more of the types in assembly 'NHibernate.ByteCode.Castle, Version=3.1.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4'. Exceptions were thrown:
    System.IO.FileNotFoundException: Could not load file or assembly 'Castle.Core, Version=2.5.1.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc' or one of its dependencies. The system cannot find the file specified.
    System.IO.FileNotFoundException: Could not load file or assembly 'Castle.Core, Version=2.5.1.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc' or one of its dependencies. The system cannot find the file specified.
    Unable to load one or more of the types in assembly 'NHibernate.ByteCode.Castle, Version=3.1.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4'. Exceptions were thrown:
    System.IO.FileNotFoundException: Could not load file or assembly 'Castle.Core, Version=2.5.1.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc' or one of its dependencies. The system cannot find the file specified.
    System.IO.FileNotFoundException: Could not load file or assembly 'Castle.Core, Version=2.5.1.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc' or one of its dependencies. The system cannot find the file specified.
      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__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.macro.GetXsltTransformResult(XmlDocument macroXML, XslCompiledTransform xslt, Dictionary`2 parameters)
      at umbraco.macro.loadMacroXSLT(macro macro, MacroModel model, Hashtable pageElements)

     

    Can i give you anything else? :)
    /Peter
  • Owen 123 posts 246 karma points
    Oct 27, 2011 @ 16:41
    Owen
    0

    I think i knew why you got this exception, but need some to figure out how to solved this.

  • Peter Nielsen 159 posts 257 karma points
    Oct 27, 2011 @ 16:55
    Peter Nielsen
    0

    Okay... Just say if you need anything? :-) Or if you want my test something? :-)

     

  • Owen 123 posts 246 karma points
    Oct 27, 2011 @ 17:07
    Owen
    0

    The problem is missing a dll - Castle.Core.dll(Version: 2.5.1 +). 

    This dll is required by Fluent NHibernate. You can download this dll from "http://sourceforge.net/projects/castleproject/files/Core/2.5/".

    could please install the package again,  and download "Castle.Core.dll". And tell me what happen?

    I am not sure why this dll doesn't include in package, need more time to check.

  • Peter Nielsen 159 posts 257 karma points
    Oct 28, 2011 @ 14:52
    Peter Nielsen
    0

    Hi Owen,

    Yes that did the trick... downloaded the Castle.Core.dll and dropped it into the bin dir :-)

    Now I cant wait to take a closer look on the package... looks interesting :-)

    Thank

    Peter

  • Dominic Dore 18 posts 38 karma points
    Oct 28, 2011 @ 21:13
    Dominic Dore
    0

    Hello,

    I am having the same issue with the XSLTsearch package. Everytime I try to load the page /search.aspx I just get the error "Error parsing file: \xslt\XSLTsearch.xslt". When I do the ?umbDebugShowTrace=true (or 1, whichever you prefer), I get the following errors:

     

    umbracoMacro InnerException Unable to load one or more of the types in assembly 'NHibernate.Linq, Version=1.0.0.0, Culture=neutral, PublicKeyToken=444cf6a87fdab271'. Exceptions were thrown:
    System.IO.FileLoadException: Could not load file or assembly 'NHibernate, Version=2.0.1.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
    System.IO.FileLoadException: Could not load file or assembly 'NHibernate, Version=2.0.1.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
    System.IO.FileLoadException: Could not load file or assembly 'NHibernate, Version=2.0.1.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
    System.IO.FileLoadException: Could not load file or assembly 'NHibernate, Version=2.0.1.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
    System.IO.FileLoadException: Could not load file or assembly 'NHibernate, Version=2.0.1.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
    System.IO.FileLoadException: Could not load file or assembly 'NHibernate, Version=2.0.1.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
    System.IO.FileLoadException: Could not load file or assembly 'NHibernate, Version=2.0.1.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
    Unable to load one or more of the types in assembly 'NHibernate.Linq, Version=1.0.0.0, Culture=neutral, PublicKeyToken=444cf6a87fdab271'. Exceptions were thrown:
    System.IO.FileLoadException: Could not load file or assembly 'NHibernate, Version=2.0.1.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
    System.IO.FileLoadException: Could not load file or assembly 'NHibernate, Version=2.0.1.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
    System.IO.FileLoadException: Could not load file or assembly 'NHibernate, Version=2.0.1.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
    System.IO.FileLoadException: Could not load file or assembly 'NHibernate, Version=2.0.1.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
    System.IO.FileLoadException: Could not load file or assembly 'NHibernate, Version=2.0.1.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
    System.IO.FileLoadException: Could not load file or assembly 'NHibernate, Version=2.0.1.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
    System.IO.FileLoadException: Could not load file or assembly 'NHibernate, Version=2.0.1.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
      at umbraco.BusinessLogic.Utils.TypeFinder.FindClassesMarkedWithAttribute(Assembly assembly, Type attribute)
      at umbraco.BusinessLogic.Utils.TypeFinder.FindClassesMarkedWithAttribute(Type attribute)
      at umbraco.macro.GetXsltExtensionsImpl()
      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.0590919148723048 0.026081

    I tried adding the Castle.Core.dll, but that didn't help at all. Anyone know what this may mean? I am running Umbraco 4.7.1 with XSLTsearch 3.0.4.

    Thanks!

    - Dom

           
  • Rich Green 2246 posts 4008 karma points
    Oct 28, 2011 @ 23:32
    Rich Green
    0

    Hey Dom,

    I'm pretty sure XSLT search doesn't use nHibernate.

    Do you have any problems with your other xslt files?

    Rich

  • Owen 123 posts 246 karma points
    Oct 29, 2011 @ 02:21
    Owen
    0

    I think this issue is caused by dll version conflict(NHibernate.dll)

    In package, i use NHibernate(version 3.2) but "NHibernate.Linq" require version 2.0.1.400.

    You can download NHibernate.dll(version 2.0.1.400), and put it into bin folder, see what happen.

    Or just remove NHibernate.LINQ.dll, if you don't use it.

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Oct 31, 2011 @ 11:32
    Douglas Robar
    0

    Hi, Dom,

    XSLTsearch doesn't use nHibernate or any data access layer so this isn't an XSLTsearch issue per se. XSLTsearch *might* be showing a bug elsewhere however, because it is using an XSLT Extension in the app_code folder and that has been shown to raise the visibility of a bug in prior versions of Umbraco. Here's the background on that issue, which was fixed in newer versions of Umbraco. (see Alex's comment at the bottom of the page... http://our.umbraco.org/projects/website-utilities/xsltsearch/xsltsearch-bugs/16139-Error-when-saving-XSLT-file-in-Umbraco-46-beta?p=4)

    Do report what you find out and the solution or workaround you employ for the benefit of others.

    cheers,
    doug. 

  • Dominic Dore 18 posts 38 karma points
    Nov 03, 2011 @ 23:19
    Dominic Dore
    0

    Rich, xslt search is the only xslt file that my site is using (that I know of).

    Owen, yes, that is correct. I would delete the NHibernate.Linq.dll, however I am using it; I think that downgrading from 3.2 to 2.0.1.400 right before site deployment and "hoping for the best" would not be a viable alternative haha. Also, since I am using the more current version, I can't add the old version without it deleting the current one. :\

    Doug, I don't think that that is my issue, as I am running Umbraco v4.7.1, I will continue to look into it though.

    I have been researching my problem and trying to fix it, and it seems that when I manually delete the NHibernate.Linq.dll and .pdb files from my bin it runs the xsltsearch, however it always yields no results (my usercontrol project copies all of it's bin files to the umbraco project post-build, so the NHibernate.Linq.dll and .pdb are there to work with the linq areas of my site). I am currently looking into why it continuously yields no results, and what I can do to fix that. Thank you all for your help!

    - Dom

  • Dominic Dore 18 posts 38 karma points
    Nov 03, 2011 @ 23:30
    Dominic Dore
    0

    Also, we recently upgraded this site from 4.7.0 to 4.7.1. It worked in 4.7.0 and we just started trying to correctly implement it in the new version. I don't know if that could have anything to do with it, but I figured I would throw that out there! :) Thanks again!

    - Dom

  • Mila 60 posts 79 karma points
    Jan 25, 2012 @ 13:09
    Mila
    0

    I'm kind of having the same problem.

    When I try to publish a page in my project I have gotten an error:

    Error reading XSLT file: \xslt\umbTopNavigation.xslt       

    And when I try to create a XSLT File, I'm getting the follow error:

    Server Error in '/build' Application.


    Unable to load one or more of the types in assembly 'Umbraco.Forms.Core, Version=1.1.0.19647, Culture=neutral, PublicKeyToken=null'. Exceptions were thrown:
    System.IO.FileNotFoundException: Could not load file or assembly 'Umbraco.Forms.References, Version=1.0.10920.32880, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
    System.IO.FileNotFoundException: Could not load file or assembly 'Umbraco.Forms.References, Version=1.0.10920.32880, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

    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.Exception: Unable to load one or more of the types in assembly 'Umbraco.Forms.Core, Version=1.1.0.19647, Culture=neutral, PublicKeyToken=null'. Exceptions were thrown:
    System.IO.FileNotFoundException: Could not load file or assembly 'Umbraco.Forms.References, Version=1.0.10920.32880, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
    System.IO.FileNotFoundException: Could not load file or assembly 'Umbraco.Forms.References, Version=1.0.10920.32880, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

    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:

    [Exception: Unable to load one or more of the types in assembly 'Umbraco.Forms.Core, Version=1.1.0.19647, Culture=neutral, PublicKeyToken=null'. Exceptions were thrown:
    System.IO.FileNotFoundException: Could not load file or assembly 'Umbraco.Forms.References, Version=1.0.10920.32880, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
    System.IO.FileNotFoundException: Could not load file or assembly 'Umbraco.Forms.References, Version=1.0.10920.32880, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.]
       umbraco.BusinessLogic.Utils.TypeFinder.FindClassesMarkedWithAttribute(Assembly assembly, Type attribute) +955
       umbraco.BusinessLogic.Utils.TypeFinder.FindClassesMarkedWithAttribute(Type attribute) +145
       umbraco.macro.GetXsltExtensionsImpl() +1028
       umbraco.cms.businesslogic.cache.Cache.GetCacheItem(String cacheKey, Object syncLock, CacheItemPriority priority, CacheItemRemovedCallback refreshAction, CacheDependency cacheDependency, TimeSpan timeout, GetCacheItemDelegate`1 getCacheItem) +159
       umbraco.macro.GetXsltExtensions() +288
       umbraco.macro.AddXsltExtensionsToHeader(String xslt) +197
       umbraco.XsltTasks.Save() +660
       umbraco.presentation.create.dialogHandler_temp.Create(String NodeType, Int32 TypeId, Int32 NodeId, String Text) +755
       umbraco.presentation.create.xslt.sbmt_Click(Object sender, EventArgs e) +257
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +154
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3707
    


    Can someone help me out, please?

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Jan 25, 2012 @ 13:29
    Douglas Robar
    0

    Hi, Mila,

    The error says it can't find the Umbraco.Forms files, when the GetXsltExtensions() are loaded. Umbraco.Forms is the internal name for Umbraco Contour. Did you recently uninstall Contour or otherwise done something with Contour?

    cheers,
    doug. 

  • Mila 60 posts 79 karma points
    Jan 25, 2012 @ 13:40
    Mila
    0

    Hi, doug!

    I tried to install the contour, but I got an error and I unistalled contour, but if I try to install again it says I already have installed.

    Thanks for help me out :)

    Mila

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Jan 25, 2012 @ 13:41
    Douglas Robar
    0

    It would be worth making a new post in the Contour forum - once that's resolved your problem saving XSLT files will also be resolved.

    cheers,
    doug. 

  • Mila 60 posts 79 karma points
    Jan 25, 2012 @ 13:49
    Mila
    0

    Ok, Thank u very much! I will try it :)

  • Paul Fowles 75 posts 184 karma points
    May 31, 2012 @ 17:10
    Paul Fowles
    0

    Owen,

    I'm using a MySql5.5.15 database which seems to conflict with NHibernate and FluentNhibernate and Castle.Coredlls as I can't add a new user to a subscribe group via the front end using a user control or backend using umbraco. It work fines in MSSQL server.  It seems to be not connecting to the database even though Campaignletter beta installed fine on the MySql database. 

    Anyone had this issue?

     

    Regards

    Paul

Please Sign in or register to post replies

Write your reply to:

Draft