views:

68

answers:

2

I'm compiling a solution which runs fine on the PC but when trying to compile it for a different platform I get the following error:

"Unhandled Exception: System.ArgumentException: An item with the same key has already been added."

Anyone know what it could mean?

+1  A: 

This is a .NET exception message. Hmm, you definitely tagged it as C++. I'd guess you found a bug in your IDE or whatever tool you use to build your project.

Hans Passant
or he's writing a C++/CLI project, and neglected to tell us ;)
jalf
@jalf: We know he neglected to tell us already.
David Thornley
Yeah it turned out to be a bug in the compiler..
meds
A: 

Googling the error comes up with one mention of VB assemblies with classes that differ only in case (like, say, GetLine vs. Getline). This is perfectly legitimate in C++, but might not work on .NET or other frameworks.

I've found that copy-pasting error codes or large chunks of error messages into a Google search to be very usefu.

David Thornley