I have an ASP.NET website on a leased remote server. It all seems to work pretty well, except when I try to add additional *.aspx web pages to a subdirectory of the main directory. In that case, the page invariably errors out with some cryptic message about security.

Now, htm pages work just fine in the same subdirectories. What is the problem here? Does each subdirectory need it own web.config file ? Is there some other trick to get this to work? I prefer the ASP.NET pages as they are more versatile and easier to use with the currently available tools.

Any help greatly appreciated.