charlestek (6) [Avatar] Offline
#1
Page 22, adding the line:

The current date is @ViewBag.CurrentDate.ToLongDateString()


to Index.cshtml gives the error

"Cannot perform runtime binding on a null reference"

Of course there is no intellisense because ?? ViewBag is a dynamic variable which I don't quite understand.