Copied to clipboard

Flag this post as spam?

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


  • Connie DeCinko 931 posts 1160 karma points
    Nov 19, 2010 @ 23:56
    Connie DeCinko
    0

    umbraco.IO missing / not found

    I am trying to write a modified version of noNodes.aspx and have hit another road block.  There appears to be no way to reference umbraco.IO which apparently is needed by IOHelper.MapPath.

    How do I solve this?

     

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Nov 20, 2010 @ 07:40
    Richard Soeteman
    0

    The umbraco.IO namespace is located in the businesslogic.dll did you modified the source directly or did you create a seperate project? if you've created a seperate project make sure you reference the assemblies:

    • umbraco
    • businesslogic
    • cms

    Cheers,

    Richard

     

  • Connie DeCinko 931 posts 1160 karma points
    Nov 22, 2010 @ 15:47
    Connie DeCinko
    0

    I have all three referenced and Visual Studio is not finding the umbraco.io namespace. It finds the others I need.

     

  • Connie DeCinko 931 posts 1160 karma points
    Nov 22, 2010 @ 16:19
    Connie DeCinko
    0

    The code below fails to compile.  The IO in umbraco.IO does not exist in the umbraco namespace.

    using System;
    using System.Xml;
    using umbraco;
    using umbraco.BusinessLogic;
    using umbraco.cms.businesslogic;
    using umbraco.cms.businesslogic.web;
    namespace SBA.AZBar
    {
     public partial class noNodes : System.Web.UI.Page
     {
      protected void Page_Load(object sender, EventArgs e)
      {
       Server.ScriptTimeout = 100000;
       var cacheFile = umbraco.IO.IOHelper.MapPath("/App_Data/umbraco.config");
       var r = XmlReader.Create(cacheFile, new XmlReaderSettings() { DtdProcessing = DtdProcessing.Ignore });
       var d = new XmlDocument(); d.Load(r);
       var n = d.SelectSingleNode("//root");
       if (n.ChildNodes.Count != 0) return;
       Document.RePublishAll();
       library.RefreshContent();
      }
     }
    }
  • Jorge Ruiz Caro 9 posts 29 karma points
    Nov 25, 2010 @ 03:46
    Jorge Ruiz Caro
    0

    Hi Connie, the same issue, but when i use the VS 2010, but in the VS 2008 works perfect.

    Hope, helps.

    Jorge

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Nov 25, 2010 @ 08:16
    Richard Soeteman
    0

    Ah I know what happened, thanks Jorge. I the same once with the new install of my machine. I couldn't reference any Umbraco assembly. then I looked at the warnings and noticed that it needed the older (1.0) version of asp.net ajax. When I installed that it worked just fine. Just google on the warning that you see and it will point you to the correct download link.

    Hope this helps you both,

    Richard 

  • Jorge Ruiz Caro 9 posts 29 karma points
    Nov 26, 2010 @ 16:29
    Jorge Ruiz Caro
    0

    Thanks Richard, i'll take a look about the ajax issue.

    Jorge

  • Connie DeCinko 931 posts 1160 karma points
    Nov 29, 2010 @ 16:27
    Connie DeCinko
    0

    I also noticed that by default my project was not using the 4.0 version of the .NET framework.

     

Please Sign in or register to post replies

Write your reply to:

Draft