Rank: Newbie
Joined: 9/26/2007 Posts: 10
|
pArray = umbraco.cms.businesslogic.web.Document.MakeNew("heres a test article",dt, u, 1114).getProperties;
Guys im having a bit of a problem here - any help greatly appreciated
I can Update and Read using the umbraco api from my web application - the problem occurs when I try and create new content (see line at top). The same line works within another application which uses an Action Handler when placed in the bin folder of umbraco
The message I get is
The type initializer for 'umbraco.cms.businesslogic.datatype.controls.Factory' threw an exception.
The inner exception is {"Failed to map the path '/bin'."}
I've checked all the dlls in umbraco are also in my web form app, and they can Update and Read fine from c# code.
The crazy thing is that it seems to partly work, the UmbracoNode table has an entry for this newly created node, but I think theres a dependancy that I can't find. I spent the weekend on this problem..really tried to nail it but I've run out of clues.
Any suggestions welcome :cool:
Cheers
|
Rank: Newbie
Joined: 9/26/2007 Posts: 10
|
at the risk of looking like a complete turkey - I managed to solve it...
In Debug Mode in VS, the Update and Read methods work fine for me, I have to use its published URL to have create work for me.
so basically using the In built webserver fails on Create methods but IIS works fine - phew im happy.
Hope this is useful to someone
M :hmm:
|