Want to say here I REALLY like this book!!
Getting this error when I run
Default.cshtml from the Level 1 folder at #13, page 108 Chapter 4.
NOTE: This error is generated from unaltered downloaded code after my typed in code failed...
Cannot perform runtime binding on a null reference
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: Microsoft.CSharp.RuntimeBinder.RuntimeBinderExcept ion: Cannot perform runtime binding on a null reference
Source Error:
Code:
Line 6: var i = 0;
Line 7: foreach(var color in Page.Colors) {
Line 8: <p style="background-color:@color;font-family:@Page.Fonts[i];">
Line 9: This paragraph is @color
Line 10: </p>