« Previous Next »

Thread: Fatal: StreamMustBeginWithSystemInfo

Last post 02-11-2009 5:43 AM by yaminij. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 02-10-2009, 9:40 AM

    Fatal: StreamMustBeginWithSystemInfo

    Hi,

     We've just upgraded our build server and our deployment script is now failing when trying to  archive a site. The line in question is

    msdeploy -verb:sync -source:metakey=lm/w3svc/%metakey%,computerName=XXX,userName=XXX,password=XXX -dest:archivedir=%applicationArchivePath% > D:\codeweavers\archive\_temp\webdeploy_archive.log -skip:objectName=filePath,absolutePath=.*NhibernateLogs*

    We're getting the error:

    Fatal:  StreamMustBeginWithSystemInfo
    Fatal count: 1

    Here it is with the -debug attribute:

     Microsoft.Web.Deployment.DeploymentException: StreamMustBeginWithSystemInfo
       at Microsoft.Web.Deployment.PackageDeserializer..ctor(Stream stream)
       at Microsoft.Web.Deployment.AgentClientProvider.get_SerializationProviderInternal()
       at Microsoft.Web.Deployment.AgentClientProvider.get_KeyAttributeName()
       at Microsoft.Web.Deployment.DeploymentObject.EnsureValidAttributes()
       at Microsoft.Web.Deployment.DeploymentObject.get_IsValid()
       at Microsoft.Web.Deployment.DeploymentManager.CreateObject(String factoryName, String path, DeploymentObjectBaseConfig baseConfig)
       at MSDeploy.MSDeploy..ctor(Boolean debug, String[] args)
       at MSDeploy.MSDeploy.Main(String[] args)
    Fatal count: 1

     We're using the new Beta 2 version of MSDeploy, on Windows Server 2008. The computer we're backing up the site from is running IIS6 and hasn't changed (i.e. was working before we changed the build server we're running the command from).

     Any help would be greatly appreciated.

  • 02-10-2009, 1:47 PM In reply to

    • yaminij
    • Top 50 Contributor
    • Joined on 09-25-2007, 12:41 AM
    • Posts 187

    Re: Fatal: StreamMustBeginWithSystemInfo

    It is not clear from your example if you are using site identifiers to archive the site? For example

    msdeploy -verb:sync -source:metaKey=lm/w3svc/1 ... <followed by the rest of your command>

     If you are, could you check if you can do a dump of the remote site by running

    msdeploy -verb:dump -source:metaKey=lm/w3svc/1

    Thanks
    Yamini Jagadeesan, SDET, Microsoft IIS Team
  • 02-11-2009, 5:17 AM In reply to

    Re: Fatal: StreamMustBeginWithSystemInfo

     Thanks for getting back to me. A dump gives the same error as sync:

    msdeploy -verb:dump -source:metakey=lm/w3svc/741264133,computerName=XXX,userName=XXX,password=XXX
    Fatal:  StreamMustBeginWithSystemInfo
    Fatal count: 1

  • 02-11-2009, 5:43 AM In reply to

    • yaminij
    • Top 50 Contributor
    • Joined on 09-25-2007, 12:41 AM
    • Posts 187

    Re: Fatal: StreamMustBeginWithSystemInfo

    Can you please run the following command and see if it works or send us the error if you encounter any

    msdeploy -verb:getSystemInfo -source:metaKey=/lm/w3svc/<siteid>,computerName=xxx,username=xxx,password=xxx

     Also, does the username you are using have admin privileges on the remote IIS 6.0 box? Can you also try a local sync to archive on the IIS 6.0 box directly and see if it works?

    Thanks
    Yamini Jagadeesan, SDET, Microsoft IIS Team
Page 1 of 1 (4 items)
Microsoft Communities