469,332 Members | 6,649 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,332 developers. It's quick & easy.

Exception Management Application Block In SubFolders

I currently have the Exception Management Application Block working in my base directory, but when I create pages in a subfolder the Exception Management Application Block is never executed. The error is just displayed back to me like it normaly would be w/out the Exception Management Application Block was never implemented

Do I need to include a web.config file in the subfolder also
If so what all do I need to include in the web.config file. Should it just be the Exception Management Application Block config settings or should it be the entire system.web settings also

I was under the impression if you did not include a web.config file in your subfolders then it will just inherit or use the settings in the web.config file in your base folder.
Is this true or am I wrong

Thanks in advanced
Stev
Jul 21 '05 #1
1 1624
This is probably not it, but you need to make sure the folder is just a
folder and not a virtual directory. If it's the latter then ASP.NET will
create a new application domain and not read or inherit from the
web.config. This would also cause your sessions to "die" when you move
from a page outside to one inside the folder.

You might want to consider using log4net instead of the EMAB. I found it
to be much nicer and a lot more powerful (it supports all kinds of
reporting, including event log publishing).

Yours,
Morten
Steve O'maley wrote:
I currently have the Exception Management Application Block working in my base directory, but when I create pages in a subfolder the Exception Management Application Block is never executed. The error is just displayed back to me like it normaly would be w/out the Exception Management Application Block was never implemented.

Do I need to include a web.config file in the subfolder also?
If so what all do I need to include in the web.config file. Should it just be the Exception Management Application Block config settings or should it be the entire system.web settings also?

I was under the impression if you did not include a web.config file in your subfolders then it will just inherit or use the settings in the web.config file in your base folder.
Is this true or am I wrong?

Thanks in advanced,
Steve

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Abelardo Vacca | last post: by
6 posts views Thread by Páll Ólafsson | last post: by
44 posts views Thread by craig | last post: by
1 post views Thread by =?Utf-8?B?QnJldHQgT3NzbWFu?= | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by haryvincent176 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.