Runtime Binder Exception

I am building the Room Scheduler from the example. I got the following error in the Index.aspx on the line -> scheduler._user_id = “<%= Model.User.UserId %>”;

RuntimeBinderException was unhandled by user code
Cannot perform runtime binding on a null reference

[code] [/code]

Any help would be appreciated.

Thanks,
Merv

Would someone please take a look at this? Need help asap.

Thanks,
Merv

Hi,
Looks like you have misplaced the bracket here: <% if(Request.IsAuthenticated){ %> <%} %> scheduler._user_id = "<%= Model.User.UserId %>"; scheduler._color = "<%= Model.User.color %>";
Model.User should be accessed only if the request is authenticated, so
the code must look like

<% if(Request.IsAuthenticated){ %> scheduler._user_id = "<%= Model.User.UserId %>"; scheduler._color = "<%= Model.User.color %>"; <%} %>