Barcode is not getting generated properly in asp.net

I have taken reference from HERE for generating barcode. I have gone through the code but what issue happening to me is. its simply generating a PNG image but not with the black and whiteline.

here is what is generates.

IMG

do let me know where I am going wrong.