Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have a site that has been upgraded from 18.104.22.168 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?
Are you sure the passed nodid still exists after the upgrade?
Yes, i checked that.
I also republished the entire site.
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 ?
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.
Thanks, i will try that.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted