allowDefinition='MachineToApplication' Error
Hi,
I downloaded the sample The BeerHouse project and when I try a rebuild I get the following error:
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.
I searched on this error and found a couple possible solutions but neither fixed the error or are applicable.
One solution was to be sure the web app is set as an IIS virtual directory. Did that.
Another solution said to not use any allowDefinition='MachineToApplication' elements in web.config files located in subfolders, below the main web.config file.
There are two web.config files. The main is in a folder "TBH_Web" located under the solution. The second is in the "Admin" folder located under "TBH_Web". The latter's web.config file does not contain any of the special MachineToApplication elements.
I did get the project to build by moving all the files located in the "TBH_Web" folder to its parent folder and removing the "TBH_Web" folder but this doesn't seem like the correct solution. Is there another solution or an explanation on why this is happening?
TIA,
Gary
:)
|