error msg while upgrading to atmega 328

This error i get when switching to 328 atmega then back to 168. now i get this error every time.

In the tools tab, which board selection have you made? must be the one that has 328 in it's name.

Lefty

yea the funny thing is if you select the wrong board it can cause this error. but i have the correct one selected. i think maybee my port settings are off but i cant find anywhere what the correct settings should be. maybee you could post those for me.