Nikon d5100 problem?

I've had my nikon d5100 for about 6 months now and today i bought a new lense af-s nikkor 50mm 1:1.4g and i noticed inside the lense there's 8 little silver dots and and my nikon there's 7 i put the lens it was all fine. When i took it out and put my original lense back on i went to view the pictures and it said "can't display file" i click to delete it and it said "this memory card can't be used card may be damaged insert another card" I'm afraid that the lense might have done something and damaged my camara since the 8 donts don't match my cam, what to do it has never done that since i got it but today the day i put that lense on. Someone help i don't know what to do i put in differents memory cards i Have and it says the same Thing! What do you think it might be? Is it damaged?
Added (1). *edit* thank-you i didn't know what those where called the camara is still pretty new to me. I still don't get why it would say that error.

Dots? Do you mean electrical contacts?
As long as your lens is an AF-S lens, it will work perfectly fine with your D5100
The memory card failure has NOTHING to do with the lens you are using.
Use one of your other memory cards, one that you have freshly formatted using the format feature on your camera.
What you seem to be comparing, lens use with card failure, would be like running out of fuel and blaming your cars tires. There's no correlation between the two