I have this code:
sqlCommand.Parameters.Add(new SqlParameter("@Title", "Title"));
and I'm receiving the error:
System.NullReferenceException: Object reference not set to an instance of an object.
Why? That's not the only Parameter that isn't working. Everything else works fine (the database, the connection string).