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:
- 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?
- GAC the assembly. That way it's available to the child, and any other application, whether or not it's needed.
- Restructure IIS to avoid the problem.


11 comments:
Hey, I recently added a news widget from www.widgetmate.com to my blog. It shows the latest news, and just took a copy and paste to implement. Might interest you too.
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.
Looks like you are on complete vacation, haven't seen any new topics. Lets starts something about XAML, WPF, WCF.... :-)
i think there is another way out have a look at this post http://forums.asp.net/p/1205233/2108143.aspx#2108143
we provide a buy last chaos goldand 2moons gold and2moons power leveling wow power leveling 2moons gold andKnight Golda buy aoc gold or last chaos gold wow power levelinglast chaos gold oraoc gold
Oes Tsetnoc one of the ways in which we can learn seo besides Mengembalikan Jati Diri Bangsa. By participating in the Oes Tsetnoc or Mengembalikan Jati Diri Bangsa we can improve our seo skills. To find more information about Oest Tsetnoc please visit my Oes Tsetnoc pages. And to find more information about Mengembalikan Jati Diri Bangsa please visit my Mengembalikan Jati Diri Bangsa pages. Thank you So much.
The excellent message gallantly)))
It is remarkable, this rather valuable opinion
I want not approve on it. I over warm-hearted post. Particularly the title attracted me to be familiar with the unscathed story.
This is really innovative and a new idea, I like this concept and the way it is carried out in so light and cool manner. I concur with your conclusions and will eagerly look forward to your future updates.Web Hosting Solution
It was very interesting to read about this in your article. blood pressure Read a useful article about tramadol tramadol
Post a Comment