In addition to the other answers here, if you’ve forgotten to put:
cmd.CommandType = CommandType.StoredProcedure;
Then you will also get this error.
In addition to the other answers here, if you’ve forgotten to put:
cmd.CommandType = CommandType.StoredProcedure;
Then you will also get this error.