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' 5 1771
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'
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.nospamw rote in message
news:20******** *************** ***********@mic rosoft.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'
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.nospamw rote in message
news:20******** *************** ***********@mic rosoft.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'
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.
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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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. My biggest
problem right now is that the error description associated with this
error is Application-defined or object-defined error. It has always
been my understanding that these error numbers would not be used by
Microsoft and were available...
|
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 Error_Handler("<routine name>", Err) = acDataErrDisplay Then
On Error GoTo 0
Stop: Resume ' Press twice to view the problem.
|
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 from rsSource into rsDest
- if it finds a key violation then it deletes the current record from
rsDest and adds the new record from rsSource. This works perfectly -
but only for the first found duplicate record, it brings up the error
|
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 runs into
problems on the system where it will actually be used, and since I
used so little error-trapping it dies very ungracefully.
I will of course try to fix whatever is causing the error and add
error-trapping to the functions where the...
|
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()
| |
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 started getting a "No Current Record"
error. I wanted to see what err number was coming through, so I put a MsgBox
in the subform's error event. But the MsgBox never came up and the error is
now gone.
Is the MsgBox pulling the focus away from the...
|
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 visible so the document can be
printed and/or modified.
This all takes place within one form, in which the Word.Application and
Word.Document objects are both private form-level variables. Just to be on
the safe side I included this piece of code in...
|
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 | E_PARSE);
set_error_handler("SendErrorReport");
function SendErrorReport($errorNumber, $errorMessage, $errorFile,
$errorLine, $vars)
{
|
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 will be writing this article intended for those who are in the same level, or maybe lower, of my technical knowledge.
I would be using layman's words, or maybe, my own words as how I understand them, hoping, you will understand it the same way that...
|
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 will be writing this article intended for those who are in the same level, or maybe lower, of my technical knowledge.
I would be using layman's words, or maybe, my own words as how I understand them, hoping, you will understand it the same way that...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |