FrontPage Server Extensions - IIS Metabase
Originally published on my old blog at cumps.be on April 9, 2004.
Currently I’m playing around with IIS and C#, and something I discovered is the following:
First, take a look at the FrontPageWeb property available in the IIS Metabase.
This says ‘Setting FrontPageWeb to true causes FrontPage Manager to create the files required for FrontPage Server Extensions. Setting FrontPageWeb to false causes these files to be deleted.’.
Everything seems alright, just like every other property I set this to true and except it to work. Like this:
// First we get the AD object representing our webserver
DirectoryEntry iisServerRoot = new DirectoryEntry("IIS://localhost/W3SVC");
// We create a new site on the specified siteId
DirectoryEntry deNewWwwSite = (DirectoryEntry)iisServerRoot.Invoke("Create", "IIsWebServer", 10);
// Takes care of FrontPage Manager providing files for FrontPage Extensions
deNewWwwSite.Properties["FrontPageWeb"][0] = true;
deNewWwwSite.Invoke("SetInfo");
deNewWwwSite.CommitChanges();
deNewWwwSite.Close();
deNewWwwSite.Dispose();
(Most stuff left out)
Well, it didn’t work. In IIS it would still say FrontPage Extensions were not present, and the directories didn’t get made.
I looked everywhere to find something else involving FrontPage, without any luck.
But then I found this KB article (300543). And although it’s talking about IIS 4.0, 5.0 and 5.1, it does work on IIS 6.0 as well.
So here you go, to install FrontPage Extensions you have to run:
“C:\Program Files\Common Files\Microsoft Shared\web server extensions\50\bin\owsadm.exe” -o install -p /LM/W3SVC/SITEID -u USERNAME -sp publish
And to uninstall them: “C:\Program Files\Common Files\Microsoft Shared\web server extensions\50\bin\owsadm.exe” -o fulluninstall -p /LM/W3SVC/SITEID -u USERNAME
You May Also Like
Parameterized Queries - MySQL
Today I was looking over a project I'm working on currently, more specifically, at the SQL queries in it.
Visual Basic 6 - DBGrid, Empty Cells AllowSizing Bug?
Something not .NET related, regarding VB6.
Differences between PHP and ASP.NET
In response to a thread on the ASP.NET Forums I decided to publish the answers in an overview on my blog.



