I am trying to dropdown list for asp.net core and I get the following null reference exception.
NullReferenceException: Object reference not set to an instance of an object.
Please find the stack trace attached. I tried attaching sample project but it wouldn't allow me.
I have spent a lot of time trying to figure out but failed. I am not sure if I am missing anything.
Any ideas or suggestions on how I can resolve this issue is really appreciated.