vrtjeff

Error on Symbol.CreateMarker()

Discussion created by vrtjeff on Dec 16, 2011
Latest reply on Jul 29, 2016 by howardpm1
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

Outcomes