Web.config in subfolder - solved; New issue: white screen and XML parsing error

Topics: ASP.NET 2.0
Feb 22, 2010 at 9:28 AM

Hi to everyone,

Main website installed in root.

A blog (Blog Engine) is set up in the “/blog” folder. It has its own web.config file and folder is setup as web application in IIS.

The problem is that when I try to navigate to the “/blog” folder it shows error related to web.config in root.

It seems that the IIS is reading web.config file from root and ignoring web.config in the blog folder.

While searching for “web.config subfolder” I came across this page:

http://www.aspdotnetfaq.com/Faq/how-to-disable-web-config-inheritance-for-child-applications-in-subfolders-in-asp-net.aspx

And tried adding location path, but without any success.

Any ideas on the issue?

Thank you in any case.

Regards

 

Feb 25, 2010 at 4:47 PM

Issue above is solved - I needed to export BE as WAP and to upload it that way on the internet.

Everything went smooth, I just followed instructions from here:

http://blogengine.codeplex.com/Thread/View.aspx?ThreadId=43154

But now there are several new issues:

1. First error I got is:
"The directory '/BlogEngine/' is not allowed because the application is precompiled."
I changed the name of "App_GlobalResources" folder and this error was gone.

2. Now only a blank page was displayed with nothing in the source view.

3. I tried navigating to the "/BlogEngine/Default.aspx" page but then I received XML parsing error.
"XML Parsing Error: no element found
Location: .../BlogEngine/Default.aspx
Line Number 1, Column 1:"

Any help will be much appriciated

 

Thanks anyway,

BB

 

The directory '/blog/App_GlobalResources/' is not allowed because the application is precompiled.