Setting up as Sub Application

Topics: ASP.NET 2.0
Mar 14, 2009 at 7:27 PM

I'm trying to install BlogEngine.Net as a Sub App. but keep getting the following configuration error.

Parser Error Message: 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.

Line 9: <blogProvider defaultProvider="XmlBlogProvider">

The subfolder is already setup as an application in IIS.
The ASPNET user has modify permissions on the App_Data folder.
I have also setup added <location inheritInChildApplications="false"> to my top root web.config file.

Any other suggestions of things I could try?

I have been able to get it to work as a stand alone app but not as a sub app.  The project I'm working on requires it to be a  sub app so any help is appreciated.

Mar 14, 2009 at 7:39 PM
Are you getting this error in Visual Studio?  I ask because Visual Studio doesn't seem to understand sub-apps.  A workaround is to move the sub-app (your blog) into a different physical folder, so it's no longer a child folder under your parent application.  But in IIS, you can set it up so the blog folder is a sub-app under your original parent application.
Mar 14, 2009 at 8:48 PM
Edited Mar 14, 2009 at 8:50 PM

It is always the simple things. 

It worked!!!

Thank you!!!