Click here to Skip to main content
15,891,253 members

Comments by Member 15189683 (Top 5 by date)

Member 15189683 6-Oct-22 10:13am View    
Ok, I found the error. Now it works. Thank you =)
Member 15189683 6-Oct-22 9:45am View    
The value in rawPorts is:
{System.Linq.Enumerable.<castiterator>d__97<system.management.managementbaseobject>}
Member 15189683 6-Oct-22 8:50am View    
I can't the error stop my code when try to do
var ports = searcher.Get().Cast<managementbaseobject>()
.ToDictionary(p => p["DeviceID"].ToString(), p => p["Caption"]);
Member 15189683 6-Oct-22 8:43am View    
I tried, but I got this error when started:
'Arduino.exe' (CLR v4.0.30319: Arduino.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\mscorlib.resources\v4.0_4.0.0.0_it_b77a5c561934e089\mscorlib.resources.dll'. Module was built without symbols.
Exception thrown: 'System.ArgumentException' in mscorlib.dll
An unhandled exception of type 'System.ArgumentException' occurred in mscorlib.dll
An item with the same key has already been added.
Member 15189683 5-Oct-22 9:47am View    
How should I do it?