I'm upgrading a server that runs a classic asp website from iis5 to iis7
On the old server, there are sites set up that pass a querystring in the default document.
e.g CreateConnection.asp?CompanyID=1
(i.e. Different domain names all point to the same folder and the default document passes the company in the querystring.)
IIS 7 says I can't have a querystring when specifying a default document.
What can I do to get around this? The existing classic asp site works using this method.
EDIT
I've seen some sites recommend setting the default document directly in the web.config file (which would then allow me to specify the querystring), but I have the following questions about that:
I'm going to have a lot of virtual directories pointing to the same place so would there be a web.config file for each VD? If so, then where would these be located?
EDIT 2
following Scott's answer, I found a good article here: Understanding iis7 Configuration Delegation
EDIT 3
I had a lot of difficulty getting this working for my multiple sites pointing to a single physical folder on the web server (i.e. for a multi-tenant app).
If that's what you're after, see this related question: setting the default website for multiple path values in web.config
You're right, the functionality to include a querystring with the default docs was there in IIS6 but isn't in IIS7 any longer.
What I suggest is either using URL Rewrite to append the querystring to the default doc when it's not already set, or in your code for CreateConnection.asp, have logic to handle the default there. The advantage of doing so means that someone can hit yoursite.com/CreateConnection.asp and it will work, whether it's a default doc or a direct link. I suspect that some search engine links will link to CreateConnection.asp without the querystring too.