Copied to clipboard

Flag this post as spam?

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


  • Pinal Bhatt 298 posts 390 karma points
    Mar 01, 2011 @ 15:58
    Pinal Bhatt
    1

    XSLT macros not getting rendered after upgrading to 4.7 RC

    After upgrading to 4.7 RC my xslt macros are not getting rendered. I get following error 

    Error parsing XSLT file: \xslt\Widget.eLOCourseList.xslt

     

     

     

     

    As per instructions on http://umbraco.codeplex.com/releases/view/59502 i deleted /bin/Microsoft.Scripting.dll, /bin/Iron.dll, /bin/RazorEngine.dll   files. 

     

    And form backend upon saving xslt file, i get following error:

    System.Exception: Unable to load one or more of the types in assembly 'IronPython, Version=2.6.10920.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Exceptions were thrown:
    System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Scripting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
    .......................................
    System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Scripting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
    System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Scripting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' 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)
    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)

  • Alex Norcliffe 222 posts 287 karma points
    Mar 01, 2011 @ 16:05
    Alex Norcliffe
    0

    That exception looks like you might still have an IronPython dll in the bin, which in turn is trying to load Microsoft.Scripting. Do you have any IronXXX dll's left in there?

  • Pinal Bhatt 298 posts 390 karma points
    Mar 01, 2011 @ 16:11
    Pinal Bhatt
    0

    now i deleted following files but still the same issue:

    IronPython.dll

    IronPython.Modules.dll

    IronRuby.dll

    IronRuby.Libraries.dll

    IronRuby.Libraries.Yaml.dll

    Microsoft.Scripting.dll

  • Pinal Bhatt 298 posts 390 karma points
    Mar 01, 2011 @ 16:16
    Pinal Bhatt
    0

    but now i am getting error in another assembly

    System.Exception: Unable to load one or more of the types in assembly 'Microsoft.Dynamic, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Exceptions were thrown:
    System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Scripting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

  • Pinal Bhatt 298 posts 390 karma points
    Mar 01, 2011 @ 16:20
    Pinal Bhatt
    0

    After deleting Microsoft.Dynamic.dll, i am getting following error when i try to save as xslt file:

    Error occured
    System.Exception: Unable to load one or more of the types in assembly 'Microsoft.Scripting.Debugging, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Exceptions were thrown:
    System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Scripting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
    System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Scripting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
    System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Scripting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
    System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Scripting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
    System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Scripting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
    System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Scripting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' 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)

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 01, 2011 @ 16:36
    Jan Skovgaard
    0

    Hi Pinal

    What happens if you paste the Microsoft.Dynamic.dll back in and have a look at the xsltExtensions.config file in the config folder? Does this file look allright or are there some weird references et in there?

    (It's a long shot, I know...but sometimes things gets messed up, right? :))

    /Jan

  • Pinal Bhatt 298 posts 390 karma points
    Mar 01, 2011 @ 16:41
    Pinal Bhatt
    0

    My xsltExtensions.config looks like this:

    <?xml version="1.0" encoding="utf-8"?>
    <XsltExtensions>
      <!--
      This file is used to register 3rt party xslt extensions (methods you can execute from xslt, like umbraco.library:NiceUrl)
      <ext assembly="assemblyName" type="assemblyName.namespace.type" alias="custom">
      -->
      <ext assembly="umbraco.editorControls" type="umbraco.editorControls.tags.library" alias="tagsLib">
      </ext>
      <ext assembly="Runway.Blog" type="Runway.Blog.BlogLibrary" alias="BlogLibrary">
      </ext>
    </XsltExtensions>

    And bringing back Microsoft.Dynamic.dll  gives following error:

    System.Exception: Unable to load one or more of the types in assembly 'Microsoft.Dynamic, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Exceptions were thrown:
    System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Scripting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

  • Arnold Visser 418 posts 778 karma points hq c-trib
    Mar 01, 2011 @ 20:06
    Arnold Visser
    0

    Our XSLT (extention) files do break as well... Ran fine with the Beta... (fresh install of 4.7 RC)

  • Niels Hartvig 1951 posts 2391 karma points c-trib
    Mar 01, 2011 @ 22:33
    Niels Hartvig
    0

    @arnold: Could you post steps to reproduce, please? Do you get these on a fresh install with starter kits or after installing specific packages/addos?

  • Pinal Bhatt 298 posts 390 karma points
    Mar 01, 2011 @ 22:56
    Pinal Bhatt
    0

    Hey Niels:

    FYI - after putting following files back, everthingworks file:

    Is their any harm in putting these files back?

    • IronPython.dll
    • IronPython.Modules.dll
    • IronRuby.dll
    • IronRuby.Libraries.dll
    • IronRuby.Libraries.Yaml.dll
    • Microsoft.Scripting.dll
    • Microsoft.Dynamic.dll

  • Niels Hartvig 1951 posts 2391 karma points c-trib
    Mar 01, 2011 @ 22:59
    Niels Hartvig
    0

    @pinal none at all. I could imagine that Microsoft.Dynamic would be enough - care to try.

    I'll investigate further of course. Looks like it only happens on sites with xslt extensions using the xsltext attribute. Can anyone confirm?

  • Pinal Bhatt 298 posts 390 karma points
    Mar 01, 2011 @ 23:09
    Pinal Bhatt
    0

    As mentioned above : after bringing back Microsoft.Dynamic.dll i get following error while saving xslt file

    System.Exception: Unable to load one or more of the types in assembly 'Microsoft.Dynamic, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Exceptions were thrown:
    System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Scripting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

    Furhter more when i upgraded my site to 4.7 beta, i had similar issue which i resoved by deleting following files and then after that everyhting was fine in 4.7 beta. (http://our.umbraco.org/forum/getting-started/installing-umbraco/17798-XSLT-Macros-not-getting-rendered-after-upgrading-to-47-beta)

    umbraco.MacroEngines.Legacy.dll
    RazorEngine.Core.dll
    RazorEngine.Templates.dll



  • Niels Hartvig 1951 posts 2391 karma points c-trib
    Mar 01, 2011 @ 23:11
    Niels Hartvig
    1

    It's due to references in the macroEngines project. I'll see how much is needed after the Iron bits was removed. The solution is to add the assemblies but a more sustainable fix (and RC2) is coming tomorrow!

  • Pinal Bhatt 298 posts 390 karma points
    Mar 01, 2011 @ 23:13
    Pinal Bhatt
    0

    ok thanks Niels, may be for today i will put these .dlls back and wait for tomorrow's RC2.

  • Arnold Visser 418 posts 778 karma points hq c-trib
    Mar 02, 2011 @ 08:22
    Arnold Visser
    0

    build a new package that seems to be ok for now :)

  • Carsten Johannesen 35 posts 55 karma points
    Mar 02, 2011 @ 10:28
    Carsten Johannesen
    0

    Experiencing the same problems. Followed the recommendations above trying to remove dll's and ending up adding them all back in but with no luck

    I have also downloaded the microsoft.scripting.extensionattributes.dll but that just reults in another error...

    I think I will have to wait for the RC2 ...

    well this build wasn't all that stable... ;-)

     Btw the install instructions states:

  • Delete /bin/Microsoft.Scripting.dll, /bin/Iron.dll, /bin/RazorEngine.dll
  • does that actually mean delete ALL micorsoft.scripting***.dll's - ALL Iron***.dll's and ALL RazorEngine related dll's

    In my case that would be:

    Microsoft.Scripting.dll, Microsoft.Scripting.Debugging.dll, Microsoft.Scripting.Core.dll

    IronRuby.Libraries.dll, IronRuby.Libraries.Yaml.dll, IronRuby.dll, IronPython.dll, IronPython.Modules.dll

    RazorEngine.Core.dll, RazorEngine.Templates.dll

    When doing that I get an error saving any xslt template stating :

    Error occured

    System.Exception: Unable to load one or more of the types in assembly 'Microsoft.Dynamic, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Exceptions were thrown:
    System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Scripting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Copy Link
  • Niels Hartvig 1951 posts 2391 karma points c-trib
    Mar 02, 2011 @ 14:50
    Niels Hartvig
    0

    The people in this thread that have issues, could you please post the entire contents of your /bin folder as when the problem occured (not after copying in random dlls (for instance - copying in the microsoft.scripting.extensionattributes.dll will only create a mess - it's a .NET 3.5 assembly and isn't used in the latest version of Umbraco(!))

    The faster the better to get this issue nailed!

    Copy Link
  • Pinal Bhatt 298 posts 390 karma points
    Mar 02, 2011 @ 14:59
    Pinal Bhatt
    0

    @Niels - hey you want just names of all the dlls in bin folder or you want zip of whole bin folder? If you want zip on what email we can mail or where we can post zip file?

    Copy Link
  • Niels Hartvig 1951 posts 2391 karma points c-trib
    Mar 02, 2011 @ 15:02
    Niels Hartvig
    0

    Just a list of dlls :)

    Copy Link
  • Carsten Johannesen 35 posts 55 karma points
    Mar 02, 2011 @ 15:06
    Carsten Johannesen
    0

    ok here goes :-)

    Copy Link
  • Pinal Bhatt 298 posts 390 karma points
    Mar 02, 2011 @ 15:06
    Pinal Bhatt
    0

    here is the list of my dlls:(please note that deleted files(in bold) have .del extension)

    03/01/2011  01:21 PM             5,632 App_Browsers.dll
    03/01/2011  01:21 PM             4,096 App_global.asax.dll
    02/28/2011  08:32 PM           118,784 businesslogic.dll
    02/16/2011  11:03 AM            81,920 ClientDependency.Core.dll
    02/28/2011  08:32 PM           520,192 cms.dll
    02/28/2011  08:32 PM            50,176 controls.dll
    02/16/2011  11:03 AM           114,688 CookComputing.XmlRpcV2.dll
    02/16/2011  11:03 AM            83,456 Examine.dll
    02/16/2011  11:03 AM            90,112 HtmlAgilityPack.dll
    02/16/2011  11:03 AM           192,512 ICSharpCode.SharpZipLib.dll
    02/11/2011  10:22 AM           118,272 imagegen.dll
    02/28/2011  11:21 AM            24,576 interfaces.dll
    02/16/2011  10:03 AM         1,496,408 IronPython.dll.del
    02/16/2011  10:03 AM           451,928 IronPython.Modules.dll.del
    02/16/2011  10:03 AM           924,488 IronRuby.dll.del
    02/16/2011  10:03 AM           683,336 IronRuby.Libraries.dll.del
    02/16/2011  10:03 AM           148,296 IronRuby.Libraries.Yaml.dll.del
    02/16/2011  11:03 AM           741,376 Lucene.Net.dll
    01/21/2011  01:05 PM            39,936 MA.Umbraco.DataTypes.RepeatableCustomContent.v2.dll
    02/16/2011  11:03 AM            11,264 Microsoft.ApplicationBlocks.Data.dll
    02/16/2011  10:03 AM           952,152 Microsoft.Dynamic.dll.del
    10/26/2010  09:20 AM           334,648 Microsoft.Practices.EnterpriseLibrary.Common.dll
    10/26/2010  09:20 AM           166,712 Microsoft.Practices.EnterpriseLibrary.Data.dll
    10/26/2010  09:20 AM            27,448 Microsoft.Practices.ServiceLocation.dll
    04/16/2010  06:42 AM           133,944 Microsoft.Practices.Unity.dll
    04/16/2010  06:42 AM           125,752 Microsoft.Practices.Unity.Interception.dll
    02/16/2011  10:03 AM            58,712 Microsoft.Scripting.Debugging.dll
    02/16/2011  10:03 AM           166,744 Microsoft.Scripting.dll.del
    02/18/2011  11:00 AM            71,016 Microsoft.Web.Helpers.dll
    02/23/2011  11:00 AM            45,416 Microsoft.Web.Infrastructure.dll
    02/16/2011  11:03 AM           266,240 MySql.Data.dll
    01/30/2011  04:45 AM           340,480 Newtonsoft.Json.dll
    01/12/2011  08:23 AM            12,288 Nibble.Umb.ZipUpload.dll
    01/15/2011  03:07 AM            10,752 Our.Umbraco.Tree.Config.dll
    01/15/2011  03:08 AM            11,776 Our.Umbraco.Tree.RobotsTxt.dll
    01/31/2011  09:09 AM             7,680 PBDesk.Business.Facebook.dll
    02/16/2011  10:27 AM             8,192 PBDesk.Umbraco.Extension.dll
    02/08/2011  01:01 PM             9,216 PBDesk.Umbraco.Helper.dll
    01/31/2011  09:09 AM            10,240 PBDesk.Utilities.dll
    01/15/2011  02:28 AM            46,592 Runway.Blog.dll
    02/18/2011  11:00 AM           130,408 System.Web.Helpers.dll
    02/18/2011  11:00 AM           178,536 System.Web.Razor.dll
    02/18/2011  11:00 AM            25,960 System.Web.WebPages.Deployment.dll
    02/18/2011  11:00 AM           136,552 System.Web.WebPages.dll
    02/18/2011  11:00 AM            37,224 System.Web.WebPages.Razor.dll
    02/16/2011  11:03 AM           192,512 TidyNet.dll
    01/29/2011  05:27 AM            18,432 tswe.log.dll
    02/16/2011  11:04 AM           170,496 umbraco.DataLayer.dll
    03/01/2011  01:21 PM           774,144 umbraco.dll
    03/01/2011  01:21 PM           266,240 umbraco.editorControls.dll
    03/01/2011  01:21 PM            30,208 umbraco.Linq.Core.dll
    03/01/2011  01:21 PM            91,136 umbraco.MacroEngines.dll
    02/28/2011  08:32 PM            24,576 umbraco.macroRenderings.dll
    02/28/2011  08:32 PM            31,232 umbraco.providers.dll
    03/01/2011  01:21 PM            45,568 umbraco.XmlSerializers.dll
    02/16/2011  11:03 AM            32,256 UmbracoExamine.dll
    02/16/2011  11:03 AM            22,528 UrlRewritingNet.UrlRewriter.dll

    Copy Link
  • Niels Hartvig 1951 posts 2391 karma points c-trib
    Mar 02, 2011 @ 15:12
    Niels Hartvig
    2

    @Carsten: Please try to remove umbraco.macroEngines.legacy and microsoft.dynamic (both left overs from old installs)

    Copy Link
  • Pinal Bhatt 298 posts 390 karma points
    Mar 02, 2011 @ 15:14
    Pinal Bhatt
    0

    Hey to my surprise, i forget to delete Microsoft.Scripting.Debugging.dll.  After deleting this file, looks like site is working fine.

    Copy Link
  • Niels Hartvig 1951 posts 2391 karma points c-trib
    Mar 02, 2011 @ 15:16
    Niels Hartvig
    1

    @Arnold: Could you post your contents? So far the XSLT ext related issues seems to be coming from upgrades with old dlls in the bin folder. I haven't been able to reproduce the errors even with XSLT Search which uses the [XSLTExtension] attribute

    Copy Link
  • Pinal Bhatt 298 posts 390 karma points
    Mar 02, 2011 @ 15:20
    Pinal Bhatt
    1

    Here is the list of dll files i deleted from old installation to make work 4.7 beta

    RazorEngine.Core.dll
    RazorEngine.Templates.dll
    umbraco.MacroEngines.Legacy.dll

    And below is the list of files i deleted from old installation to make work 4.7 RC1

    IronPython.dll
    IronPython.Modules.dll
    IronRuby.dll
    IronRuby.Libraries.dll
    IronRuby.Libraries.Yaml.dll
    Microsoft.Dynamic.dll
    Microsoft.Scripting.dll
    Microsoft.Scripting.Debugging.dll

    Copy Link
  • Carsten Johannesen 35 posts 55 karma points
    Mar 02, 2011 @ 15:24
    Carsten Johannesen
    0

    @Niels

    Removed both dll's - no luck :-(

    now when saving xslt

    System.IO.FileNotFoundException: Could not load file or assembly 'App_Code' or one of its dependencies. The system cannot find the file specified.
    File name: 'App_Code'

    Copy Link
  • Arnold Visser 418 posts 778 karma points hq c-trib
    Mar 02, 2011 @ 15:26
    Arnold Visser
    0

    @Niels, I did some test, in which I could get the xslt working, I did upgrade (1.03 to 1.07!) packageactions dll, so the problem seemed to be there not the RC itself :)

    Copy Link
  • Niels Hartvig 1951 posts 2391 karma points c-trib
    Mar 02, 2011 @ 15:27
    Niels Hartvig
    0

    @Carsten: Thanks for hanging in with me :-) Could I ask you to add the symbol files to your /bin folder - downloadable from the 4.7RC download page - and copy in the full exception/error stack?

    Copy Link
  • Niels Hartvig 1951 posts 2391 karma points c-trib
    Mar 02, 2011 @ 15:28
    Niels Hartvig
    0

    @Arnold: Just to verify - does this mean that you *don't* have the problem anymore in 4.7RC?

    Copy Link
  • Arnold Visser 418 posts 778 karma points hq c-trib
    Mar 02, 2011 @ 15:29
    Arnold Visser
    0

    @Niels nope! Did 3 new installs and all is fine now :) Now you can just slap me for not thinking about that dll.

    Copy Link
  • Niels Hartvig 1951 posts 2391 karma points c-trib
    Mar 02, 2011 @ 15:31
    Niels Hartvig
    0

    @arnold: Out of curiosity - any chance that you can find the exception messages from the old dll? I'm curious to see if it's related to anything I could fix in the core. I've also just committed PropertyType[] PropertyTypes { get; } back to the TabI interface and marked it obsolete. It was only fixed in the Tab class (duh!). Will be in for RC2

    Copy Link
  • Jonas Eriksson 930 posts 1825 karma points
    Mar 02, 2011 @ 15:33
    Jonas Eriksson
    0

    We're having the same errors, but with the help above it now seem to be related to a 3rd party dll, continuing with that tomorrow morning.

    Copy Link
  • Arnold Visser 418 posts 778 karma points hq c-trib
    Mar 02, 2011 @ 15:33
    Arnold Visser
    0

    @Niels, will take a look if I can find it. I found out about the tab class, was planning about a new issue report ;)
    That would be the last thing to make a lot of package installer code work in both 4.5.2 and 4.7 :)

    Copy Link
  • Carsten Johannesen 35 posts 55 karma points
    Mar 02, 2011 @ 15:34
    Carsten Johannesen
    0

    @Niels

    Copied all filles from symbolFiles.zip to my bin

    complete error message when saving xslt

    System.IO.FileNotFoundException: Could not load file or assembly 'App_Code' or one of its dependencies. The system cannot find the file specified.
    File name: 'App_Code'
    at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
    at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
    at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks)
    at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
    at System.Reflection.Assembly.Load(String assemblyString)
    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)

    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

    Copy Link
  • Pinal Bhatt 298 posts 390 karma points
    Mar 02, 2011 @ 15:36
    Pinal Bhatt
    0

    @Niels : One more major change i observed from 4.7beta to 4.7RC1 - That is macroScripts folder. In beta my .razor files were under ~/python folder and in RC1 i needed to move all .razor files from "python" folder to "macroScripts". May be you can mention this in upgrade instructions.

    Copy Link
  • Thomas Höhler 1237 posts 1709 karma points MVP
    Mar 02, 2011 @ 15:45
    Thomas Höhler
    0

    I have upgraded our intranet in an testinstance from 4.5.2 to 4.7 RC

    Here is a diff from the bin folder

    our xslts are working without problems

    hth, Thomas

    Copy Link
  • Thomas Höhler 1237 posts 1709 karma points MVP
    Mar 02, 2011 @ 15:46
    Thomas Höhler
    0

    btw: we have some XsltExtensions (especially to access the AD) in use

    Thomas

    Copy Link
  • Niels Hartvig 1951 posts 2391 karma points c-trib
    Mar 02, 2011 @ 15:54
    Niels Hartvig
    0

    @Carsten: One last thing (hopefully!) - could you copy the contents of /config/xsltExtensions.config and a list of files in your /app_code folder

    Copy Link
  • Carsten Johannesen 35 posts 55 karma points
    Mar 02, 2011 @ 16:01
    Carsten Johannesen
    0

    @Niels

    xsltExtensions.config:

    <?xml version="1.0" encoding="utf-8" ?>
    <XsltExtensions>
      <!--
      This file is used to register 3rt party xslt extensions (methods you can execute from xslt, like umbraco.library:NiceUrl)
     <ext assembly="assemblyName" type="assemblyName.namespace.type" alias="custom">
      -->
    </XsltExtensions>

    files in my app_code folder (none active :-):

    Copy Link
  • Carsten Johannesen 35 posts 55 karma points
    Mar 02, 2011 @ 16:12
    Carsten Johannesen
    0

    @Niels

    I actually read the contents of the xsltExtensions.config and noted something in the comment:

    the umbraco.library:NiceURL function IS being used in the xslts on my site - so maybe that is the issue?

    I have never changed this file deliberately though... (only thru upgrades and packages maybe...)

     

    Copy Link
  • Niels Hartvig 1951 posts 2391 karma points c-trib
    Mar 03, 2011 @ 10:46
    Niels Hartvig
    0

    @Carsten: Finally found the issue. If you delete all files in the App_Code it'll work.

    The reason is that there's only files with non-valid filextensions in your /App_Code (*.old) which of course means .NET won't try to compile them. However, Umbraco just checks if there's files in the folder and then assume that there'll be an App_Code assembly to reference. I've fixed this for 4.7 final, but the solution now is to remove those files.

    Copy Link
  • Jonas Eriksson 930 posts 1825 karma points
    Mar 03, 2011 @ 10:48
    Jonas Eriksson
    0

    Good to know, how about subfolders in App_Code? We have one cs-folder and one vb-folder.

    Copy Link
  • Carsten Johannesen 35 posts 55 karma points
    Mar 03, 2011 @ 10:55
    Carsten Johannesen
    0

    @Niels

    Yes now it works :-)

    Weird but now I know and thnx for your effort - greatly appreciated :-)

    Carsten

    Copy Link
  • Mila 60 posts 79 karma points
    Jan 25, 2012 @ 12:47
    Mila
    0

    I have gotten kind of the same problem. When I try to publish my page I'm getting the follow error:

    Error reading XSLT file: \xslt\umbTopNavigation.xslt       

    And When I Try to create a XSLT File, I'm getting another 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, please?

    Copy Link
  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jan 28, 2012 @ 00:53
    Jan Skovgaard
    0

    Hi Mila

    Is this happening in the backoffice when you're trying to save a new XSLT file? If so...does it also fail in the frontend? And does it happen with all your xslt files?

    Then check to see if your xsltExtensions.config file is correct - if you have made a custom XSLT extension it not only needs to be placed in the bin folder it should also be registered in this file.

    If this file is ok, then this could be caused by some dll's - Must admit I can't quite remember, which dll's it is but I've seen others have the issue when they upgraded from earlier versions of Umbraco - so if you can ellaborate a bit about if this has been the case, then please provide some more information - it'll be easier to help you out :)

    /Jan

    Copy Link
  • Mila 60 posts 79 karma points
    Feb 14, 2012 @ 14:40
    Mila
    0

    Hi Jan!

    thank you for your help :)

    I fixed my problem, I don't remeber how I did it, sorry about that :| but it's working fine now :)

    Cheers,

    Mila

    Copy Link
  • Please Sign in or register to post replies

    Write your reply to:

    Draft