Wednesday, June 27, 2007

Beware of Nested Web.Config's!

Problem with Nested Web.Config's
If your web servers host a complex IIS tree, beware of nested ASP.NET applications and their respective web.config's. If a "parent" ASP.NET application declares a type (and therefore a dependency on an assembly), the "child" application inherits this declaration. See the following msdn article for lengthy discussion.

What this means, ultimately, is that your child application will be looking for a dll in its /bin folder. When it doesn't find it, the child application throws a yellow screen.

Here is an example. I've set up http://localhost/MyApp, a do-nothing app that happens to implement the ASP.NET 1.1 URL Mapping Module discussed in a previous blog. I've built another do-nothing app, and for demonstration purposes created a virtual directory hosting this app under the do-nothing parent, http://localhost/MyApp/MySubApp.

See what happens when I try to run the child app from a browser...


Solutions
To resolve the error above, you can take one of the following approaches:
  1. Copy the assembly to the child's /bin folder. This works, but it's sloppy configuration. Why xcopy dll's across your file system, introducing redundancy and superfluousness?
  2. GAC the assembly. That way it's available to the child, and any other application, whether or not it's needed.
  3. Restructure IIS to avoid the problem.

98 comments:

Anonymous said...

Instead of "yellow screen", its a "yellow death screen" :-)

This issue is a pain when you have user authentication going on in both the parent and child application. Having a location attribute in both, meaning repeating the configuration element with different values also confuses the .NET Framework.

Anonymous said...

Looks like you are on complete vacation, haven't seen any new topics. Lets starts something about XAML, WPF, WCF.... :-)

HemantG said...

i think there is another way out have a look at this post http://forums.asp.net/p/1205233/2108143.aspx#2108143

Anonymous said...

The excellent message gallantly)))

Anonymous said...

It is remarkable, this rather valuable opinion

Anonymous said...

I want not approve on it. I over warm-hearted post. Particularly the title attracted me to be familiar with the unscathed story.

Anonymous said...

Is there anyway around this other than the mentioned solutions? Isn't it standard work to create sites which have different sitemaps for different users? So shouldn't there be a standard solution?
Wegenbelasting berekenen

Anonymous said...

This is my first time go to see at here and i am
actually impressed to read everthing at single place.
Also visit my homepage : black friday 2012 ads

Anonymous said...

We stumbled over here from a different page and thought I
should check things out. I like what I see so now i am following you.
Look forward to going over your web page repeatedly.
Here is my site : private krankenvers

Anonymous said...

hello there and thank you for your information – I've certainly picked up something new from right here. I did however expertise several technical points using this website, as I experienced to reload the site many times previous to I could get it to load properly. I had been wondering if your web host is OK? Not that I'm complaining, but slow loading instances times will
very frequently affect your placement in google and could damage your high quality
score if advertising and marketing with Adwords. Anyway I'm adding this RSS to my email and can look out for much more of your respective exciting content. Make sure you update this again soon.
My weblog : internet trotz schufa

Anonymous said...

Link exchange is nothing else but it is only placing the other person's webpage link on your page at suitable place and other person will also do similar for you.

My blog post - affiliate product marketing
Also visit my page ;

Anonymous said...

Hi, I think your blog might be having browser compatibility issues.
When I look at your website in Ie, it looks fine but when opening in Internet Explorer, it has some overlapping.
I just wanted to give you a quick heads up!
Other then that, terrific blog!

Look at my web blog :: free affiliate website
Feel free to surf my blog -

Anonymous said...

In fact no matter if someone doesn't know afterward its up to other people that they will help, so here it happens.
Review my blog post internet marketing companies

Anonymous said...

My partner and I stumbled over here by a different web address
and thought I should check things out. I like what I see so now i'm following you. Look forward to exploring your web page repeatedly.

My blog post: krankenversicherung leistungen
Also visit my web page : refinance home equity loans

Anonymous said...

This design is incredible! You obviously know how to keep a reader amused.
Between your wit and your videos, I was almost moved to
start my own blog (well, almost...HaHa!) Wonderful job.
I really loved what you had to say, and more than that, how
you presented it. Too cool!
Also visit my web site ; herrenschuh online shop

Anonymous said...

This excellent website really has all the information I wanted concerning this subject
and didn't know who to ask.

Also visit my web site beitragssatz private Krankenversicherung

Anonymous said...

Does your blog have a contact page? I'm having a tough time locating it but, I'd like to shoot you
an e-mail. I've got some recommendations for your blog you might be interested in hearing. Either way, great site and I look forward to seeing it expand over time.

Here is my web page ... selbstständig private krankenversicherung
Also see my page :: private krankenversicherung vergleich stiftung warentest

Anonymous said...

It's an remarkable paragraph in favor of all the web visitors; they will take advantage from it I am sure.

my web site: buy cheap social bookmark

Anonymous said...

I blog quite often and I truly appreciate your information.
This great article has really peaked my interest. I am going to bookmark your blog
and keep checking for new information about once per week.
I subscribed to your Feed as well.

Also visit my blog :: versicherung im vergleich
Also see my web site :: gesetzliche krankenversicherungen vergleichen

Anonymous said...

Hi! I've been reading your web site for some time now and finally got the bravery to go ahead and give you a shout out from New Caney Texas! Just wanted to mention keep up the fantastic job!

Also visit my blog post :: ideas for opening a business

Anonymous said...

My family every time say that I am wasting my time here at net, however I know I am
getting knowledge every day by reading such pleasant posts.


Feel free to surf to my page ... Read �
my web page > Kredit suche

Anonymous said...

These minеrals are actually cruciаl
to the wellbеing of your human bοdy. Fοr examρle, Chlοгinе
is useԁ as a disіnfectant in thе treatment process by municipalities.
The specifіc technique іn RO will ωоrk wіll bе as follows:
Reverse osmosis pushes the lіquid through the semi-peгmeable membrane.



My ѕіte reverse Osmosis water Filter at home depot

Anonymous said...

Thanks for a marvelous posting! I certainly enjoyed reading it, you
might be a great author.I will be sure to bookmark your blog and definitely will come back sometime soon.
I want to encourage you continue your great writing, have a nice weekend!


Also visit my blog ... krankenversicherung kind privat

Anonymous said...

Very soon this web site will be famous among all blog people, due
to it's good articles

Also visit my web site ... Mouse Click The Next Internet Page
my site > Обсуждение участника:LanceIVPO — Veterina

Anonymous said...

Hi, after reading this amazing paragraph i am also happy to
share my familiarity here with colleagues.

Feel free to surf to my blog post - search engine optimise

Anonymous said...

Pretty great post. I simply stumbled upon your weblog
and wanted to say that I have truly loved browsing your blog posts.
After all I'll be subscribing for your feed and I hope you write once more soon!

Feel free to visit my weblog; Andy

Anonymous said...

I'd like to find out more? I'd want to find out more details.


Feel free to surf to my homepage - how to Lose belly Fat

Anonymous said...

Your style is unique in comparison to other folks I've read stuff from. Thanks for posting when you've got the
opportunity, Guess I will just book mark this site.

Check out my blog post - world of tanks hack

Anonymous said...

You really make it appear so easy along with your presentation but I in finding this matter to be actually something that I believe I might
never understand. It sort of feels too complicated
and very broad for me. I'm looking forward to your next post, I'll try to get the hold of it!


Here is my blog post ... More Signup bonuses

Anonymous said...

First off I want to say terrific blog! I had a quick question that I'd like to ask if you do not mind. I was interested to find out how you center yourself and clear your thoughts prior to writing. I have had a hard time clearing my thoughts in getting my ideas out. I do take pleasure in writing however it just seems like the first 10 to 15 minutes are lost just trying to figure out how to begin. Any ideas or tips? Cheers!

Feel free to visit my web page :: click through the following web page

Anonymous said...

Great article! That is the type of information that are
meant to be shared around the web. Disgrace on Google for no longer positioning this publish higher!
Come on over and consult with my web site .
Thank you =)

my blog; World Of Tanks Hack

Anonymous said...

Everyone loves what you guys are up too. Such clever
work and reporting! Keep up the awesome works guys I've added you guys to my own blogroll.

Take a look at my web page - We ROAR!: SelenaiyRussellmf

Anonymous said...

It's appropriate time to make a few plans for the longer term and it's
time to be happy. I have learn this submit and if I
may I wish to counsel you few attention-grabbing issues or suggestions.
Perhaps you could write subsequent articles regarding this article.
I desire to read more issues approximately it!

My website: Unknown

Anonymous said...

I really like your blog.. very nice colors & theme.
Did you make this website yourself or did you hire someone to do it for you?
Plz reply as I'm looking to construct my own blog and would like to find out where u got this from. appreciate it

my blog post; Unknown

Anonymous said...

Hello to all, how is everything, I think every one is getting more from this
site, and your views are pleasant designed for new viewers.


My page: Unknown

Anonymous said...

When someone writes an post he/she keeps the thought of a user in his/her mind that how a user
can be aware of it. Thus that's why this post is outstdanding. Thanks!

Have a look at my blog post: kczcaitli.datingish.com

Anonymous said...

Hi i am kavin, its my first time to commenting anywhere, when i read this post
i thought i could also make comment due to this brilliant article.



Also visit my site - Unknown

Anonymous said...

Great information. Lucky me I discovered your site by accident
(stumbleupon). I have saved as a favorite for later!



Review my weblog :: Unknown

Anonymous said...

you're in point of fact a good webmaster. The site loading pace is incredible. It kind of feels that you're doing any unique trick.
Furthermore, The contents are masterwork. you've done a fantastic activity in this topic!

My weblog - Unknown

Anonymous said...

I loved as much as you'll receive carried out right here. The sketch is tasteful, your authored subject matter stylish. nonetheless, you command get got an nervousness over that you wish be delivering the following. unwell unquestionably come more formerly again since exactly the same nearly very often inside case you shield this increase.

My page ... Unknown

Anonymous said...

Nice blog right here! Additionally your site rather a lot
up fast! What web host are you the usage of? Can I am getting your associate hyperlink to your host?
I desire my web site loaded up as quickly as yours lol

My website Unknown

Anonymous said...

Very nice article. I absolutely appreciate this website.
Thanks!

Here is my site ... Microsoft points

Anonymous said...

Hello! I could have sworn I've been to this blog before but after browsing through some of the posts I realized it's new
to me. Nonetheless, I'm definitely happy I stumbled upon it and I'll be book-marking it and checking
back frequently!

Feel free to visit my web site ... download 7zip

Anonymous said...

Hello excellent website! Does running a blog like this require a massive amount work?
I've virtually no expertise in programming but I was hoping to start my own blog in the near future. Anyways, should you have any ideas or tips for new blog owners please share. I understand this is off topic but I just wanted to ask. Cheers!

Here is my web site Unknown

Anonymous said...

It's perfect time to make some plans for the long run and it's
time to be happy. I have read this put up and if I may just I want to
suggest you some fascinating issues or advice.
Maybe you can write subsequent articles regarding this article.

I desire to read more issues about it!

My site - http://www.ghanaweb.Com/

Anonymous said...

Hi there, its fastidious paragraph about media print,
we all understand media is a wonderful source of facts.


Feel free to surf to my website :: Leonorves.Datingish.hk

Anonymous said...

Heya i'm for the primary time here. I came across this board and I to find It truly helpful & it helped me out much. I hope to present something again and aid others such as you helped me.

Here is my page; unknown

Anonymous said...

Since you now learn about a few of the differing types and characteristics of jewelry that are available, you can make an educated decision with the jewelry shop. With a little luck, creating choosing which kind of jewelry to acquire, will certainly be a stress-cost-free and exciting encounter, now that you are-informed and eager to go help make your acquire!In The Event You Use Environmentally friendly Vitality? Browse The Factors Why! [url=http://ironsteelfootwear.com/list_group.html]Nike Air Max[/url]

Anonymous said...

I every time used to study article in news papers but now as I am a user of internet therefore from now I am using net for content,
thanks to web.

My page :: Stretch Marks

Anonymous said...

I am genuinely delighted to glance at this web site posts
which includes lots of helpful facts, thanks for providing these statistics.


my page ps3 jailbreak

Anonymous said...

Hi there, I desire to subscribe for this blog to take most up-to-date updates, so where can
i do it please help.

Stop by my web page Mon Jervois

Anonymous said...

If some one wants to be updated with most recent technologies then he must be go to see this site and be up
to date everyday.

My page; Unknown

Anonymous said...

Great information. Lucky me I discovered your site by accident (stumbleupon).
I have saved as a favorite for later!

my web blog - Http://Www.Blogymate.Com/Post.Aspx?Blogid=3957729&T=Changed-Info-Pet-Dog-Diarrhea-Treatment

Anonymous said...

Hey there! I know this is somewhat off topic but I was wondering if you knew where I could find a captcha plugin for my
comment form? I'm using the same blog platform as yours and I'm having problems finding one?
Thanks a lot!

Here is my weblog http://www.ghanaweb.com/ghanahomepage/blogs/blog.article.php?blog=144787&id=1000214143

Anonymous said...

Hiya! Quick question that's totally off topic. Do you know how to make your site mobile friendly? My weblog looks weird when browsing from my iphone 4. I'm trying to find a template or plugin that might
be able to resolve this issue. If you have any suggestions,
please share. Many thanks!

my web blog: Coconut Oil For Hair

Anonymous said...

Awesome! Its genuinely awesome article, I have got much
clear idea on the topic of from this post.

Check out my blog: Unknown

Anonymous said...

Hello, after reading this remarkable article i am also cheerful to
share my knowledge here with mates.

Look at my page: http://www.flixya.com/blog/5254893/Pure-Home-Remedies-Regarding-Dry-Scalp-Plus

Anonymous said...

Thank you for any other informative blog. The place else could I am getting that kind of info written in such an ideal means?
I have a undertaking that I'm just now running on, and I have been on the look out for such information.

Feel free to visit my webpage; refinishing hardwood floors

Anonymous said...

I read this piece of writing fully on the topic
of the resemblance of hottest and preceding technologies, it's amazing article.

Take a look at my webpage ... recycling facts

Anonymous said...

Everything is very open with a clear description of the challenges.
It was really informative. Your site is very useful. Thank you for
sharing!

Here is my web site Psn Code Generator

Anonymous said...

continuously i used to read smaller content which as well clear
their motive, and that is also happening with this article which I am reading here.


my website; Psn Code Generator

Anonymous said...

I was recommended this blog by my cousin. I am not sure whether this post is written by him
as nobody else know such detailed about my problem. You are
incredible! Thanks!

Feel free to visit my web page :: diarrhea remedies

Anonymous said...

Terrific work! This is the kind of info that are meant to
be shared across the web. Shame on the seek engines for not positioning this post higher!
Come on over and talk over with my site . Thank you =)

my blog post ... tattoo removal cream reviews

Anonymous said...

I really like what you guys are up too. This
sort of clever work and reporting! Keep up the superb
works guys I've incorporated you guys to my own blogroll.

Here is my site :: hexagon fish tanks hexagon fish tank sizes

Anonymous said...

Just desire to say your article is as astounding.
The clearness for your put up is simply cool and that i can suppose
you are a professional on this subject. Fine along
with your permission allow me to clutch your RSS
feed to keep up to date with approaching post. Thank you a million
and please continue the enjoyable work.

Here is my homepage; glass hexagon fish tank

Anonymous said...

Wow, this piece of writing is pleasant, my younger sister is analyzing such
things, so I am going to tell her.

Feel free to surf to my site Unknown

Anonymous said...

In this particular stage additionally many people turn out to be anxious and also miserable.
When getting a cold sore, they will eat one pound, or 300 grams, of
flounder. Over-the-Counter Analgesics: Aspirin, Tylenol or Ibuprofen can help with cold sore pain.


Here is my weblog ... cold sore cure

Anonymous said...

Link exchange is nothing else however it is only placing the other person's blog link on your page at suitable place and other person will also do same for you.

Feel free to visit my blog post: world of tanks hack

Anonymous said...

I was suggested this blog by my cousin. I am not sure whether this post is
written by him as nobody else know such
detailed about my trouble. You are incredible! Thanks!

Feel free to visit my homepage Unknown

Anonymous said...

I do trust all of the concepts you have offered in your post.
They are very convincing and will definitely work.
Still, the posts are very quick for newbies.
Could you please lengthen them a bit from next time?
Thanks for the post.

Look into my site: Diaper Rash Remedies

Anonymous said...

Hi there, this weekend is nice in favor of me, since this moment i am reading
this fantastic educational post here at my home.



my site :: Cheap Bouncy Castles For Sale

Anonymous said...

Hmm it looks like your site ate my first comment (it was super long) so I guess I'll just sum it up what I wrote and say, I'm
thoroughly enjoying your blog. I as well am an aspiring blog blogger
but I'm still new to the whole thing. Do you have any tips for first-time blog writers? I'd really
appreciate it.

my web page :: lyrics

Anonymous said...

What's up i am kavin, its my first occasion to commenting anywhere, when i read this post i thought i could also make comment due to this good piece of writing.

Also visit my web site :: donwload lagu gratis

Anonymous said...

Great beat ! I would like to apprentice while you amend your site, how
can i subscribe for a weblog website? The account aided me a acceptable deal.
I have been a little bit familiar of this your broadcast provided vibrant transparent
idea

Review my site :: top boho chic clothing

Anonymous said...

Hi there! I could have sworn I've been to this site before but after going through a few of the posts I realized it's new
to me. Anyways, I'm certainly happy I stumbled upon it and I'll be bookmarking it and checking back frequently!


Also visit my blog post website marketing company south wales

Anonymous said...

Fabulous, what a blog it is! This blog gives valuable data to us, keep it
up.

Here is my blog :: seo company uk

Anonymous said...

I leave a leave a response whenever I especially enjoy a article on a blog or if I have
something to valuable to contribute to the conversation.
It's a result of the fire displayed in the post I browsed. And after this article "Beware of Nested Web.Config's!
". I was moved enough to post a leave a responsea response :) I do have a couple of questions for you if it's allright. Is it just me or does it seem like a few of these responses appear like they are written by brain dead people? :-P And, if you are writing on additional online sites, I'd like to follow you. Would you list every one of your social sites like your Facebook page, twitter feed, or linkedin profile?

Here is my site: Www.Bestcoconutoilforhair.Com

Anonymous said...

Hey there just wanted to give you a quick heads up and
let you know a few of the images aren't loading correctly. I'm not
sure why but I think its a linking issue. I've tried it in two different web browsers and both show the same results.

my webpage - Unknown

Anonymous said...

Undeniably believe that which you said. Your favorite reason
appeared to be on the internet the easiest thing to take into account of.
I say to you, I certainly get irked even as folks think about concerns that they plainly do not understand about.
You controlled to hit the nail upon the highest as
neatly as defined out the whole thing without having
side effect , other folks could take a signal. Will likely be again to get more.
Thank you

Also visit my blog; Unknown

Anonymous said...

Fantastic beat ! I would like to apprentice while you amend your site, how can i subscribe for
a blog web site? The account helped me a acceptable deal.
I had been tiny bit acquainted of this your broadcast provided bright
clear concept

My blog post :: imbui

Anonymous said...

I blog often and I truly thank you for your content.
Your article has really peaked my interest. I am going to book mark
your site and keep checking for new details about once per week.
I opted in for your RSS feed as well.

Feel free to visit my page ... coconut oil for hair

Anonymous said...

Hurrah! In the end I got a blog from where I
know how to in fact get valuable data regarding
my study and knowledge.

Here is my web page; permanent hair straightening

Anonymous said...

This piece of writing is in fact a fastidious one it helps new web
viewers, who are wishing for blogging.

my webpage: Eco Sanctuary

Anonymous said...

It's very effortless to find out any topic on net as compared to textbooks, as I found this paragraph at this website.

Here is my page; Ps3 Jailbreak

Anonymous said...

I couldn't refrain from commenting. Perfectly written!

Look at my blog post ... The Interlace

Anonymous said...

Hey There. I found your blog using msn. This is an extremely well written article.
I'll be sure to bookmark it and come back to read more of your useful info. Thanks for the post. I'll certainly comeback.


my page :: Microsoft Office Gratuit

Anonymous said...

Wonderful blog! Do you have any hints for aspiring writers?
I'm planning to start my own blog soon but I'm
a little lost on everything. Would you advise starting with a free platform like Wordpress or go for a paid option?
There are so many choices out there that I'm totally overwhelmed .. Any recommendations? Appreciate it!

Also visit my blog post :: Code Psn Gratuit

Anonymous said...

Hello! This is my first visit to your blog! We are
a team of volunteers and starting a new initiative in a community in the same niche.
Your blog provided us valuable information to work on.
You have done a wonderful job!

Here is my website: World Of Tanks Hack

Anonymous said...

Pretty section of content. I just stumbled upon your
site and in accession capital to assert that
I acquire in fact enjoyed account your blog posts. Anyway
I'll be subscribing to your feeds and even I achievement you access consistently rapidly.

my homepage ... league of legends hack

Anonymous said...

Once you are done, Pay - Pal will generate a code for
you that you simply copy and paste into your web page where you wish it to
appear and you are ready to start selling. This will essentially make the fees seem minimal,
as they easily pay for themselves overtime and you
are still able to make a profit. there is no cost involved in paying the money to
the Pay - Pal users.

my homepage; paypal money adder

Anonymous said...

Hey there! I know this is kinda off topic but I was
wondering if you knew where I could find a captcha plugin for my
comment form? I'm using the same blog platform as yours and I'm having difficulty finding
one? Thanks a lot!

Also visit my web blog :: how To jailbreak a ps3

Anonymous said...

Heya! I just wanted to ask if you ever have any issues with hackers?
My last blog (wordpress) was hacked and I ended up losing many months of hard work
due to no back up. Do you have any solutions to protect against hackers?


Here is my web page: psn Code Generator

Anonymous said...

I'm curious to find out what blog system you have been utilizing? I'm experiencing some minor security issues with my latest website
and I would like to find something more safeguarded.
Do you have any recommendations?

Review my website :: Psn Code Generator

Anonymous said...

This design is incredible! You obviously know how to keep a reader entertained.

Between your wit and your videos, I was almost moved to start my own blog (well, almost.
..HaHa!) Fantastic job. I really enjoyed what you had to say, and more than that, how you presented it.
Too cool!

Here is my web page Minecraft Gift Code Generator

Anonymous said...

It's a pity you don't have a donate button!
I'd without a doubt donate to this fantastic blog! I suppose for now i'll settle for bookmarking and adding your RSS feed
to my Google account. I look forward to fresh updates and will share this site with my Facebook
group. Talk soon!

Here is my webpage: Free Psn Codes

Anonymous said...

Great blog here! Also your site loads up fast! What host are you using?

Can I get your affiliate link to your host?

I wish my web site loaded up as quickly as yours lol

my website ... Minecraft Crack

Anonymous said...

Hi there, everything is going nicely here and ofcourse every one is sharing data, that's actually excellent, keep up writing.

Also visit my web site :: Guarda Roupas

Anonymous said...

smokeless cigarettes, electronic cigarette brands, e cigarette, electronic cigarette, e cig forum, electronic cigarette