This project is read-only.

script halts when creating new content database

Apr 1, 2014 at 2:31 PM
Hello,

First off, this project is fantastic - this is my 4th test stab at creating SharePoint, and I am sure this will make the installation process EASILY recreate-able. I have a little problem though. My script runs through all the way to creating a new content database, and this is the output I am getting:
  • Creating new content database "PROD_MySiteHost"...
    Get-SPWebApplication : Cannot find an SPWebApplication object with Name, Id, or Url: http://VM-SPWEB.
    At C:\SP\Autoinstaller\AutoSPInstallerFunctions.ps1:2635 char:80
  • New-SPContentDatabase -Name $siteDatabase -WebApplication (G ...
  • ~
    • CategoryInfo : InvalidData: (Microsoft.Share...tWebApplication:SpCmdletGetWebApplication) [Get-SPWebApp
      lication], SPCmdletPipeBindException
    • FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SpCmdletGetWebApplication

  • Script halted!
Please let me know if there is anything more I should post, but if there is anything simple I ought to be checking. Thanks!
Apr 2, 2014 at 8:39 PM
Hey,

Can you post your xml with the passwords and serial removed to pastebin.com?

Thanks,
Ivan
Apr 25, 2014 at 5:11 AM
Edited Apr 25, 2014 at 5:13 AM
what was the solution to this? I am getting the same error.
  • Creating new content database "test_test_ContentDB"...
    Get-SPWebApplication : Cannot find an SPWebApplication object with Name, Id, or
    Url: http://test-DEV.
    At C:\SP\AutoSPInstaller\AutoSPInstallerFunctions.ps1:2635 char:100
  • New-SPContentDatabase -Name $siteDatabase -WebApplication
    (Get-SPWebApplication <<<< $webApp.url) | Out-Null
    • CategoryInfo : InvalidData: (Microsoft.Share...tWebApplication:
      SpCmdletGetWebApplication) [Get-SPWebApplication], SPCmdletPipeBindExcepti
      on
    • FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SpCmdletGetWebAp
      plication

  • Script halted!