OK, IIS has beaten me.
We are running Small Business Server 2003 SP2 with IIS 6.0. SBS creates a SharePoint 2.0 intranet site in IIS called companyweb, available on the LAN as
http://companyweb/default.aspx and available on the Web at
https://{fqdn}:444/default
.aspx. I need to put a form up on that site which uses an ASP page as its action (sending an email of the form's contents). It appears that I can't put the ASP page in SharePoint and call it up; it loads but the ASP code doesn't get executed. So I need to put it in a Virtual Directory in IIS under the companyweb site (it has to be under companyweb so the URLs can be relative so it will work from both the LAN and the web). I already have a virtual directory under companyweb which I created for a commercial application called AgendaX, which uses ASP, and which works, so I didn't anticipate any problems. Boy oh boy, was I wrong!
I created the virtual directory under companyweb, put test.asp in the real directory and browsed to it ... 404 error. I checked and changed permissions all over the place, deleted and recreated the virtual directory, reset IIS over and over again ... no help. If I create a virtual directory for the same real directory but under default web site, I can browse to it successfully. If I copy test.asp to the AgendaX directory and browse to it it works. But I can't create a new virtual directory and browse to it. Trying the same tests with test.htm works or fails to work in exactly the same manner, so it's not ASP. IIS just refuses to find the freakin' file in the virtual directory!! Help?