Copied to clipboard

Flag this post as spam?

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


  • Jignesh 31 posts 51 karma points
    Jan 31, 2012 @ 12:00
    Jignesh
    0

    An item with the same key has already been added. Error parsing XSLT file.

    Hello..

    I added Refactored Content Views package for ViewCount. Its working fine on local.

    when upload on Framework 4.0 server i found the issue

    An item with the same key has already been added.
      at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
      at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
      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)

    and Everywhere where there is macro for xslt found error... "Error parsing XSLT file:"

    Please help me to getting out from problem..

    when I delete 

    1. PackageActionsContrib.dll

    2. Refactored.UmbracoExtensions.dll

    3. Refactored.UmbracoViewCounter.dll

    then all working fine and ViewCount is not working...

    Thanks..

  • Robert Foster 459 posts 1820 karma points MVP 3x admin c-trib
    Jan 31, 2012 @ 12:17
    Robert Foster
    0

    Hi Jignesh,

    First thing to check:

    Make sure the xsltConfig.config  file isn't referencing the ViewCount library - this library is decorated with the XsltExtension attribute, so doesn't need to be registered in the config file as well.

    Rob.

     

  • Jignesh 31 posts 51 karma points
    Jan 31, 2012 @ 12:27
    Jignesh
    0

    Hi,

    Here is my xsltExtension.config file..

    <?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> 

    need to check any other file?

  • Jignesh 31 posts 51 karma points
    Jan 31, 2012 @ 12:33
    Jignesh
    0

    Hello Robert,

    I have not "xsltConfig.config" file in Config Folder.. r u talking abtout "xsltExtensions.config"?

    Thanks..

  • Jignesh 31 posts 51 karma points
    Jan 31, 2012 @ 14:23
    Jignesh
    0

    Hi,

    Is there any changes required in installedPackages.config in App_Data/packages/installed??

    Thanks..

  • Sam Moore 27 posts 112 karma points
    Jan 31, 2012 @ 14:42
    Sam Moore
    0

    I've had a similar issue. My solution was to restart the website (either by touching the web.config or in IIS) and that did the trick. if not, remove the suspect DLLs and add them back to the bin.

  • Robert Foster 459 posts 1820 karma points MVP 3x admin c-trib
    Feb 01, 2012 @ 02:08
    Robert Foster
    0

    You shouldn't need to touch anything package related.

    You could try uninstalling the package on the production server, then forcing a restart by modifying the web.config file and saving it, then re-install the package.

    Is the production version of the site a fresh copy, or did you update an existing website from changes to your local site?

  • Jignesh 31 posts 51 karma points
    Feb 01, 2012 @ 06:02
    Jignesh
    0

    Hi Robert,

    I already try uninstalling the package on production server and then again install it but nothing change still error shows.

    for "forcing a restart by modifying the web.config" what to do?? should i change anywhere in web.config for restart website?

    and on production server I update an existing website from changes that i do at local site..

    Thanks...

     

Please Sign in or register to post replies

Write your reply to:

Draft