« Previous Next »

Thread: 800900005

Last post 06-24-2009 2:11 PM by richma. 5 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (6 items)

Sort Posts:

  • 06-22-2009, 1:36 PM

    800900005

     I was able to sync the content directory and create the app pool using msdeploy, but when I try to create the website definition, I get:

    Error:  An error occurred when committing changes to the IIS Configuration System. The identity performing the operation was 'IISServer5\Administrator'.

    Error:  Bad Data. (Exception from HRESULT: 0x80090005)

    Error count: 1

    I get this regardless of whether I'm logged in with a domain account with administrative privs or the local Admin account.  Here's the output of -debug:

      C:\>"c:\program files\iis\microsoft web deploy\msdeploy" -verb:sync -source:apph
    ostconfig="test.somesite.com",computerName=IISServer4.com -dest:apphostConfig="test.somesite.com" -debug


    Action: Adding MSDeploy.appHostConfig (MSDeploy.appHostConfig)
    Action: Adding appHostConfig (test.somesite.com)
    Action: Adding child binding (MSDeploy.appHostConfig/appHostConfig[@path='test.s
    omesite.com']/site[@name='test.somesite.com']/bindings/binding)
    Action: Adding child application (MSDeploy.appHostConfig/appHostConfig[@path='te
    st.somesite.com']/site[@name='test.somesite.com']/application[@path='/']
    )
    Action: Adding child virtualDirectory (MSDeploy.appHostConfig/appHostConfig[@pat
    h='test.somesite.com']/site[@name='test.somesite.com']/application[@path
    ='/']/virtualDirectory[@path='/'])
    Microsoft.Web.Deployment.DeploymentException: An error occurred when committing
    changes to the IIS Configuration System. The identity performing the operation w
    as 'IISServer5\Administrator'. ---> System.Runtime.InteropServices.COMExcept
    ion (0x80090005): Bad Data. (Exception from HRESULT: 0x80090005)
       at Microsoft.Web.Deployment.AppHostWritableAdminManager.CommitChanges()
       at Microsoft.Web.Deployment.AdminManagerWrapper.CommitChangesWithException(IA
    ppHostWritableAdminManager adminManager)
       --- End of inner exception stack trace ---
       at Microsoft.Web.Deployment.AdminManagerWrapper.CommitChangesWithException(IA
    ppHostWritableAdminManager adminManager)
       at Microsoft.Web.Deployment.AdminManagerWrapper.CommitChanges(DeploymentCommi
    tContext commitContext)
       at Microsoft.Web.Deployment.DeploymentCommitContext.CommitChanges(DeploymentS
    yncOptions syncOptions, DeploymentBaseContext baseContext)
       at Microsoft.Web.Deployment.DeploymentObject.SyncToInternal(DeploymentObject
    destObject, DeploymentSyncOptions syncOptions, PayloadTable payloadTable, Conten
    tRootTable contentRootTable)
       at Microsoft.Web.Deployment.DeploymentObject.SyncTo(DeploymentProviderOptions
     providerOptions, DeploymentBaseOptions baseOptions, DeploymentSyncOptions syncO
    ptions)
       at MSDeploy.MSDeploy.Execute()
       at MSDeploy.MSDeploy.Main(String[] unusedArgs)
    Error count: 1

     This was the result of a "pull" from the destination server. A Push from the source server delivers the same error message.  I also get the same message if I use the metakey: method.


     

  • 06-22-2009, 6:37 PM In reply to

    • richma
    • Top 25 Contributor
    • Joined on 04-06-2009, 4:10 PM
    • Posts 354

    Re: 800900005

    Any time I have seen this the site or config for that site does in fact have invalid data or xml or something to that effect.

    Can you manage this site within IIS  ?

    does this source web serve content when browsing ?

     

  • 06-23-2009, 12:55 PM In reply to

    Re: 800900005

    The default site and the second site both serve pages out, and I can manage them using the IIS Management tool without any apparent errors.

    The default site consists of the default page and AppPool, the secondary site has its own AppPool and a single "test me" index.html page.

    One data point that might be pertinent is that we originally experimented using Shared config to point both servers to a UNC path, but disabled it after testing in favor of using MSDeploy to synchronize the servers. At the time we used Shared Config, it was only the default site - we hadn't added the second site yet. Perhaps Shared Config introduced something to the XML that MSDeploy doesn't like.

    I'll try nuking and reinstalling from scratch. I just wanted to make sure I wasn't missing something syntactically or procedurally.

  • 06-23-2009, 1:22 PM In reply to

    Re: 800900005

    This error is often indicative of an encyrption problem with IIS.  Here's how to check -> using the UI, try to set a password (like a virtual directory password).  If you get the same error, then the configuration encryption problem is fucked up. 

    If you look at the top of the applicationhost.config file (inetsrv\config directory), you'll see a bunch of <configProtectedData> entries.  These are machine specific (by default) and are the keys is used to encrypt/decrypt properties.  If for some reason you deleted these, or copied them from another machine, this will lead to encryption problems like you're seeing. 

    You can remedy this by going to an older applicationhost.config (checkout your inetpub\backup directory) that was working (again, do the UI set password test to see that things are working). 

    The IIS team really needs to write a tool to help repair configurations in this state.  If you can't find a good config file to replace, you'll have to re-install again. 

    Sorry for the bad news. 

     

  • 06-24-2009, 11:13 AM In reply to

    Re: 800900005

     Thanks Supertramp - this looks like the cause - I get the same error 0x80090005 message when I try to set the pw for a virtual directory on the destination host.  I'd bet that this happened when we were testing the shared configuration setup and the applicationhost.config file that ended up on it was from the initial master.

     Since these are fresh hosts (well relatively),l didn't have them in backups yet, so there's no way to recover the original applicationhost.config file. I'll burn them down and reinstall.

    Thanks for chiming in - there's no documentation anywhere else (that's I've found so far) for this problem, so maybe it'll help someone else.

  • 06-24-2009, 2:11 PM In reply to

    • richma
    • Top 25 Contributor
    • Joined on 04-06-2009, 4:10 PM
    • Posts 354

    Re: 800900005

    The following shows how to export the export the keys from the original server in a shared config scenario .  http://learn.iis.net/page.aspx/264/shared-configuration/

    Supertramp  , thanks for passing this along .

Page 1 of 1 (6 items)
Microsoft Communities