Using the WebAdmin tool via IIS

This is not an officially supported scenario, but does work, and may be useful for some of you who don't have the resources to create user administration tools right off the bat.  There are security implications when doing this, so you need to verify that this is a valid scenario, and that there are no other work arounds available to you.

  1. Create you web application in IIS
  2. Create a virtual directory in the web application called SiteAdministration (or something of your choosing).  The path to the vdir should be %windir%\Microsoft.NET\Framework\v2.0.50727\ASP.NETAdminFiles
  3. Make the vdir an application
  4. Browse to https://localhost/application/SiteAdministration/default.aspx?applicationPhysicalPath=d:\inetpub\wwwroot\application&applicationUrl=/application (you'll have to change that to work for your paths and application names, but you get the idea).

The biggest problem that I ran into when trying to set this up on my system was file locking.  I copied the mdf file over to the wwwroot dir, and it was still locked when I did that, so things didn't work right.  Once I got the locking issues taken care of, I was golden!