473,399 Members | 4,192 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,399 software developers and data experts.

Newby: Unexpected Error Handling in C# Web Applications

Hi:

I'm a VB.NET web programmer who is writing my first C# web application!

I'm having a problem trapping and logging unexpected errors. In my VB.NET
applications I have a routine called by global.asax that will trap the error
and write it to a text file. I've tried to convert that code and I'm totally
confused!

(This is not about try/catch)

I've searched MSDN and Google and there are very complicated examples
however I need something simple to start with. I need to know the error and
the various fields on the screen so I can debug in the event of an
unexpected crash.

If anyone knows of a SIMPLE example then I would appreciate hearing about
it.

Thanks very much!

Fred
Nov 17 '05 #1
3 1739
If you have the code in VB.NET and you want it converted to C#, I'll be glad
to do it for you if you post it. You can trap the exception doing exactly
what you mention, but I don't know about getting all of the fields on the
page, out of the box I'm not sure there's a way to do that b/c those fields
may have nothing to do with the error and not even in the scope of it.

--
W.G. Ryan, MVP

www.tibasolutions.com | www.devbuzz.com | www.knowdotnet.com
"Fred Nelson" <fr**@smartybird.com> wrote in message
news:OL**************@TK2MSFTNGP15.phx.gbl...
Hi:

I'm a VB.NET web programmer who is writing my first C# web application!

I'm having a problem trapping and logging unexpected errors. In my VB.NET
applications I have a routine called by global.asax that will trap the
error
and write it to a text file. I've tried to convert that code and I'm
totally
confused!

(This is not about try/catch)

I've searched MSDN and Google and there are very complicated examples
however I need something simple to start with. I need to know the error
and
the various fields on the screen so I can debug in the event of an
unexpected crash.

If anyone knows of a SIMPLE example then I would appreciate hearing about
it.

Thanks very much!

Fred

Nov 17 '05 #2
If it's under 100 lines, use the Demo Edition of our Instant C# VB.NET to C#
converter - ASP.NET Converter tab (www.instantcsharp.com). If it's longer
than that contact us directly.

David Anton
www.tangiblesoftwaresolutions.com
Home of the Instant C# VB.NET to C# converter
and the Instant VB C# to VB.NET converter

"Fred Nelson" wrote:
Hi:

I'm a VB.NET web programmer who is writing my first C# web application!

I'm having a problem trapping and logging unexpected errors. In my VB.NET
applications I have a routine called by global.asax that will trap the error
and write it to a text file. I've tried to convert that code and I'm totally
confused!

(This is not about try/catch)

I've searched MSDN and Google and there are very complicated examples
however I need something simple to start with. I need to know the error and
the various fields on the screen so I can debug in the event of an
unexpected crash.

If anyone knows of a SIMPLE example then I would appreciate hearing about
it.

Thanks very much!

Fred

Nov 17 '05 #3
David:

Thank you VERY much - your conversion program is FANTASTIC!

Fred
"David Anton" <Da********@discussions.microsoft.com> wrote in message
news:69**********************************@microsof t.com...
If it's under 100 lines, use the Demo Edition of our Instant C# VB.NET to C# converter - ASP.NET Converter tab (www.instantcsharp.com). If it's longer
than that contact us directly.

David Anton
www.tangiblesoftwaresolutions.com
Home of the Instant C# VB.NET to C# converter
and the Instant VB C# to VB.NET converter

"Fred Nelson" wrote:
Hi:

I'm a VB.NET web programmer who is writing my first C# web application!

I'm having a problem trapping and logging unexpected errors. In my VB.NET applications I have a routine called by global.asax that will trap the error and write it to a text file. I've tried to convert that code and I'm totally confused!

(This is not about try/catch)

I've searched MSDN and Google and there are very complicated examples
however I need something simple to start with. I need to know the error and the various fields on the screen so I can debug in the event of an
unexpected crash.

If anyone knows of a SIMPLE example then I would appreciate hearing about it.

Thanks very much!

Fred

Nov 17 '05 #4

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

Similar topics

2
by: Anil K. Gupta | last post by:
Hello, I am developing an application similar to MSN Messenger using C#.Net. I am using the Frameworks' System.Net.Sockets class for creating sockets and then communicating.Everything seems to...
17
by: Fred Nelson | last post by:
Hi: I'm trying to implement an overall error handler in my VB.NET windows application. I need to place an "On Error Goto" in "Sub Main". I have tried to create a Sub Main and have had no...
5
by: r.nikhilk | last post by:
Hi, Currently, we are porting C++ applications from 32 bit to 64 bit on AIX platform. (The current version of AIX is 5.3 and xlC verison is 8.0). We are able to compile the applications by...
2
by: jbolty | last post by:
There have been a few threads talking about using the tilde ~, to reference the webroot path. My problem though is handling an unexpected tilde in a url. this url: ...
4
by: John Wright | last post by:
I need some good ideas or references for robust error handling in VB.NET. I am using try catch but find myself using the generic exception handler. I would like to get more precise error handling...
1
by: Mrozik | last post by:
Hi! I have a problem - after deploying application in client environment, on some client machines occured error. Environment: App server: ASP.NET WebService/Win 2003/ secured SSL (.NET 2.0)...
5
by: alexrixhardson | last post by:
Hi guys, I am a newby in the C/C++ world, and I am beginning to work on a rather simple TCP/IP proxy application which must be able to handle large volume of data as quickly as possible. ...
2
by: Axel Gallus | last post by:
I am desperately looking for some resources dealing with error handling in c++. Don't get me wrong.... I have very detailed knowledge of exceptions, assertions and invariants, but what is...
2
by: atishrg | last post by:
Hello All Need your help.. I created addin for outlook 2007 in vs2005(vb.net)... It is working fine now I Migrated that to vs2008 and created setup for that in vs2008...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
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,...
0
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
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
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
isladogs
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...

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.