You're not trying that from within msfconsole are you? Because that would be the wrong place to do it - msfpayload is a program like msfconsole is, and both should be started from the command line.
I'm just playing a hunch here.
Also I think this would have been better supported in the Newbie area, rather than here.



