|
| Multiple Custom Error Page |
 |
Thu, 3 Apr 2008 07:08:36 +0000 |
hello, i want to set custom error page for my website.
my web pages are organized in two folders. "Admin" folder and
"Public" folder. pages in admin folder and public folder uses
different layout.
i want to set different error pages for those two group of pages. so that if a
user gets error while browsing in admin folder he will see error page that uses
layout of the admin. and on the other hand if error is raised in public folder
the layout will be like the one that is used for public pages.
now, how can i set this up?
thanks in advance.
|
| Post Reply
|
| Re: Multiple Custom Error Page |
 |
Thu, 3 Apr 2008 09:46:28 +0000 |
Hi,
Track the error at application level and check the path of page at that time.
Redirect to error page as per containing folder name by that path.
Thanks
|
| Post Reply
|
| Re: Multiple Custom Error Page |
 |
Thu, 3 Apr 2008 09:55:05 +0000 |
you can put a seperate app.config in the admin folder which will overide the
site level app.config. In there you can specify the admin error page using the
"CustomErrors" tag
|
| Post Reply
|
| Re: Multiple Custom Error Page |
 |
Thu, 3 Apr 2008 15:20:32 +0000 |
thanks for the reply.
by the way, i tried the 2nd way. the problem i am facing is the website has
already been deployed in the live server and running. whenever i try to upload a
new web.config file in the admin folder an error occurs.
the error is about, it application can not load some assembly.
any idea, how to fix this thing? the 2nd trick works very fine in the local
machine though.
thanks a lot.
|
| Post Reply
|
|
|
|
|
|
|
|
|
|