Copied to clipboard

Flag this post as spam?

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


  • Mikael Mørup 297 posts 326 karma points
    Aug 15, 2011 @ 13:44
    Mikael Mørup
    0

    Updating old user controls

    I have updated a site from Umbraco 4.0.2.1 to 4.7.

    The update is mostly succesfull, but i have a bunch of .net usercontrols that doesen't work anymore.

    I use umbraco.cms.presentation and umbraco.presentation.nodeFactory to deal with nodes.

    I can see that the two namespaces are obsolete now, what should i use instead to deal with nodes from the nodefactory ? And what references should i add ?

    And what about the umbraco, umbraco.BusinessLogic, umbraco.cms.businesslogic.web namespaces, are they still valid ?

    Kind regards

    Mikael

     

     

     

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Aug 15, 2011 @ 16:57
    Lee Kelleher
    0

    Hi Mikael,

    The old API references are still valid.  The obsolete messages are there more as a notification that there is an improved API.  As far as I am aware the old API namespaces will still be available in Umbraco v4.x - there wont be removed.

    If you wanted to take advanage of the new NodeFactory API, it is under the "umbraco.NodeFactory" namespace, (in hte "umbraco.dll" assembly).

    Cheers, Lee.

  • Mikael Mørup 297 posts 326 karma points
    Aug 18, 2011 @ 13:04
    Mikael Mørup
    0

    Hi Lee thanks for the answer.

    It seems that after the upgrade to 4.7 all the usercontrols that use the node factory has stopped working.

    Allso when i open the solution for one of the controls in VS i get build errors for every place where i used Node (from umbraco.presentation.nodeFactory)

    So i tried to delete my references and add references to the new umbraco.dll in the /bin folder, but when i look at my reference it jus says

    <The system can not find the reference specified>

    and i can not use "Imports umbraco.nodefactory" in my code.

    So i have two questions:

    Why have my usercontrols stopped working, if they should work like before ?

    What am i doing wrong when adding a reference to he new umbraco.dll ?

    Thanks a lot

    Mikael

     

     

     

     

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Aug 18, 2011 @ 13:37
    Lee Kelleher
    0

    Hi Mikael,

    Quick check, have you upgraded your project/solution to use .NET 4.0?  (as of Umbraco 4.7.0, the assemblies are compiled against .NET 4.0 only).

    Cheers, Lee.

  • Mikael Mørup 297 posts 326 karma points
    Aug 18, 2011 @ 13:39
    Mikael Mørup
    0

    Ahh, that's probably my problem, i will check up on that in a split second.

    Thanks

    Mikael

Please Sign in or register to post replies

Write your reply to:

Draft