0

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?

2

2 Answers 2

1

You need to check whether you are the site collection administrator or not. That can be checked through central admin, even if that also is access denied, then you can check from the below script:

$rootSite = New-Object Microsoft.SharePoint.SPSite("$your siteurl")
$spWebApp = $rootSite.WebApplication 
foreach($site in $spWebApp.Sites)
{    
   foreach($siteAdmin in $site.RootWeb.SiteAdministrators)    
        {        Write-Host "$($siteAdmin.ParentWeb.Url) - $($siteAdmin.DisplayName)"    
        }    
   $site.Dispose()
}
$rootSite.Dispose()

Similarly you can use powershell script to deploy the wsps. The wsp will be deployed either globally or to the web application.

Use below script to deploy wsp:

Install-SPSolution -Identity <SolutionName> -WebApplication <URLname>

<SolutionName> is the name of the solution.

<URLname> is the URL of the Web application to which you want to deploy the imported solution

http://technet.microsoft.com/en-us/library/cc262995(v=office.14).aspx

0

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

1
  • Don't forget user solutions. A user solution will be deployed in the site collection.
    – Steve B
    Jul 16, 2012 at 8:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.