If you wanna gain mass as an ectomorph you need to:
1)stay away from cardio
2)lift reall heavy..( 4 sets 10-8-6-4 reps. increase weight each rep)
3) eat tons of calories.Try protein shakes that are designed for ectomorph.Those usually have like 600 calories per shake.
4) eat 6 times a day.(2 of those can be shakes.)
5)stay away from steroids and creatine and sh#t like that.

As an ectomorph if you do cardio you're using up your protein as energy since you don't have fat to use up.And since your muscles need lots of enery to grow..well that's where all the carbs come in(pasta,potatoes, rice)

Bulking usually happens in cycles. When you want to bulk you eat alot and lift heavy, after a few months when you're ready to lean out..You lift lighter and do more cario to drop the fat..
Hope this helps..

Sin