Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Error while creating SharePoint 2016 Web Application using PowerShell Script

$
0
0

Hi,

I am trying to create a SharePoint 2016 Web Application using PowerShell Script

$WebApp = New-SPWebApplication -AuthenticationProvider (New-SPAuthenticationProvider -UseWindowsIntegratedAuthentication) -ApplicationPool $AppPool.Name -ApplicationPoolAccount $AppPoolManagedAccount.Username -Name $webApplicationName -url $targetWebAppUrl -port $HTTPPort -DatabaseServer $databaseServer -DatabaseName $contentDatabase -HostHeader $hostHeader

$WebApp.update()

However, error occurs while executing "$WebApp.update()" command.

Exception calling "Update" with "0" argument(s): "An update conflict has occurred and you must re-try this action. The object SPWebApplication Name=xxxxxxxxxxxxxx was updated by xxxxx\xxxxxx, in the OWSTIMER (14888) process, on machine xxxxxxx

FullyQualifiedErrorId: SPUpdatedConcurrencyException

Please provide resolution to this issue ASAP.

Thanks in advance.


Viewing all articles
Browse latest Browse all 7589

Trending Articles