Error-Net.NetworkCredential is not defined when publish


Hi All,
when publish, error pops up. Net.NetworkCredential is not defined. and i cannot pushlish.
it seems like it’s linked to what i have done with password setting.
i can’t publish, but i can run the sequence without reporting any error.
could you please kindly help me out?

Thank you

it’s SAP. and expression is like.

@wason_ha,

Import the namespace System.Net.NetworkCredential from imports panel while the workflow is open.

Thanks,
Ashok :slight_smile:


Hi Ashok,
System.Net.NetworkCredential, is not available there. am i locating it wrongly?
Thank you

@wason_ha,

I see you have System.Net which is also sufficient.
Try Updating the UiPath.System.Activities package.
Even then it’s not fixed, try creating another workflow file. Sometimes these imports gets messed up for no reason.

Thanks,
Ashok :slight_smile:

Hi Ashok, i created a new one and it allows me to publish now😊. and one more question please, back to the “import panel” part, i think i didn’t know how to do it right. May i know where “imports panel” is and how to import?
Thank you

@wason_ha,

Great! Glad I was helpful.

Regarding how to import, ewe will have to search the desired namespace in import panel and just select the namespace from the suggestion. Once done the namespace will be listed in the imports panel. You were doing it correctly :+1:

Kindly close the thread by marking my answer as solution so it would be helpful to others as well.

Thanks,
Ashok :slight_smile:


Sir, last one please, so capture is showing where imports panel is, i found it right. Hypothetically, Net.networkcredential was there, when i typed into search box, it would be shown up. and i select, done. am i right?
thank you for being patient and answering me so many questions i had about operation details.
Thanks.

@wason_ha,

You are correct. Refer this for documentation about it.

Thanks,
Ashok :slight_smile:

1 Like

Thank you Gentleman.

1 Like

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