Hi all,
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):
string sc = "<functions><function name='roleadduser' roleid='17' userid='11' /></functions>";
When I try to run it (ScriptProcessor.ExecuteScript(sc)), it fails with the following error (no matter what I do with the string):
FuncName: roleadduser
Function: <function name="roleadduser" roleid="17" userid="11" />
5_Error converting data type nvarchar to int.
BUT (!!!) This exact same call works fine if I use the web service. Makes me think that something is messed up inside the ScriptProcessor class.
Has anyone encountered this kind of behavior before?
Thank you!
Ilya