Not recognizing when plugged in

When my laptop (Dell Inspiron 1150) is plugged in the power management program doesn’t recognize it. It shows that the battery is charging but says that the ac adapter is not plugged in. I tried doing a search for the issue but didn’t find anything. Ideas?