Given the following stack trace:
MESSAGE: Value cannot be null.Parameter name: key SOURCE: mscorlib TARGETSITE:
This exception happens if the dictionary key is null. As the built-in Dictionary class doesn't allow such keys, you might be using your own IDictionary-compatible class which allows null.
null
Dictionary
IDictionary