The JavaScript and Silverlight APIs only support adding services to maps. Layer packages are just files and are not "web enabled." We are working to support turning layer packages into services, but this ability is not available at this time. At the current time, you need publish services (through ArcGIS Server) in order to view them in these APIs.
Thanks,
Mike