If the sqlcommand name is not the same for the parameters, you will receive the following error: 'object reference not set to an instance of an object'.
Issue Details
If the sqlcommand name is not the same for the parameters you will receive the following error.
Object Reference object reference not set to an instance of an object