I am currently working on an generic error collection mechanism in
ASP.NET2.0 written using C# that can catch unhandled exception on a web
application in application level. it automatically save an html output
with tables containing environmental detail(client browser detail, form
request detail etc) to a predefined Error folder.
we all know that when an exception occurs in a web application, and you
have not set a custom error page in that application, we will see the
default error page, which is quite useful to developer for debugging
purpose.
now the problem is:
Is there any good way for me to retrieve an string representation of
the HTML output of the DEFAULT error page so i can save them as a
separate file, given that all the client can see would be the custom
error page. something like page printing "We are sorry that an error
occured, the error detail is now logged and an email regarding this has
been send to admin"
there is a few page available on net regarding capturing of html output
of Asp.net pages, but that is not really what i wanted, as it need to
be the error page that is rendered to string.
the idea is the mechanism should log in addition to all the other
details, contain an link to that html output of default error page of
that particular error, so developer can click the link and redirected
to see the line causing error, exception messages, stack trace and all
those stuff. The retrieval of default error page is the hard part for
me.
Has anyone else come across the same problem and got a solution?
if anyone can provide a solution, it would help me greatly! 0 1506 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Senthoorkumaran Punniamoorthy |
last post by:
I am printing these information.
print string.lower(info_res)
print string.lower(md5sum(f_md5))
print len(string.lower(info_res))
print len(string.lower(md5sum(f_md5)))
print str(string.lower(md5sum(f_md5)) == string.lower(info_res))
and the output are
|
by: Ekim |
last post by:
hy,
I've a question concerning exception-handling in c++:
is there a possibility to catch any exception (I know one can do that by
"catch(...)") and display its default-error-message (like in Java)?
or do you have to create your own exceptions and make your own
error-messages?
I would only need the error-number or something like a short description
which exception occured, and subsequently I want to write it to a logfile.
|
by: Michael |
last post by:
Hello,
I have a separate Database class that handles any database work that all my
asp.net pages can use.
My problem is, many times I use try/catch to catch errors, and I want to
output these errors to the webpage with response.write().
Unfortunately Response.anything from within my class generate a "Response is
not declared" error. How can I get Response to work from within a class, or
is there a better way to handle errors in...
|
by: Mark |
last post by:
I've run a few simple tests looking at how query string encoding/decoding gets handled in asp.net, and it seems like the situation is even messier than it was in asp... Can't say I think much of the "improvements", but maybe someone here can point me in the right direction...
First, it looks like asp.net will automatically read and recognize query strings encoded in utf8 and 16-bit unicode, only the latter is some mutant, non-standard...
|
by: r1 |
last post by:
I am relatively inexperienced in using delegates and asynchronous
methods. I read several articles, and then I developed my own code
with a mission to improve the performance. Wow! I cannot believe the
difference in speed! However, the asynch operation fails sometimes,
despite of the fact that it works most of the time. I am really at a
loss how to fix this sporadic and erratic behavior.
This is a web application developed with...
| |
by: David Lozzi |
last post by:
Howdy,
I found a nice little book called ASP.NET 2.0 Cookbook by Michael A Kittel
and Geoffrey LeBlond. Anyway, they have some instructions on how to setup
application level error handling. Most of my functions have try..catch to
email me about an error, then I want the application level to fire off to
send the user to a custom page AND log it in the app log. When an error
occurs on my page, i get a server error
Server Error in...
|
by: =?Utf-8?B?UVNJRGV2ZWxvcGVy?= |
last post by:
I have a C# logging assembly with a static constructor and methods that is
called from another C# Assembly that is used as a COM interface for a VB6
Application. Ideally I need to build a file name based on the name of the
VB6 application. A second choice would be a file name based on the # COM
interface assembly. I have tried calling Assembly.GetCallingAssembly() but
this fails when I use the VB6 client. Is there a way to get this...
|
by: Trapulo |
last post by:
Hello,
with ASP.NET 2.0 Ajax every unexpected error is managed client-side with a
popup that reports the error to the user. In ASP.NET 3.5 this behavor has
been changed: how can I have a similar behavor? I'd like that every
exception raised from ASP.NET runtime during an asyncpostback is managed in
client side with a popup that reports the error message.
thanks
|
by: john6630 |
last post by:
Coming from the .Net world, I am used to the try...catch...finally
approach to error handling. And PHP 5 now supports this approach. But
I am not clear what happens to unhandled errors/exceptioins? Do I
define a default error handler as well as do my try/catch? Can I mix
error handling with the exceptions? Is one approach better than the
other?
TIA
John
|
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:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
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: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |