It has been suggest that one of the smart things to do with a blog is to record those things that you discover that you will forget later. This is kind of one of those.
I wanted to put a new application up for test on our server, so I created a folder, fired up IIS admin, created the new site, set the host header and copied the app into the new folder. Of course it didn't work.
I got this:
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.
Which, a short google later, I determine means that IIS doesn't think that its an application folder.
The solution is trivial - do things in the right order:
- first you copy the folder containing the application to the appropriate location on your server
- then you add the the virtual folder - pointing to the folder already in place - to IIS6 and lo and behold it "just works".
Obvious with hindsight...
Comments