she screams every time I try to put her to sleep

My daughter is six months old, every time I try to put her for a nap or to sleep she starts screaming. I usually rock her to sleep and turn off the light in the room. If i turn on the light she's fine, what is going on???