Last post Aug 29, 2012 03:57 PM by DJ Lance Rock
Aug 29, 2012 11:07 AM|DJ Lance Rock|LINK
I have a test application that I'm using to validate a web site. Since my website can run on IIS6 or IIS7, I'm doing some testing on a Win 2003 virtual server. I created a new application pool, and a new empty website that points to that pool. On my Win
7 development machine, I can access my website at the IIS://Localhost/W3SVC/1/Root/MyWebSite metabase location. I tried to hit that on my Win 2003 server and I got an error. I looked in the c:\windows\system32\inetsrv\metabase.xml and I see:
<IIsWebServer Location ="/LM/W3SVC/356101931"
<IIsFilters Location ="/LM/W3SVC/356101931/filters"
<IIsWebVirtualDir Location ="/LM/W3SVC/356101931/root"
AccessFlags="AccessExecute | AccessRead | AccessWrite | AccessScript"
AuthFlags="AuthAnonymous | AuthNTLM"
DirBrowseFlags="EnableDirBrowsing | DirBrowseShowDate | DirBrowseShowTime | DirBrowseShowSize | DirBrowseShowExtension | DirBrowseShowLongDate | EnableDefaultDoc"
Any idea why it's at LM/W3SVC/356101931/root and not at IIS://Localhost/W3SVC/1/Root/MyWebSite? I'm wondering if I need to change my code to look at LM/W3SVC/356101931/root, or if I need to change my configuration.
Aug 29, 2012 03:57 PM|DJ Lance Rock|LINK
I doubt anyone else will run into this, but here's what I figured out, in case you do. On my Windows 7 dev box, I had several web applications under my default web site. In IIS6 you don't really have the concept of web applications, so I'd created a separate
web site, rather than a web application. However, these are at the top level, so it wasn't under IIS://Localhost/W3SVC/1/Root/. I deleted my web site and made a virtual directory under the default web site, similar to the web application under the default
web site in IIS7. At any rate this got my metadata mapping similar on IIS6 and IIS7.