This is the scenario:
- All Site Collections have their own Content Database
- Site Collection A is Root Site Collection (created directly under Web Application = has exact same url as Web Application scA.domain.com). It is not Host Named Site Collection
- Site Collection B is Host Named Site Collection and its url is scB.domain.com
- I have my own
TopNavigationBar
with static nodes (manually added to it) and deployed by a empty SP item and a web scoped feature.
Following is the script to create the Web Application:
New-SPWebApplication -ApplicationPool $appPool -ApplicationPoolAccount $appPoolAccount -Name $name -DatabaseName $dataBaseName -Url $url -Port $port -HostHeader $hostHeader -AuthenticationMethod "Kerberos"
$app = Get-SPWebApplication "http://$hostheader"
$app.BrowserFileHandling = "Permissive"
$app.Update()
Site Collection A created by following:
New-SPContentDatabase -Name $dbName -DatabaseServer $dbServer -WebApplication $webAppUrl | out-null
New-SPSite -Url $url -OwnerAlias $domainAnduser -Name $name -Template $template -Language 1053 -ContentDatabase $dbName
Site Collection B created by following script:
New-SPContentDatabase -Name $dbName -DatabaseServer $dbServer -WebApplication $webAppUrl | out-null
$wapp = Get-SPWebApplication $webApplicationName
New-SPSite -Url $url -OwnerAlias $domainAnduser -HostHeaderWebApplication $wapp -Name $name -Template $template -Language 1053 -ContentDatabase $dbName
Now My problems:
for All Site Collection I need to log on always everytime I browse to them
When I browse to Site Collection B (Host Named one) it generates following error. it seems that it uses another Web.Config file or something.
System.Web.HttpException: The SiteMapProvider 'MyTopNavMapProvider' cannot be found. at System.Web.UI.WebControls.SiteMapDataSource.get_Provider()
Thank you for your help I appreciate all kind of advice.