471,123 Members | 791 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,123 software developers and data experts.

error trapping

On my web app, I have a custom error page which the user sees, I then email
the actaul error to myself since the site is up 24/7. I added the email
portion to my app but now I can't see the user friendly error page. How can i
still show the user friendly error page and email myself the erorr when my
page or sites 'breaks'
Sep 14 '06 #1
5 1642
I got this to work, web.config setting.
BUT

when I get the error page and click on a menu option it takes me back to the
login screen. So how can I prevent users to having to log back into the site
if they get an error?
"igotyourdotnet" wrote:
On my web app, I have a custom error page which the user sees, I then email
the actaul error to myself since the site is up 24/7. I added the email
portion to my app but now I can't see the user friendly error page. How can i
still show the user friendly error page and email myself the erorr when my
page or sites 'breaks'
Sep 14 '06 #2
Make sure you have the proper role settings (siteMap) and security settings
(web.config files at different levels) for each page you do not want a
person to have to relog in on.

Without seeing more of the app, this is about as far as I can go, although I
should have a blog entry on menus soon.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************************************************
Think Outside the Box!
*************************************************
"igotyourdotnet" <ig************@nospam.nospamwrote in message
news:20**********************************@microsof t.com...
>I got this to work, web.config setting.
BUT

when I get the error page and click on a menu option it takes me back to
the
login screen. So how can I prevent users to having to log back into the
site
if they get an error?
"igotyourdotnet" wrote:
>On my web app, I have a custom error page which the user sees, I then
email
the actaul error to myself since the site is up 24/7. I added the email
portion to my app but now I can't see the user friendly error page. How
can i
still show the user friendly error page and email myself the erorr when
my
page or sites 'breaks'

Sep 15 '06 #3
what do you mean "role settings (sitemap)?
I'm not using a "sitemap" control or sitemap datasource. I'm using the
treeview menu with static nodes. As for my security I'm not using the asp.net
membership or anything like that. Im' using the forms auth code from my .net
3 app due to i needed to use my existing user tables and couldnt find out how
to use the .NET 2.0 user db until after the fact

"Cowboy (Gregory A. Beamer)" wrote:
Make sure you have the proper role settings (siteMap) and security settings
(web.config files at different levels) for each page you do not want a
person to have to relog in on.

Without seeing more of the app, this is about as far as I can go, although I
should have a blog entry on menus soon.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************************************************
Think Outside the Box!
*************************************************
"igotyourdotnet" <ig************@nospam.nospamwrote in message
news:20**********************************@microsof t.com...
I got this to work, web.config setting.
BUT

when I get the error page and click on a menu option it takes me back to
the
login screen. So how can I prevent users to having to log back into the
site
if they get an error?
"igotyourdotnet" wrote:
On my web app, I have a custom error page which the user sees, I then
email
the actaul error to myself since the site is up 24/7. I added the email
portion to my app but now I can't see the user friendly error page. How
can i
still show the user friendly error page and email myself the erorr when
my
page or sites 'breaks'


Sep 15 '06 #4
Hi,

I think what Gregory suggested is the role settings in web.config as
described here: http://msdn2.microsoft.com/en-us/library/5k850zwb.aspx; you
can protect different location with different roles. If current user visits
a web page which current user role doesn't have been granted, he/she will
be redirected to the login page to re-login with another user/role that can
access the page.

After the user logined, a cookie will be issued to the client browser to
track it; if in any case that the cookie gets cleared, it will also be
redirected to the login page.

Again, these possibilities are really wild guess without actual code. Is it
possible to create a reproducible project and send it to me? Thus I can
help you find the root cause of this issue. Thank you.

Sincerely,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your reply
promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Sep 18 '06 #5
Hi,

I am interested in this issue. Would you mind letting me know the result of
the suggestions? If you need further assistance, feel free to let me know.
I will be more than happy to be of assistance.

Have a great day!

Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Sep 20 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Robert Wing | last post: by
2 posts views Thread by Steve Richfield | last post: by
13 posts views Thread by Thelma Lubkin | last post: by
3 posts views Thread by Smriti Dev | last post: by
2 posts views Thread by Bill Stock | last post: by
2 posts views Thread by Captain Nemo | last post: by
9 posts views Thread by 47computers | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.