112 if (user == null)
114 LoggedInUser loggedInUser = new LoggedInUser();
115 loggedInUser.UserID = Convert.ToInt32(Session["ChatUserID"]);
116 loggedInUser.RoomID = Convert.ToInt32(lblRoomId.Text);
If you used the code from the article and redirected to a different roomid (on the querystring in the demo), but you forgot to update line 116 (above) to the correct roomid, that would cause the problem you describe. (note: it's taking the id from a form value instead of the session value) That it?