Previous Next

Thread: Exception using MSDeploy getDependencies on a websiteID

Last post 06-13-2008 5:51 AM by boss_west. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 06-12-2008, 6:49 AM

    • boss_west
    • Not Ranked
    • Joined on 06-12-2008, 6:41 AM
    • Posts 5
    • boss_west

    Exception using MSDeploy getDependencies on a websiteID

     Hi everyone,

    After installing .Net Framework 2.0 sp1 and MSdeploy on a IIS webserver host, i make a test using the following command line:

    msdeploy -verb:getDependencies -source:metakey=lm/W3SVC/SiteId when SiteId is any Website Id found on IIS6.

    I am getting the message : an item with the same key has already been added ....

    with the -debug option i get further information like:

     System.ArgumentException: An item with the same key has already been added.

       at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
       at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boo
    lean add)
       at Microsoft.Web.Deployment.ParseSystemInfo.ParseWebRestrictionList()
       at Microsoft.Web.Deployment.GetDependenciesMethod.Invoke(DeploymentObject tar
    getObject, Object[] parameters)
       at Microsoft.Web.Deployment.DeploymentObject.Invoke(String methodName, Object
    [] parameters)
       at MSDeploy.MSDeploy.Execute()
       at MSDeploy.MSDeploy.Main(String[] args)

    the IIS6 server is hosting about 2700 website ... 

    Any Idea about this?

     

  • 06-12-2008, 3:18 PM In reply to

    • ksingla
    • Top 10 Contributor
    • Joined on 06-14-2006, 3:02 AM
    • Redmond, WA
    • Posts 428
    • ksingla

    Re: Exception using MSDeploy getDependencies on a websiteID

    Hi boss_west,

    It seems you have more than one isapi/cgi under websvcrestrictionlist with same path. Can you pls run the following command and see if there are more than one entry under <webSvcExtInfo> with same path?

    msdeploy -verb:getsysteminfo -source:metakey=lm/w3svc/SiteId -debug

    If you do, is there a reason to have multiple entries? Is it possible for you to remove duplicate entries?

    Thanks,
    Kanwal

  • 06-13-2008, 5:51 AM In reply to

    • boss_west
    • Not Ranked
    • Joined on 06-12-2008, 6:41 AM
    • Posts 5
    • boss_west

    Re: Exception using MSDeploy getDependencies on a websiteID

     Hi Kanwal,

    You are right!

    Indeed there was more than one ISAPI/CGI under websvrestrictionlist with the same name and path.

    I don't know why these extensions were declared because i wasn't in charge of this server..

    But after  delete the concerned extensions, Msdeploy getDependencies seems to work well.

    Thanks for your help.

    Best regards,

    boss_west 

Page 1 of 1 (3 items)
Page view counter