Error in secure string

Hi All,

I am getting following error below when converting to secure string . I tried this also

New System.Net.NetworkCredential(string.Empty, str_Token).Password

image
image

Hi @dutta.marina

Import the System.Runtime.InteropServices namesapce in the Import panel in UiPath Studio.

After importing you are getting issues then show us the expression what you have given in the assign activity.

If you are chaning the String datatype value to SecureString then use the below expression,

New System.Net.NetworkCredential("", Password_StringVar).SecurePassword

Hope it helps!!

Delete your existing activity, then add it back in, and type the expression manually - don’t copy/paste it - this way the imports will be done for you.

1 Like

Hi @dutta.marina

Check the below thread

@mkankatala
Trying to import the namespace but not getting any list of options

I am able to see in my studio, check the below image,

Just type System.runtime.interop then it will show.

Hope it helps!!

Don’t type namespace on the end. Just start typing System.Runtime.InteropServices and when you see it appear in the search results click it.

@mkankatala

I am getting the below error now

Get Google Token: Could not load file or assembly ‘BouncyCastle.Crypto, Version=1.9.0.0, Culture=neutral, PublicKeyToken=null’. The system cannot find the file specified.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.