It's not an error - it's a warning. But what it is saying is that the Parameters.Add method is depreciated - there is a more modern, better version - and that you should use that instead. As of the latest version of the documentation, the Add method is obsolete, which means that it could be removed from future versions of the framework. You shouldn't use it in new code as a result.
SqlParameter.Add is normally only used when you need a lot more control over what is going on, but it's a lot longer code. In this case, It's just a "completeness" thing:
cmd.Parameters.AddWithValue("@RollNumber", RollNumber);
Will fix it.