Error 1 The type or namespace name 'presentation' does not exist in the namespace 'umbraco' (are you missing an assembly reference?)
I am using .Net 2.0 on some old umbraco site, and I can not use nodeFactory. Therefore I can not seem to reference a node from my usercontrol in C#. Any alternative to getting node properties before nodeFactory in .Net 2.0?
Running umbraco v 4.0.2.1 (Assembly version: 1.0.3560.29210)
I would like to access to nodes in c# codebehind. Any help is appreciated. I can't find any working examples of how to do this. Should nodeFactory be accessible? Am I doing something else wrong?
Hmm now i got it. Pressed the play button instead of build in visual studio. I did not know that that could do a big difference, but I guess I still have a lot to learn. Anyway now the reference work and i can use nodeFactory. Great! :)
umbraco.presentation.nodeFactory
Error 1 The type or namespace name 'presentation' does not exist in the namespace 'umbraco' (are you missing an assembly reference?)
Regards
Brian
Running umbraco v 4.0.2.1 (Assembly version: 1.0.3560.29210)
I would like to access to nodes in c# codebehind. Any help is appreciated. I can't find any working examples of how to do this. Should nodeFactory be accessible? Am I doing something else wrong?
Thanks
Brian
Hi Brian,
Did you add references to the cms.dll, businesslogic.dll and umbraco.dll to your project?
Hi Lennart
Yes i did.
Hmm now i got it. Pressed the play button instead of build in visual studio. I did not know that that could do a big difference, but I guess I still have a lot to learn. Anyway now the reference work and i can use nodeFactory. Great! :)
That's odd, nodeFactory should be accessible in that version.
Can you verify that all these dll files are available in the bin folder?
If they are, you might be facing a namespace collision: are there any double references? (its may also be worthwile checking the web.config)
Alright, glad you got it up and running :-)
Thanks for the effort Lennart, I hope I can repay you some day. :)
is working on a reply...