Exception Management Application Block In SubFolders

G

Guest

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
 
M

Morten Mertner

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top