So memory 1 works and memory 2 will not work in any slot alone or with A?
Try only memory 1 in each slot. Then try only memory 2 in each slot.
If one of them works in all slots, and the does not work in any slot then it sounds like you have a bad memory stick.
Most memory manufactures have lifetime warranties. You could take them back to the shop you got them from, or you could contact the manufacturer. Tell the manufacturer that one of the sticks does not work. They should ask for some information and they will ask that you ship it to them. Sometimes they pay for shipping, most of the time you have to pay for it. Manufacturers seem to prefer UPS/FedEx over the postal system. Once the receive the non working memory stick they will ship a new/refurbished one back to you.
If your computer only detects 512 MB even with both installed its very unlikely to be a software issue.
One thing you can try is to reset the BIOS. Some motherboards have a jumper to reset it, if you cant find a jumper, unplug the computer and remove the coin sized battery. Give it a hour or two before you put the battery back and plug it back in again.
jumper: http://img405.imageshack.us/img405/7653/cmos.jpg Unplug the computer wait 10 seconds then move the jumper over. Wait another 10 seconds return the jumper to the original position and plug in and power up.
It is possible that your BIOS has some non default settings set, if they are reset back to default the system might not boot to the correct drive, or if there is a RAID setup you may encounter issues. If you do not know how to change these then I would suggest contacting the manufacturer for replacement memory or tech support that can guide you while your computer is off.