anynick
01-28-2008, 11:30 AM
Beginners question. My environment is XP Pro with IIS 5 and .NET 2.0, using VWD Express, amongst other tings.
When I develop in ASP, my folder structure is:
C:\Programming\ASP
This is an IIS virtual directory and application called ASP.
Then subfolders e.g.
c:\Programming\ASP\TestSite1
No virtual directory or anything for this in IIS. So http://localhost/ASP/TestSite1 in the browser displays a default.asp in that subfolder.
And so on, for as many subfolders as I like, which is many.
I would like to replicate this arrangement with ASP.NET e.g.
c:\Programming\AspNet (as the IIS virtual directory and application)
c:\Programming\AspNet\TestSite3
and so on.
But ASP.NET wants to find a web.config in the folder that is the base virtual directory (so c:\Programming\AspNet), else it throws errors.
I could set this up and just put test files in the subfolders, but then the web.config in the base folder will start to accumulate stuff from whatever 'sites' I develop in the subfolders, and I think must eventually get confused.
Or I could set each subfolder up as its own virtual directory in IIS, but that will be an awful lot of virtual directories (perhaps this is the only sensible answer).
Can anyone suggest a way of setting things up so that I can operate with ASP.NET like I always have with ASP?
When I develop in ASP, my folder structure is:
C:\Programming\ASP
This is an IIS virtual directory and application called ASP.
Then subfolders e.g.
c:\Programming\ASP\TestSite1
No virtual directory or anything for this in IIS. So http://localhost/ASP/TestSite1 in the browser displays a default.asp in that subfolder.
And so on, for as many subfolders as I like, which is many.
I would like to replicate this arrangement with ASP.NET e.g.
c:\Programming\AspNet (as the IIS virtual directory and application)
c:\Programming\AspNet\TestSite3
and so on.
But ASP.NET wants to find a web.config in the folder that is the base virtual directory (so c:\Programming\AspNet), else it throws errors.
I could set this up and just put test files in the subfolders, but then the web.config in the base folder will start to accumulate stuff from whatever 'sites' I develop in the subfolders, and I think must eventually get confused.
Or I could set each subfolder up as its own virtual directory in IIS, but that will be an awful lot of virtual directories (perhaps this is the only sensible answer).
Can anyone suggest a way of setting things up so that I can operate with ASP.NET like I always have with ASP?