Tuesday, August 16, 2011

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.

This 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 " might occured if your project contains more than one web.config file in the subsequient folders. If this situation happens then there are properties like  authentication, session state should not be configured in the child web.config. so for this i commented this line and it works for me.
The reason is, these settings cannot be overridden at the sub-directory level unless the sub-directory is also configured as an application.

No comments:

Post a Comment