473,511 Members | 16,864 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Receiving Error eMails...

Greetings,

Is there a way to receive the information that shows on the default
error page within .net in an email?

I have managed to pull out some pieces using:

mail.Body = "Error Description: " + Server.GetLastError().Data.Values +
" <br /><br /> "
+ Server.GetLastError().Message + " <br /><br /> "
+ Server.GetLastError().Data + " <br /><br /> "
+ Server.GetLastError().StackTrace + " <br /><br /> "
+ Server.GetLastError().InnerException + " <br /><br /> "
+ Server.GetLastError().Source;

But the display and what is output on the web page is a lot cleaner and
easier to read than what I am returning above.

I am using a global error setting for the app vs a page by page.

Thanks in advance.

May 18 '06 #1
5 1425
What do u mean by "cleaner and easier to read"?
Just perform html formating like on the error page and http by email, not
the plain text
Greetings,

Is there a way to receive the information that shows on the default
error page within .net in an email?

I have managed to pull out some pieces using:

mail.Body = "Error Description: " + Server.GetLastError().Data.Values +
" <br /><br /> "
+ Server.GetLastError().Message + " <br /><br /> "
+ Server.GetLastError().Data + " <br /><br /> "
+ Server.GetLastError().StackTrace + " <br /><br /> "
+ Server.GetLastError().InnerException + " <br /><br /> "
+ Server.GetLastError().Source;

But the display and what is output on the web page is a lot cleaner and
easier to read than what I am returning above.


--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche

May 18 '06 #2
Thanks for your response...

Basically from comparing what I get in my email, vs what appears on the
actual page, there appear to be a few things that are missing in the
report.

I am just curious if the above way I am trying to get the error is the
best or all that I can receive.

Thanks!

May 18 '06 #3
I guess my big question is, how do I get the source error and souce
file information from the error?

May 18 '06 #4
It's located into Exception.Message if only you not override it by you
InnerException property

"da******@gmail.com" wrote:
I guess my big question is, how do I get the source error and souce
file information from the error?


--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
May 18 '06 #5
Thanks. I think I have just about got it to the point I need.

Take Care!

May 18 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
1871
by: bounce | last post by:
Hello, Consider the following HTML: <form action="/cgi-bin/mailmanager.pl" method="post"> <input type="hidden" name="recipient" value="bounce@springbock.net"> <input type="hidden"...
1
1663
by: Sajsal | last post by:
Hi all I am developing a web app in which the client wants an email sending and receiving functionality. Is it possible in C#. If yes where should I start. If anyone could tell that how long...
1
1750
by: Leszek | last post by:
Hello, A few weeks ago I sent a post about sending encrypted emails. I found out how to encrypt such emails using .NET, but now there is another step: How to receive them? Let's say I have...
2
1998
by: Wayne Wengert | last post by:
I have an aspx page in which I step through emails from a SQL Server table and snd each a custom email message. The emails in that table are all valid formats. When I run the page I immediately get...
2
1659
by: mamatha | last post by:
Hi, I want to send Email in VB to mutiple users through SMTP and receiving emails thruegh IMAP.How can i built.If any one knows the source code or URL please let me know Mamatha
1
1435
by: CS | last post by:
I have a stored procedure which sends out an email to all the users listed in the database. for some reasons I am not getting all emails. could someone offere some assistance? Here's my code....
4
2131
by: tomer.ha | last post by:
Hi there, I'm new to Python, but know other scripting and programming languages. I want to develop a script which will receive emails with attachments from my POP3 account, perform certain...
0
3432
by: Larry D | last post by:
I have a client with a site that users can register at, we collect their emails, if they have one, in an Access db. I have a page that uses CDOSYS to send messages to those emails but I am getting...
0
7138
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...
0
7423
jinu1996
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...
1
7081
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...
0
7510
tracyyun
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...
0
5668
agi2029
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,...
0
3213
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1576
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 ...
1
781
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
447
bsmnconsultancy
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...

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.