Czy redystrybucyjny jest Microsoft.Web.Administration.dll?

Dostęp do domyślnego numeru portu uzyskujemy za pomocą klasy ServerManager z IIS na komputerach klientów. Konsola nie uruchomiła jednak niektórych maszyn i konieczne jest wyświetlenie pliku Microsoft.Web.Administration.dll. Czy ten zespół jest redystrybucyjny? Lub Czy istnieje inny sposób na uzyskanie domyślnego numeru portu? Używam poniższego kodu, aby uzyskać numer portu.

<code>using (ServerManager serverManager = new ServerManager())
        {
            SiteCollection allsites = serverManager.Sites;
            foreach (Site site in allsites)
            {
                if (site.Name == "Default Web Site")
                {
                    BindingCollection allBindings = site.Bindings;
                    foreach (Binding bind in allBindings)
                    {
                        if (bind.Protocol == "http")
                        {
                            PortNo = bind.BindingInformation.ToString();
                            int portNoLenth = PortNo.Length; PortNo = PortNo.Substring(2, portNoLenth - 3); break;
                        }
                    }
                }
            }
        }
</code>

Pomóż mi rozwiązać ten problem.

questionAnswers(1)

yourAnswerToTheQuestion