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...
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.
<?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>
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.
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?
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
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..
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.
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?
Hello Robert,
I have not "xsltConfig.config" file in Config Folder.. r u talking abtout "xsltExtensions.config"?
Thanks..
Hi,
Is there any changes required in installedPackages.config in App_Data/packages/installed??
Thanks..
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.
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?
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...
is working on a reply...