This project is read-only.

BlogEngine root, but other IIS application subfolder

Aug 27, 2009 at 10:37 AM

Hey everyone...

Did anybody already tried to add a new IIS application as subfolder inside a BlogEngine.Net root domain?

Because when I try to do this, I always get configuration exceptions ( because BlogEngine thinks the subfolder is part of his domain ).

Any thoughts?

Aug 27, 2009 at 11:42 AM

One option is to modify the BE.NET web.config file.  Wrap the existing <system.web> tag in the <location> tag as shown below.  If you also have a <system.webServer> tag in your BE web.config file, then also wrap that in the same type of <location> tag.  By doing this, it will prevent the BE.NET settings from propagating down to the sub-applications.  To reiterate, these <location> tags should be added in the BE.NET web.config file -- not the sub-application's web.config file.

<location path="." inheritInChildApplications="false">
             ..... existing content .....

<location path="." inheritInChildApplications="false">
             ..... existing content .....

Aug 27, 2009 at 12:00 PM

BenAmada, this is just great!! Now the subapplication works!

Thanks for the info.