Using custom DLL in server scripts

Hi.

 

I'm trying to use custom libraries, but i cannot do that.

When I'm trying to deploy solution I got next error: "The type or namespace name 'library_name' does not exist in the namespace 'namespace' (are you missing an assembly reference?)".

 

Example library: System.Data.Oracle.dll (old version - 2.0.50727.3053)

I tried next steps to use DLLs:

1) add DLL to "Program Files\Metastorm\BPM\Deployment\CustomLib" and "Program Files\Metastorm\BPM\Designer\CustomLib" on local machine;

2) add DLL to "Program Files\Metastorm\BPM\Engine\dotnetbin\" on Metastorm server;

3) check on namespaces System.Data.OracleClient in Metastorm Options -> Scripting -> Namespaces.

 

Server script give me access to DLL, i write code with classes from DLL and then project validate successfully, but deployment cannot be done.

 

Maybe there's some details, unknown to me, how to work with external DLLs?

Tagged:

Comments

  • In previous versions you also had to retart the engine in order for it to see new libs.

  • We restarted engine, later on restarted virtual server, but there's no effect.

    Problem still very actual.

  • I have tested some more DLLs, but engine still cannot load them.

  • Are you using your local deployment service? Does the project actually validate, and then fail when you deploy? We had the same issue, but then had to drop the DLLs in the CustomLib folder of Deployment on the server as well, additionally to those on our local development machines. We use the server's deployment service though, not the local one. 

  • Problem was solved in3-4 days after I posted this question. I added DLL to Designer, Deployment, Engine folders on a server, next added DLL to local Designer directory. Checked on in namespeces. And then I could deploy solutions. Now I add DLL only that way and have no problems. We have separated servers: 1 for Engine and Deployment, and another one for Database.