473,324 Members | 2,473 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 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 1737
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Robert Wing | last post by:
I support an MS Access application in which errors are trapped using the On Error statement. Just recently, the users of this system have experienced run-time error number 3021 on a random basis. ...
2
by: Steve Richfield | last post by:
My error handler works GREAT. However, VBA seems to have some bugs/features that are causing it fits. The little snippet that I put at the end of each routine looks like this: Error_Handler: If...
3
by: Nathan Bloomfield | last post by:
Hi there, I am having difficulty with a piece of code which would work wonders for my application if only the error trapping worked properly. Basically, it works as follows: - adds records...
13
by: Thelma Lubkin | last post by:
I use code extensively; I probably overuse it. But I've been using error trapping very sparingly, and now I've been trapped by that. A form that works for me on the system I'm using, apparently...
3
by: Smriti Dev | last post by:
Hi There, I have the following code and when I try to run it, I get a type mismatch error. I would really appreciate your help with this. Thanks kindly, smriti --- Private Sub cmdOK_Click()
2
by: Bill Stock | last post by:
I have a subform which is causing a 3314 (Field can't contain a null value because required is set to True) error. I solved this problem by trapping it in the before update event. But then I...
2
by: Captain Nemo | last post by:
I'm still using Office 2000 myself, but some of my clients have Office 2003. I've recently added a piece of code to create an instance of Word, open a document, fill in the blanks and become...
9
by: 47computers | last post by:
Pretty new to PHP, I recently started learning about error trapping. As of right now, I include the following into a page in my website: -------BEGIN PASTE-------- error_reporting(E_ERROR |...
2
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.