I am getting the error from the application as following with SQL server 2005
\"Transaction count after EXECUTE indicates that a COMMIT or ROLLBACK
Check if you have Return command before COMMIT TRAN or ROLLBACK TRAN. This is usual error because Return command ends procedure and there is no chance to COMMIT it.
COMMIT TRAN
ROLLBACK TRAN
COMMIT