Copied to clipboard

Flag this post as spam?

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


  • Zac 238 posts 539 karma points
    May 28, 2010 @ 17:00
    Zac
    0

    All xslt files are now failing after attempting to uninstall package PDCalendar

    Hi All,

      Hopefully someone can help with this one because I'm stumped.  I tried to upgrade the PDCalendar package on my site.  After attempting to upgrade it, every xslt file on my site is now failing.  I noticed it created two versions of the package, so I tried to remove them both to remedy the issue (to no avail).

    I'm now receiving several "Error parsing XSLT file" on every page of my site.  
    Additionally, if I try to modify any xslt file in the developer section, I receive the error:

    System.IO.FileNotFoundException: Could not load file or assembly 'file:///C:\HostingSpaces\scrgorg\scrg.org\wwwroot\bin\PDCalendar.dll' or one of its dependencies. The system cannot find the file specified. 
    File name: 'file:///C:\HostingSpaces\scrgorg\scrg.org\wwwroot\bin\PDCalendar.dll' 
    at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) 
    at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) 
    at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) 
    at System.Reflection.Assembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, StackCrawlMark& stackMark) 
    at System.Reflection.Assembly.LoadFrom(String assemblyFile) 
    at umbraco.macro.GetXsltExtensions() 


    If I add the PDCalendar.dll file back to the site and try to save any XSLT file, I receive the error

    Error occured

    System.ArgumentException: 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.GetXsltExtensions() 
    at umbraco.macro.AddMacroXsltExtensions() 
    at umbraco.presentation.webservices.codeEditorSave.SaveXslt(String fileName, String oldName, String fileContents, Boolean ignoreDebugging)

    Any suggestions on how to fix this?  I've been looking through the database manually to see if I can fix this manually but can't find the source of the error.

  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    May 28, 2010 @ 17:11
    Morten Bock
    1

    Hi.

    Looks like the xslt extension did not get properly removed.

    Look in your /config/xsltExtensions.config file and see if there is a reference to the PDCalender dll file

    Also, you might need to check your xslt files if they have a reference to the extension at the top of the files. I'm not sure if this would cause an exception, but just to be sure.

  • Zac 238 posts 539 karma points
    May 28, 2010 @ 17:25
    Zac
    0

    You're a life saver.  Thanks Morten.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies