Hi All.
I’ve installed SP Server 2013 on a standalone server running Windows 2012 (for development purposes).
I have Central Administration (CA) setup ok and can create service applications and even created site collections. However, I am unable to create new web applications using CA interface or SP PowerShell.Â
After trying the formal – I get the following error on the central admin web page (which is killing me). The error is; “Name cannot begin with the ‘,’ character, hexadecimal value 0x2C. Line 15, position 34.”
I look in IIS and see the application is there and running under the correct account.
So I tried using PowerShell as per below script;
$name = “SiteName”
$port = 11484
$url = “http://servername”
$appPoolName = “SP Default App Pool”
$appPoolAccount = Get-SPManagedAccount “DOMAIN\Admin”
New-SPWebApplication -Name $name -Port $port -URL $url -ApplicationPool $appPoolName -ApplicationPoolAccount $appPoolAccount
An application does get created in IIS, prompts me to login in Firefox but nothing gets displayed. The correlation ID in the log file does not make sense to me. The log file shows ‘The site http://servername:port/ could not be found in the Web application SPWebApplication Name=SiteName.’
Could you be kind as to shine some light on why things aren’t working?
Your input will be greatly appreciated.
Thanks, Larry
take another look
https://technet.microsoft.com/en-us/library/ee806885.aspx#section3
Hey,
Did you create a root site collection? Â Also, the way you created your site is in Classic Mode, and not Claims, so it’s a depreciated more in 2013! Â Try this:
$ap = New-SPAuthenticationProvider
$url = “spcommunityrocks.vlad.com”
$ServiceAccount= “DOMAIN\SP_Pool”
$databasename = “SHP_DEV_Content_SPCommunityRocks”
New-SPWebApplication -Name “SharePoint – $url 80” -Port 80 -HostHeader $url -URL “http://$url” -ApplicationPool “$url” -ApplicationPoolAccount (Get-SPManagedAccount $ServiceAccount) -AuthenticationProvider $ap -DatabaseName $databasename
New-SPSite “http://$url” -OwnerAlias “Domain\Vlad” -Language 1033 -Name “This WILL work ” -Template “STS#0”
Also, don’t forget to add it DNS/Host file as well as disable loopback check if you acces directly from server!Â