How to prevent web.config inheritance in ASP.NET child virtual directories and applications

Google AdSense

If you add a new ASP.NET web site as a virtual directory/application under an existing ASP.NET web site, then you’ll probably be having some problems with web.config inheritance.

Even if the sub-webapp is physically separate, just being in a virtual directory located within another webapp will result in many of the settings being inherited and messing up your sub-webapp.

The method to resolve these issues can be found over at Rick Strahl’s blog entry titled “IIS/ASP.NET Settings and Virtual Directory Inheritance“.

The key is adding in the web.config XML element of <location inheritInChildApplications=”false”> to surround the sections of your top-level web application’s web.config file.

My Related Posts: , , ,

kick it on

Web 3.0 or whatchamacallit

Google AdSense

Bernard Lunn of ReadWriteWeb started an interesting series of articles concerning the direction of the next phase on the Internet during the coming/current recession. He states that we are now in the “whatchamacallit, post-recession phase transition” between Web 2.0 and Web 3.0 (or whatever it will be named).

My Related Posts:

Monday’s Moment of Programming Enlightenment – Part 3

A manager went to the master programmer and showed him the requirements document for a new application. The manager asked the master: “How long will it take to design this system if I assign five programmers to it?”

“It will take one year,” said the master promptly.

“But we need this system immediately or even sooner! How long will it take if I assign ten programmers to it?”

The master programmer frowned. “In that case, it will take two years.”

“And what if I assign a hundred programmers to it?”

The master programmer shrugged. “Then the design will never be completed,” he said.

– Book 3 – Design, The Tao Of Programming

This quote refers to a subject that many have written about and discussed. The most popular book is the Mythical Man Month, which nearly every person with a computer science degree or in a role of project management should read.

Why is the San Diego Padres’ mascot a Friar instead of a Padre?

While attending a Padres game this weekend I was asked “why do the Padres have a friar for their mascot and not a padre?” (paraphrased)

I really had no answer to this question. I hadn’t even thought much about it during my numerous years living in-and-around San Diego.

I attended my first Padre game back at Jack Murphy (“The Murph”) Stadium around 1996 just before Qualcomm purchased the naming rights in 1997.

As a young kid playing baseball very far east of southern California in the 80s, I was (still am) a huge fan of Tony Gwynn and so I watched the Padres from afar. (I’m still holding out hope that he’ll run for mayor and fix all of our city problems…)

Continue reading

How to turn off the annoying restart dialog after installing Windows updates

I have this IIS bug that can’t be squashed. Every time my laptop is rebooted, IIS becomes disabled and can’t be re-enabled without a uninstall and reinstall. I’ve asked everyone that I know and even posted on the Microsoft IIS forums with no luck. So I’ve limited my laptop reboots to only when I’m forced to travel or when I have no other options.

Having to uninstall and re-install IIS means having to also re-install ASP.NET and re-configure all of my virtual directories, web sites, and permissions. This sucks, so when I walked away from my laptop to get a cup of coffee and came back to find that my laptop had automatically rebooted itself, I wasn’t very happy.

So here’s how you can turn off the annoying restart dialog that pops up every 5 minutes or so after a Windows update has been downloaded to your computer. Continue reading