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 ?
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).
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 ?
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
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.
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
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.
Ahh, that's probably my problem, i will check up on that in a split second.
Thanks
Mikael
is working on a reply...