Copied to clipboard

Flag this post as spam?

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


  • Brooke 13 posts 34 karma points
    Dec 11, 2012 @ 13:32
    Brooke
    0

    uBlogsy Config file and uTagsy files not found when using Virtual Directory

    Hi Anthony,

    As mentioned in the following post (http://our.umbraco.org/projects/starter-kits/ublogsy/ublogsy-razor-blog/35956-Latest-source-code) , when Umbraco is installed as a virtual directory, uBlogsy requires that that the uBlogsy.config file, uTagsy.json, and uTagsy UserControls are copied to the parent website's folders.

    Is there any work around for this, or will it require a code fix?  And if it does require a fix, is it something that you are looking into?  Of course having Umbraco related files split between website poses a problem when the two websites are modified independently.

    The the stack trace below for the error that is returned:

    [FileNotFoundException: Could not find file 'C:\MyWebsite\config\uBlogsy.config'.]
       System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +12899479
       System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath) +2481
       System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) +229
       System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) +107
       System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize) +139
       System.IO.StreamReader..ctor(String path, Encoding encoding) +20
       System.IO.File.InternalReadAllText(String path, Encoding encoding) +68
       uBlogsy.BusinessLogic.ConfigReader.get_Instance() +374
       uBlogsy.BusinessLogic.EventHandlers.UmbracoExtensions.Document_AfterSave(Document sender, SaveEventArgs e) +169
       umbraco.cms.businesslogic.web.SaveEventHandler.Invoke(Document sender, SaveEventArgs e) +0
       umbraco.cms.businesslogic.web.Document.Save() +336
       umbraco.cms.presentation.editContent.Save(Object sender, EventArgs e) +1596
       System.EventHandler.Invoke(Object sender, EventArgs e) +0
       umbraco.controls.ContentControl.saveClick(Object Sender, ImageClickEventArgs e) +400
       umbraco.controls.ContentControl.savePublish(Object Sender, ImageClickEventArgs e) +24
       System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +187
       System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +165
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3707

     

     

     

     

     

     

     

     

     

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Dec 30, 2012 @ 01:40
    Anthony Dang
    0

    A work around is to copy the config files to the locations noted in the error.

     

  • Brooke 13 posts 34 karma points
    Jan 08, 2013 @ 01:47
    Brooke
    0

    Hi Anthony,

    Yes. I have done that to get it to work.  Though I was wondering if there is a code fix in the works to make uBlogsy compatible with virtual directories? The parent website is actually another application so I didn't really want to mix the the configuration files together if I could avoid it.

     

     

Please Sign in or register to post replies

Write your reply to:

Draft