I'm trying to create a host-named site collection under my web application using Powershell. There are other host-named site collections in this web app already, so it's not the first one.
I am using the following command:
New-SPSite $site -OwnerAlias $owner -HostHeaderWebApplication $wp -Name $portalName -ContentDatabase $dbname -Template $portalTemplate | Out-Null
I have created the content database successfully ($dbname), and the owner ($owner), and the template is BLANKINTERNETCONTAINER#0
In the ULS Log, I can see the following entries:
- Failed to create modules from onet.xml when provisioning site at url <SiteURL> with site definition "(null)".
- Cannot create site: <siteURL> for owner <Owner>, Error: There is no file with URL '_catalogs/masterpage/v4.master' in this Web., 0xeba7c390
- The site <siteURL> could not be created. The following exception occurred: There is no file with URL '_catalogs/masterpage/v4.master' in this Web..
In the C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\LAYOUTS folder, I do see the masterpage file v4.master, and permissions are set to full control for the $owner.
Any advice would be greatly appreciated to resolve this issue. Thanks!