Updated for StackExchange question to create master detail and formula fields

http://salesforce.stackexchange.com/questions/16618/unable-to-create-cus
tom-field-of-type-masterdetail-or-formulanumber-through-ap