This project is read-only.

i need to use blog engine as subdirectory in my web app

Jun 19, 2008 at 5:31 AM
i need to use blog engine as a sub directory for my web applicatin.
for this i put this in my solution of web application...
now when i try to make blogengine as a child then it shows me execption in web.config
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.

n if i leave it as separate hosted application it works well...n ican easily cal it from web app
currently both applications are under the same solutions
can u pls tell me which attributes in web.config i need to change that can not be in child web.config

kindly help
Jun 19, 2008 at 10:16 PM
It still allows web.config to be placed in child web.config as long as the child virtual directory is configured as web application. 

All configuration sections have 'AllowDefinition' property. You can browse Microsoft documentation to find out configuration sections that have its 'AllowDefinition' property set to "MachineToApplication" or "MachineToWebRoot". The sections that marked with those values must be placed inside machine.config or web.config of a web application / web root.

Agus Suhanto