I am trying to deploy a sitecollection with a content database attached to each site collection. I was able to deploy site collections with individual content databases for each sitecollection, unfortunately when I try to access the site collection, I get an Access Denied Notification. Even if I try to log in with the highest account, I am unable to log in. I am thinking it is because the sitecollection does not have a proper template attached or used when creating the site. Please tell me what I am doing wrong and how do I add a wsp file to a sitecollection that is being created?
WSPs aren't deployed to site collections but either globally or to Web Application.
If you want to deploy WSPs to Web Applications then you can use the Deploy method of SPSolution