Found solution: I had typo in my view, ViewBag.Typo <– this caused the error, but the debugger placed the exception at a irrelevant place.
Found solution: I had typo in my view, ViewBag.Typo <– this caused the error, but the debugger placed the exception at a irrelevant place.