I have created 2 library for use in some case.
The first one is for manage of Windows Credential.
The second is for connecting to a specific VPN.
From this second Library, I need to call the first one in order to retrieve the credential. The run in UIPath studio this workin fine, but if I publish the second library, UIPath crash after compiler end with success:
In the “event viewer” I found 2 error (see below).
No, at the moment I don’t know how to check on other computers.
.NET runtime
Application: UiPath.ActivityCompiler.CommandLine.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
at .VbHostedCompiler.{dtor}(VbHostedCompiler*)
at .Microsoft.Compiler.VisualBasic.CompilerBridge.__vecDelDtor(Microsoft.Compiler.VisualBasic.CompilerBridge*, UInt32)
at Microsoft.Compiler.VisualBasic.HostedCompiler.!HostedCompiler()
at Microsoft.Compiler.VisualBasic.HostedCompiler.Dispose(Boolean)
at Microsoft.Compiler.VisualBasic.HostedCompiler.Finalize()
Hmm what about variable types? I guess your workflow will connect somewhere based on this:.
Are you keeping the password from deserialized Json as a SecureString type?
Not sure if this is the cause but I meet many issues related to this kind of mistakes.
Hi restrict the problem in “Deserialized JSON”.
If I comment this activity the publish works.
At this point the conflict is between Deserialized JSON and Get Credentials, individually they work, but together no.
Yes, I use SecurityString in Get Credential to retrieve the password.
In Deserialized JSON I get only the key in order to get user and password from Windows Credential.
Just an idea - do the libraries have the same dependencies installed?
As in - does the VPN library has all the dependencies used in the Credential library?
I restricted the problem further.
I have created a simple flow
DeserializedJSON
GetCredential
All works until I insert variable Newtonsoft.Json.Linq.JObject in deserializedJson activity.
If I leave empty the JsonObject in the Output section, the publish work.
But if I use the decodingJSON variable, the publish crash until I don’t remove the my GetCredential library…
Just an idea - do the libraries have the same dependencies installed?
As in - does the VPN library has all the dependencies used in the Credential library?
Is it also true for the namespaces?
I have chek all libraries, dependencies and version, are all the same.
In the get credential I don’t use DeserializedJSON, only UiPath official getSecureCredential in simple a flow to manage new credential if a key not found.
No, the issue remains.
In attached files the GetCredential library and the simple flow with DeserializedJSON and GetCredential.
Are only xaml files sufficient?
I have try to import the workflow (GetCredential.xaml) in the project and the publish works.
But in this case I don’t understand the library and the import through the package