MWLite.Symbology.LegendControl.Legend.GetLayer(...) returned null

how can i fix this?

Hello @linken, and welcome.

Could you provide more context regarding the error; show the code that leads up to it? It’s impossible to tell just from the exception what the problem may have been.

Thank you.
Jerry.

hello @jerryfaust
sorry in advance, I don’t really understand programming, I use the mapwingis v4.9.4.2 library with legend control from mapwingislite MapWindow Lite v1.0.5.0., I made a project based on what my teacher gave me, I just changed the SHP used and no error was found, but the program cannot be run. in that screenshot as i understand, it’s the code to name the SHP layer used