I'm also having this problem when creating site collections.
I checked the xml file and managedpath relativeurl is set to false like it says in the above post.
Here is what's in my xml when it comes to creating the web app and site collections.. can you tell me what I've done wrong and why I get the error message the OP was getting?
I checked the xml file and managedpath relativeurl is set to false like it says in the above post.
Here is what's in my xml when it comes to creating the web app and site collections.. can you tell me what I've done wrong and why I get the error message the OP was getting?
> __ <WebApplications AddURLsToHOSTS="true">
<WebApplication type="MySiteHost" name="MySite Host" applicationPool="MySites Application Pool" applicationPoolAccount="domain\sp2013webapp1" url="http://mysites.domain.com" port="8080" UseHostHeader="true" AddURLToLocalIntranetZone="true" GrantCurrentUserFullControl="true" databaseName="Content_MySites" useClaims="true" useBasicAuthentication="false" useOnlineWebPartCatalog="false">
<Database>
<DBServer />
<DBAlias Create="false" DBInstance="SERVER\INSTANCE" DBPort="" />
</Database>
<ManagedPaths>
<ManagedPath relativeUrl="personal" explicit="false" />
</ManagedPaths>
<SiteCollections>
<SiteCollection siteUrl="mysites.domain.com" HostNamedSiteCollection="false" Owner="domain\joe.shmoe-admin" Name="My Site Host" Description="My Site Host" SearchUrl="http://localhost/search" CustomTemplate="false" Template="SPSMSITEHOST#0" LCID="1033" Locale="en-us" Time24="false" />
</SiteCollections>
</WebApplication>
<WebApplication type="Other" name="Connect" applicationPool="Connect Application Pool" applicationPoolAccount="domain\sp2013webapp1" url="http://connect.domain.com" port="80" UseHostHeader="true" AddURLToLocalIntranetZone="true" GrantCurrentUserFullControl="true" databaseName="WSS_Content_Connect" useClaims="true" useBasicAuthentication="false" useOnlineWebPartCatalog="false">
<Database>
<DBServer />
<DBAlias Create="false" DBInstance="SERVER\INSTANCE" DBPort="" />
</Database>
<ManagedPaths>
<ManagedPath relativeUrl="sites" explicit="false" />
</ManagedPaths>
<SiteCollections>
<SiteCollection siteUrl="http://connect.domain.com" HostNamedSiteCollection="false" Owner="domain\joe.shmoe-admin" Name="Connect" Description="Top Level Site Collection" SearchUrl="http://localhost/search" CustomTemplate="false" Template="STS#0" LCID="1033" Locale="en-us" Time24="false" />
</SiteCollections>
</WebApplication>
</WebApplications>__
When I run the script I get the below error for either site collection: __- Creating Site Collection "mysites.domain.com"...
--------------------------------------------------------------
- Script halted!
Exception : System.UriFormatException: Invalid URI: The format of the URI could not be determined.
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at Microsoft.SharePoint.PowerShell.SPCmdletNewSite.InternalValidate()
at Microsoft.SharePoint.PowerShell.SPCmdlet.ProcessRecord()
TargetObject : Microsoft.SharePoint.PowerShell.SPCmdletNewSite
CategoryInfo : InvalidData: (Microsoft.Share...SPCmdletNewSite:SPCmdletNewSite) [New-SPSite],
UriFormatException
FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletNewSite
ErrorDetails :
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at CreateWebApp, C:\AutoSPInstaller\SP\AutoSPInstaller\AutoSPInstallerFunctions.ps1: line 2372
at CreateWebApplications, C:\AutoSPInstaller\SP\AutoSPInstaller\AutoSPInstallerFunctions.ps1:
line 2217
at Setup-Farm, C:\AutoSPInstaller\SP\AutoSPInstaller\AutoSPInstallerMain.ps1: line 190
at <ScriptBlock>, C:\AutoSPInstaller\SP\AutoSPInstaller\AutoSPInstallerMain.ps1: line 361
at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {}
PSMessageDetails :
__