Copied to clipboard

Flag this post as spam?

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


  • Nic 4 posts 24 karma points
    Aug 26, 2011 @ 03:37
    Nic
    0

    Relative Path.

    Hello,

    I've installed uBlogsy and really liking it so far.

    I'm currently having issues getting uBlogsy to work nicely under a relative path.

    In the umbraco admin interface, when I try to click on a post, or try to create a new post I get the following error:

     

    Failed to map the path '/usercontrols/uTagsy/settings.json'.

     

    The problem lies in the DLL file for uBlogsy.  The FILE contstant is not relatively pathed:

     

    Namespace: uTagsy.Web.usercontrols.uTagsy.datatypes.uTagsy
    private const string FILE = "/usercontrols/uTagsy/settings.json";

     

    Can you help me by allowing this path to be relative?   I'm not sure if other classes in the DLL are affected as well.

    Thanks.

  • Rich Green 2246 posts 4008 karma points
    Aug 26, 2011 @ 08:42
    Rich Green
    0

    Hey,

    Seems like you've already solved it.

    I'm assuming you would just need to change the line to

    private const string FILE = "~/usercontrols/uTagsy/settings.json";

    Then rebuild the source?

    Rich


  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Aug 27, 2011 @ 16:47
    Anthony Dang
    0

    Hi Nic

    I'm not quite sure what you mean by "relative path". The uTagsy data type files should always be under the /usercontrols/uTagsy/ folder. 

     

  • Nic 4 posts 24 karma points
    Sep 05, 2011 @ 06:35
    Nic
    0

    I managed to rebuild the DLL with the changes using an open source version of uBlogsy.    Didn't realise there was an open source version.   I was using .NET Reflector to view the source of the DLL file, which is why I made my original post.

    Anthony, I require the use of relative path during development.   I have uBlogsy installed within an umbraco website.  During development, I have the website hosted under "http://development-server/website/".   With uBlogsy, the DLL calls the path "/usercontrols/uTagsy/" from "http://development-server/" instead of "http://development-server/website", which is causing errors. 

    Perhaps you could look at giving uBlogsy support under relative paths, as I'm sure others will probably run with the same issue in the future.

    Cheers for the help guys.

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Sep 12, 2011 @ 17:46
    Anthony Dang
    0

    ah now I get what you mean

    ublogsy will work fine under relative paths...utagsy wont.

    you can replace the tag control with the standard umbraco one if you like... i just made my own because i wanted it.

Please Sign in or register to post replies

Write your reply to:

Draft