Ejemplo n.º 1
0
        public override DeploymentResult VerifyCanRun()
        {
            var result = new DeploymentResult();

            if (Operation == Iis7Operation.Unspecified)
            {
                result.AddError("IIS7 Operation has not been specified.");
            }
            if (String.IsNullOrEmpty(ServerName))
            {
                result.AddError("IIS7 Server Name has not been specified.");
            }
            if (String.IsNullOrEmpty(ApplicationPool))
            {
                result.AddError("IIS7 Application Pool has not been specified.");
            }

            IisUtility.CheckForIis7(result);

            using (var iisManager = ServerManager.OpenRemote(ServerName))
            {
                CheckApplicationPoolExists(iisManager, result);
            }

            return(result);
        }
Ejemplo n.º 2
0
        public override DeploymentResult VerifyCanRun()
        {
            var result = new DeploymentResult();

            IisUtility.CheckForIis7(result);

            var iisManager = ServerManager.OpenRemote(ServerName);

            CheckForSiteAndVDirExistance(DoesSiteExist, () => DoesVirtualDirectoryExist(GetSite(iisManager, WebsiteName)), result);

            if (UseClassicPipeline)
            {
                result.AddAlert("The Application Pool '{0}' will be set to Classic Pipeline Mode", AppPoolName);
            }


            ConfigureAuthentication(iisManager, result, false);

            return(result);
        }