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?
-
3Please post the exact code or script that you're having an issue with or it's going to be very difficult to help you.– Mike ReddenMar 28, 2012 at 1:41
-
Refer following link might be helpful for you: msdn.microsoft.com/en-us/library/hh528516.aspx– Ravi SutharAug 17, 2012 at 7:13
2 Answers
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