You can't create an instance of that class that way. http://msdn.microsoft.com/en-us/library/microsoft.web.administration.sitecollection(v=vs.90).aspx says,
"public sealed class SiteCollection : ConfigurationElementCollectionBase<Site> This class is sealed and does not implement a public constructor. You can access the SiteCollection class through the Sites<http://msdn.microsoft.com/en-us/library/microsoft.web.administration.servermanager.sites(v=vs.90).aspx> property of the ServerManager<http://msdn.microsoft.com/en-us/library/microsoft.web.administration.servermanager(v=vs.90).aspx> class." Since it's not static, you need an instance, but since there's no public constructor, you have to get that instance via ServerManager.Sites. ServerManager does have a constructor and all the methods/properties you need to get at the rest of the things you are trying to configure. http://msdn.microsoft.com/en-us/library/microsoft.web.administration.servermanager_members(v=vs.90).aspx -- Shu Ha Ri: Agile and .NET blog http://www.bifrost.com.au/ On 15 October 2011 13:51, Akos Fortagh <akos.fort...@yahoo.com> wrote: > Microsoft.Web.Administration.SiteCollection > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348182 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm