Question

Some .NET Framework components cannot be found with "Choose Items"

One of our customers is inquiring why some .NET Framework components cannot be found with "Choose Items" in Toolbox area.

For example, Dictionary class in System.Collections.Generic namespace cannot be found in "mscorlib, Version=2.0.0.0" or in "mscorlib, Version=4.0.0.0", though it definitely exists in mscorlib.dll.

Any points to be noted to this question?

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Group Tags

Correct Answer
July 10, 2018 - 3:57pm

Upon reviewing the associated SR, it was discovered that upgrading to 8.0.1096 has resolved this.

If you have a similar issue, please upgrade your software.

Thanks!

Comments

Keep up to date on this post and subscribe to comments

Pega
November 8, 2017 - 7:22pm

You might need to ensure that the framework that you're trying to reference exists on the machine.

November 9, 2017 - 9:22am
Response to grona

According to the following URL, .NET Framework 2.0 or later contains the Dictionary class:
https://msdn.microsoft.com/en-us/library/x8bctb9c(v=vs.110).aspx?cs-save-lang=1&cs-lang=csharp

I tried specifying Assembly path to point .NET Framework version 4.6.1's mscorlib.dll as follows:
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\mscorlib.dll

But the Dictionary class cannot be found here. Probably I'm missing something. Could we know how to navigate to the Dictionary class in this case?

 

 

Pega
November 9, 2017 - 9:37am

When you go to the Pega Robotics Static Members tab you get only static methods.  A Dictionary requires an instance.  To create an instance of the Dictionary class use the Add Constructor for Type on the toolbar.

November 10, 2017 - 4:29am
Response to jeffbadger

Thank you. I've finally got what you said.

Have created the movie file just for the other people's reference. Its included in the attachment.
 

***Moderator Edit-Vidyaranjan: Removed Box url and updated content***

 

November 15, 2017 - 1:15am
Response to kanam

After adding the Dictionary to the Automation as in the movie, every operations such as adding Properties or Methods results in the errors such as:

"Object reference not set to an instance of an object.":

"Value cannot be null. / Parameter name: key":

How can we make use of this Dictionary component?

December 3, 2017 - 11:06pm
Response to kanam

Have filed SR-B95600.

July 10, 2018 - 3:57pm

Upon reviewing the associated SR, it was discovered that upgrading to 8.0.1096 has resolved this.

If you have a similar issue, please upgrade your software.

Thanks!

Marissa | Community Moderator | Pegasystems Inc.