I am trying out running BHOLD scripts, just simple stuff like adding a user to a role. I am using bscript.dll managed assembly instead of the .asmx web service. Reason being, the way the applicaiton is structured, I cannot directly reference
the web service for some reason and have to work around this by having a separate console application that calls the service (not preferred).
My script string looks like this (I hardcoded the ids for simplicity):
Dont know if you have found something already, but I used this piece of code, which works fine... the only difference might be the call to InitializeByAlias (or the Initialize), to set the acting user. Via the webservice, this is managed by the browser since
the browser sends across some user information (Windows Authentication).
You also don't have roles and or users with a name containing an ID-value like 17or 11? BHOLD needs a special prefix in these cases, to treat these values as string-values. Because roleid="XXX" might also contain a Role-Name, upon which BHOLD will look up
static void Main(string args)
ScriptProcessor sp = new ScriptProcessor();
sp.ExecuteScript("<functions><function name='roleadduser' roleid='1013' userid='9' /></functions>");