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 ?
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
Hi Mikael
Are you sure the passed nodid still exists after the upgrade?
/Jan
Yes, i checked that.
I also republished the entire site.
Mikael
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 ?
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
Thanks, i will try that.
is working on a reply...