Type 'System.Text.StringBuilder' is missing from assembly

Out of sudden I am getting following error:
BC31424: Type 'System.Text.StringBuilder' in assembly '246406c0-d756-45b5-96db-7190fe817a8c, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' has been forwarded to assembly 'System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'. Either a reference to 'System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' is missing from your project or the type 'System.Text.StringBuilder' is missing from assembly 'System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'.

Project type: library
Studio: 23.10.9
Robot: 23.10.0
UiPath.System.Activities: 23.10.6

Yesterday I created new activity in my library that is using StringBuilder.
I published the library and new activity in my project.
Tested and everything was okay.

Published to production and got error:
“No compiled code to run error BC30002: Type ‘StringBuilder’ is not defined. At line 3”

Now openning the library project I am getting error BC31424.

In Studio the project utilizing my library is still running fine.

:frowning:

done with the same UiPath Studio Version as in the past?

Yes, same version. No updates since yesterday.

I have tried solution from this post with no success

My bad :frowning:
I made a typo when trying to fix the runtime error:

New System.Text.StringBuilder.StringBuilder()

Cheers

Resolution of error

This problem was resolved by adding namespace to variable declaration in InvokeCode
Dim builder As System.Text. StringBuilder = New System.Text.StringBuilder()

1 Like

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