Dieting is a Three prong approach

Body Mind and Heart you just can't just go on a diet you have to set change your entire lifestyle.
Changing your eating habits is just one part of the plan you have to change your thinking and if you dont you are just seeing yourself up for failure.
Even if you get gastric bypass surgery you still have to change the way you eat surgery is not enough. 
I went as far as being treated for  Obsessive compulsive disorder unfortunately it did not help me not to say it might not help you.