Copied to clipboard

Flag this post as spam?

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


  • Nilesh 4 posts 24 karma points
    Dec 09, 2011 @ 16:06
    Nilesh
    0

    Courier : The given path's format is not supported.

    I am trying to extract a revision of courier through courier API Umbraco.Courier.Core.Storage.RepositoryStorage class. 

    But I could not do it. I am getting following exception.

     

    "System.NotSupportedException was caught

    Message=The given path's format is not supported."

    Can anybody please point out what could be going wrong here?

    Thanks

    Nilesh

     

     

     

  • Per Ploug 865 posts 3491 karma points MVP admin
    Dec 12, 2011 @ 09:07
    Per Ploug
    0

    Hi Nilesh

    Could you be more specific on what you want to do? then I can write some sample code for you

    RepositoryStorage is only used to fetch a revision from HDD, to actually perform a extraction, you should have a look at Umbraco.Courier.Core.Extraction.RevisionExtraction

    /Per

  • Per Ploug 865 posts 3491 karma points MVP admin
    Dec 12, 2011 @ 09:08
    Per Ploug
    0

    This sample console application performs a extraction of a revision by running it in a directory containin the revision files, so you simply need to pass the path of the directory you wish to extract

    http://nightly.umbraco.org/UmbracoCourier/samples/Umbraco.Courier.ConsoleApplicationSource.zip

  • Nilesh 4 posts 24 karma points
    Dec 12, 2011 @ 10:56
    Nilesh
    0

    Hi Per,

    Thanks for the quick reply.

    My problem is resolved now. Actually i was pointing at the wrong directory. I realized it later and It just worked when I corrcted the path. Error I was getting was really misleading. 

    Thanks,

    Nilesh

  • Per Ploug 865 posts 3491 karma points MVP admin
    Dec 14, 2011 @ 14:40
    Per Ploug
    0

    Ah cool, will see if I can make a more telling error message, but currently it comes directly from .net IOs exceptions

  • 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