I am getting the following error when I am trying to build my website,
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 am using IIS express for my website and created a virtual directory and mapped in to a directory. Just found out since I have not mapped the virtual directory to an application it gives this error message. I cannot remove the virtual directory When I try to remove it from my website project.
My question is do I have to do anything else to remove the virtual directory from my web site project.
I came across this error a while ago..
Make sure your web.config is placed at the top level of the project folders. Also its best to make sure you don’t have multiple versions of them
Hope this helps
PhilNerd