« Previous Next »

Thread: The metabase key '/lm/w3svc/apppools/App' could not be found.

Last post 07-01-2009 2:53 AM by sasikantt_24. 9 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (10 items)

Sort Posts:

  • 06-24-2009, 2:05 PM

    The metabase key '/lm/w3svc/apppools/App' could not be found.

    Hi,

    I am able to successfully migrate/sync applications from w2k3 (IIS 6.0) to w2k8 (IIS 7.0) when I run MS Deploy commands on w2k3 and using web deployment agent service of w2k8.

     

    But when I was running MS Deploy commands on w2k8 and trying to pull application from IIS 6.0, using web deployment agent service of w2k3, I am not able to migrate applications.

     

    I tried with different provides like manifest, metakey but no luck. I don’t know where I am going wrong.

     

    Command and output I get is as follows. Following command I have executed on w2k8.

     C:\Program Files\IIS\Microsoft Web Deploy>msdeploy -verb:migrate -source:manifest=C:\Users\someuser\Documents\Apps.xml,computername=w2k3servername -dest:auto -whatif


    Error:  Object of type 'manifest' and path 'C:\Users\someuser\Documents\Apps.xml' cannot be created The metabase key '/lm/w3svc/apppools/App' could not be found.The type initializer for 'Microsoft.Web.Deployment.AxNative' threw an exception. Failed to loaded the library 'C:\Program Files\IIS\Microsoft Web Deploy\axnative.dll'. HRESULT=8007007E. 

    Error count: 1

     

    Please can anyone help me?

     

    Thanks

     

  • 06-26-2009, 1:15 AM In reply to

    Re: The metabase key '/lm/w3svc/apppools/App' could not be found.

    Hmm.  

    Can you try:

    msdeploy -verb:dump -source:metakey=lm/w3svc/apppools/app,computername=win2k3machine -xml -debug

    This will tell if anything related to metakey is working right for you.  Also, can you send me any output from the file %windir%\ServiceProfiles\NetworkService\AppData\Local\Temp\Msdepsvc.log (from the win2k3machine).  That file contains any exceptions that happened on the remote agent. 

    Sorry for all the trouble you're hitting.  You're helping the MSDeploy team make the product solid for RTW so your patience is appreciated. 

  • 06-26-2009, 12:33 PM In reply to

    Re: The metabase key '/lm/w3svc/apppools/App' could not be found.

    Thank you so much for looking into this issue.I already tried with dump operation but giving same exception when I excute commands on w2k8 server to pull application from w2k3. Please find the output for above command.

    C:\Program Files\IIS\Microsoft Web Deploy>msdeploy -verb:dump -source:metakey=lm/w3svc/apppools/MyAppPool,computername=w2k3machine -xml -debug


    Microsoft.Web.Deployment.DeploymentException: Object of type 'metaKey' and path 'lm/w3svc/apppools/MyAppPool' cannot be created ---> Microsoft.Web.Deployment.DeploymentAgentException: Object of type 'metaKey' and path 'lm/w3svc/apppools/MyAppPool' cannot be created
    The metabase key '/lm/w3svc/apppools/MyAppPool' could not be found.
    The type initializer for 'Microsoft.Web.Deployment.AxNative' threw an exception.
    Failed to loaded the library 'C:\Program Files\IIS\Microsoft Web Deploy\axnative.dll'. HRESULT=8007007E.Microsoft.Web.Deployment.DeploymentException: Object of type 'metaKey' and path 'lm/w3svc/apppools/MyAppPool' cannot be created ---> Microsoft.Web.Deployment.DeploymentException: The metabase key '/lm/w3svc/apppools/MyAppPool' could not be found. ---> System.TypeInitializationException: The type initializer for 'Microsoft.Web.Deployment.AxNative' threw an exception. ---> Microsoft.Web.Deployment
    .DeploymentFatalException: Failed to loaded the library 'C:\Program Files\IIS\Mi
    crosoft Web Deploy\axnative.dll'. HRESULT=8007007E.
       at Microsoft.Web.Deployment.AxNative..cctor()
       --- End of inner exception stack trace ---
       at Microsoft.Web.Deployment.AxNative.MetabaseGetBaseObject(String serverName,
     String userName, String password, IAppHostWritableAdminManager manager, Object& objectHandle)
       at Microsoft.Web.Deployment.MetaKeyProvider.get_HandleContext()
       at Microsoft.Web.Deployment.MetaKeyProvider.EnsureNodeExists()
       --- End of inner exception stack trace ---
       at Microsoft.Web.Deployment.MetaKeyProvider.EnsureNodeExists()
       at Microsoft.Web.Deployment.MetaKeyProvider.GetAttributes(DeploymentAddAttrib
    uteContext addContext)
       at Microsoft.Web.Deployment.ManifestProvider.GetAttributes(DeploymentAddAttri
    buteContext addContext)
       at Microsoft.Web.Deployment.DeploymentObject.EnsureValidAttributes()
       --- End of inner exception stack trace ---
       at Microsoft.Web.Deployment.DeploymentManager.CreateObjectPrivate(DeploymentP
    roviderContext providerContext, DeploymentBaseContext baseContext)
       at Microsoft.Web.Deployment.DeploymentManager.CreateObject(DeploymentProvider
    Options providerOptions, DeploymentBaseOptions baseOptions)
       at Microsoft.Web.Deployment.AgentContext.GetTargetObject(DeploymentObject sou
    rceObject)
       at Microsoft.Web.Deployment.AgentContext.HandleGetPackage()
       at Microsoft.Web.Deployment.AgentContext.HandleRequest()
       at Microsoft.Web.Deployment.DeploymentAgent.HandleRequest(DeploymentAgentWorkerRequest workerRequest)
       at MSDepSvc.WDAgent.HandleRequest(HttpListenerContext context)
       --- End of inner exception stack trace ---
       at Microsoft.Web.Deployment.DeploymentManager.CreateObjectPrivate(DeploymentP
    roviderContext providerContext, DeploymentBaseContext baseContext)
       at MSDeploy.MSDeploy.Execute()
       at MSDeploy.MSDeploy.Main(String[] unusedArgs)
    Error count: 1 

    I am not able to find "Msdepsvc.log" on w2k3 machine. According to me Agent service is working fine because following command is getting executed successfully.

    C:\Program Files\IIS\Microsoft Web Deploy>msdeploy -verb:migrate -source:package=D:\package.zip,computername=w2k3machine –dest:auto

    Can you please let us what other providers I can try to migrate application from w2k3 to w2k8 but executing these commands on w2k8.

     

    Please let me if you require any other information to resolve this issue.

     

    Thanks a lot once again.

     

  • 06-29-2009, 8:08 AM In reply to

    Re: The metabase key '/lm/w3svc/apppools/App' could not be found.

    SuperTramp,

    Can you please provide some information/updates on above post? Efforts will be greatly appreciated if you find some time to look into this.

    Thanks in advance!!

    Shashi

     

  • 06-30-2009, 12:43 AM In reply to

    Re: The metabase key '/lm/w3svc/apppools/App' could not be found.

    Sorry about my lateness. 

    This is very odd.  It seems like your setup is incorrect as axnative.dll should be installed in your Web Deployment directory.  Can you dump out the entire c:\program files\iis\microsoft web deploy directory and show me the content. 

    If axnative.dll does indeed exist, another thing to try would be to download depends.exe from http://www.dependencywalker.com/ and see what the output would be for axnative.dll.  Perhaps it is missing a DLL. 

  • 06-30-2009, 8:35 AM In reply to

    Re: The metabase key '/lm/w3svc/apppools/App' could not be found.

    Hi,

    Thanks a lot for the reply.

     I have following files at location "C:\Program Files\IIS\Microsoft Web Deploy". Axnative.dll is available at the above path.

    msdeployconsole.psc1
    Microsoft.Web.Deployment.PowerShell.dll-Help.xml
    msdeploy.exe.configsettings.example
    Web Deployment Tool Documentation
    Web Deployment Tool Readme
    axnative.dll
    Web Deployment Tool UI.chm
    MsDepSvc.exe
    Microsoft.Web.Deployment.dll
    msdeploy.exe

    Are you facing any issues if you use "manifest" object type at your end on w2k8 server to migrate application from IIS 6.0?

    Thanks,
    Shashi

     

  • 06-30-2009, 9:18 AM In reply to

    Re: The metabase key '/lm/w3svc/apppools/App' could not be found.

    I don't think the issue is related to manifest (just a hunch). 

    Can you try to run command locally on the w2k3 box:

    msdeploy -verb:dump -source:metakey=lm/w3svc/apppools/app -xml

    If that works, can you try this command, also locally on the w2k3 box:

    msdeploy -verb:dump -source:metakey=lm/w3svc/apppools/app,computername=localhost -xml

  • 07-01-2009, 1:41 AM In reply to

    Re: The metabase key '/lm/w3svc/apppools/App' could not be found.

    Hi,

    Thank you so much for all your efforts.

    I tried with 1st command, it was executing successfully.

    When I tried with 2nd command it was giving same exception mentioned above.

    I repaired MS Deploy x86 installation. I restarted 'Web Deployment Agent Service'.

    AND NOW IT IS EXECUTING 2ND COMMAND SUCCESSFULLY!!!!!

     

    I tried executing command on w2k8 box. And it is now executing successfully.

     

    I really don’t know root cause of this issue but after repairing MS Deploy installation and restarting ‘Web Deployment Agent Service’ on w2k3 box resolve the issue.

     

    Thanks,

    Shashi

     

  • 07-01-2009, 2:21 AM In reply to

    Re: The metabase key '/lm/w3svc/apppools/App' could not be found.

    I think your post was lost.

  • 07-01-2009, 2:53 AM In reply to

    Re: The metabase key '/lm/w3svc/apppools/App' could not be found.

    The issue is resolved. Thanks a lot. :) :) ;)

Page 1 of 1 (10 items)