RSS 2.0  Frustrated by Design
# Wednesday, April 02, 2008

Have you ever tried to set up a web site and use 2 popular ASP.NET applications ?

Did you get THIS ?

I did.

I set up BlogEngine.net in c:\inetpub\wwwroot - it worked fine !

Then I set up ScrewTurnWiki in c:\inetpub\wwwroot\wiki.

Now, ScrewTurnWiki is really simple to install and it's always worked for me before but this install failed (though as you'll see the problem is ASP.MET and the applications.)

The error messages that I was getting when trying to load the wiki were about not being able to resolve a BlogEngine.net assembly !

The problem is this......

ASP.NET applications have a distinct and complete configuration hierarchy. This is very useful if you are taking advantage of it, but can be a real pain if you are not.

The application in the subordinate directory inherits the entries from the root application. So, extensions, handlers, providers, etc.

The solution is a little counterintuitive. You would think that you could tell the subordinate application (Wiki) to ignore any configuration changes that are made higher up in the hierarchy, but you can't.

You need to tell the root application not to send configuration to any subordinate applications.

It looks something like this.

<configuration>
    <configSections>
        ...
    </configSections>
    <location path="." inheritInChildApplications ="false">
        ... rest of config
    </location>
</configuration>

Many thanks to Nikhil and Clint for the data !

Wednesday, April 02, 2008 5:40:25 AM (Atlantic Standard Time, UTC-04:00)  #    Comments [5] - Trackback
ASP.NET | Misfit Geek [Syndicated]
Navigation
About Me
    Joe Stagner
Follow me on Twitter.

View Joe Stagner's profile on LinkedIn

MSDN

Search
RSS/Subscribe
  RSS 2.0 | Atom 1.0 | CDF  
Archive
<January 2009>
SunMonTueWedThuFriSat
28293031123
45678910
11121314151617
18192021222324
25262728293031
1234567
Contact
Send mail to the author(s)  Send me email.
Statistics
Total Posts: 446
This Year: 2
This Month: 2
This Week: 2
Comments: 1449
Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2009
Joe Stagner
Sign In
All Content © 2009, Joe Stagner