Error Code 90161 Invalid provisioning profile
If you get this error, you probably don't have the correct type of Provisioning Profile. There's a few types of Provisioning Profiles, most notably are the "Development" and "Distribution" profiles. I suggest looking at your provisioning profiles, and if necessary recreate them.
You have to use App Store (not Ad-hoc) provisioning Profile while creating your .ipa in order to upload to App Store with Application Loader.
Try this, and see if that helps. Be sure to haul the new profiles in Xcode (or any other method you'd use) and edit your project's settings.