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 25, 2011 @ 09:58
    Mikael Mørup
    0

    Problem with document API after upgrade

    I have a site that has been upgraded from 4.0.4.2 to 4.7

    In a usercontrol i use this code:

    Dim d As New umbraco.cms.businesslogic.web.Document(some_node_id) and it used to work without problems.

    When i use it  in the upgraded site, it throws an exception with this message:

    No Document exists with Version 'fc2c48cc-e17f-48de-8cbb-35fd4b60f9be'

    I did convert my usercontrol to VS2010 using .net 4.0

    Does anybody know what is happening?

    Thanks

    Mikael


  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Aug 25, 2011 @ 21:34
    Jan Skovgaard
    0

    Hi Mikael

    Are you sure the passed nodid still exists after the upgrade?

    /Jan

  • Mikael Mørup 297 posts 326 karma points
    Aug 25, 2011 @ 21:41
    Mikael Mørup
    0

    Yes, i checked that.

    I also republished the entire site.

    Mikael

     

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

    I just did a check in the database. I checked the cmsVersion, cmsContent and cmsContent type tables and everything looks just as expected.

     

    Since this is a project that has been updated from VS2008 to VS2010 .net 4.0 i suspect that there could be sometghing wrong with my references or my imports ?

    Can someone please tell me whic references and imports to have in my project to use the document API ?

  • Rich Green 2246 posts 4008 karma points
    Aug 26, 2011 @ 09:12
    Rich Green
    0

    Hey Mikeal,

    Have a look at what Umbraco dll's are in your bin folder in your VS solution, then copy the same dll's over from your 4.7 install and rebuild.

    Rich

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

    Thanks, i will try that.

Please Sign in or register to post replies

Write your reply to:

Draft