Error on Symbol.CreateMarker()

1127
1
12-16-2011 11:56 AM
JeffBradshaw1
New Contributor
I began experiencing an error in code that creates a symbol from a PNG file. It is noteworthy that this same code has worked from build 1200 through 1700, but recently began throwing an error without any direct modification.

The target folder and file have not changed or been moved. I saw a similar post from over a year ago, but there was no resolution that I could find. Has this been replicated anywhere?

Line (C#): pSymbol = ESRI.ArcGISExplorer.Mapping.Symbol.CreateMarker(sLocalFile);
Error: "Key cannot be null. Parameter name: key"
Stack Trace:
   at System.Collections.Hashtable.ContainsKey(Object key)
   at System.Collections.Hashtable.Contains(Object key)
   at ESRI.ArcGISExplorer.Mapping.SymbolCache.Init()
   at ESRI.ArcGISExplorer.Mapping.SymbolCache.AddLocalImage(Bitmap originalBitmap, String name, Boolean inMySymbols)
   at ESRI.ArcGISExplorer.Mapping.Symbol.CreateMarker(Bitmap bitmap, String name, Boolean inMySymbols)
   at ESRI.ArcGISExplorer.Mapping.Symbol.CreateMarker(String filepath)

Thanks!

- Jeff
0 Kudos
1 Reply
PhilipHoward1
New Contributor

Any luck resolving this issue? I'm running into a similar error message.

0 Kudos