I worked through the example in Chapter 20 and am having some issues.
1. Is BASIC (virtual folder) supposed to point to: c:\begaspnet\ch20\basic? If I right click that folder (c:\begaspnet\ch20\basic), and pick New virtual directory, and select the folder, when I attempt to visit that page, I get an error:
http://nrbitappw08p4/BegASPNET/ch20/basic/
(url as seen on page 737)
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
If I attempt to goto:
http://nrbitappw08p4/basic, I get:
HTTP 404 - File not found
Internet Information Services
2. So I recreate the Virtual Directory, BASIC, from the Default Web Site to point to the same location. It now appears at the same level as the BegASPNET virtual folder.
BegASPNET allows anonymous access, but this folder underneath it, with a web.config uses Basic Authentication. I attempt to access it and am not prompted to enter any credentials either accessing it remotely or locally. Why?
3. I changed the web.config file to add an <authorization> section. When I did this, it began prompting me. HOWEVER, after taking it out, and "bouncing" IIS, it is still prompting, which is wasn't doing at Step#2 just minutes before. What gives?