I have a standalone application that needs to access the objects and database of a SF4.0 beta site project. I need to modify the contents of this project - i.e. add new pages, etc. and the best way to do it would be to use the methods provided by the SDK.
Now, after I copy and reference the files from the /bin folder of the site project, I try to create a new PageManager with this line:
var pManager = PageManager.GetManager();
and of course I get some sort of error, in this case:
The type initializer for 'Telerik.Sitefinity.Modules.Pages.PageManager' threw an exception.
My question is - what kind of context and initialization should I provide in order to use the Sitefinity "engine" in a standalone application and is that even possible?