473,394 Members | 1,699 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,394 software developers and data experts.

getting confused and going crazy

I have had a monstrous time getting any good debugging info out of the .net
platform.

Using ...
..NET Framework 1.1
Windows 2K Server
VB.NET <- is this the problem?
error handling in the global.asax file.

I am seeing articles that say line numbers are in the ..
Server.GetLastError().toString()
or
Server.GetLastError().StackTrace.toString()

So far I have logged this in the event logger, wrote it to a custom text
file, and emailed it to myself. As it stands I can produce no line numbers.
Even though I have found articles with images showing the line numbers in
the output. Mine have none. (this is when I went crazy).

I am getting no relevant information other than there was an error on a
page.

One thing that is odd. I tried to use the stackframe and iterate through it
and call sf.GetFileLineNumber(). The problem is when I do this, if I call
any other stackframe than 0 my code dies. If I call only 0 then I get line
numbers and page info for global.asax.

At this point I am willing to get out my check book and pay. I am on week 2
of this and have read hundreds of articles and am at the end of my rope.
My goal ...
I want to see a line number and if possible what exactly caused the error.
This can be in a class or function or sub.

If anyone can help I will gladly send you money for a solid solution. Keep
in mind I am using VB in all of my code.

Thanks,
Larry




Nov 18 '05 #1
3 1460
Hi Larry,
I may be wrong but I think you only get line numbers when you are in debug
mode. When you do a build in Release mode that information isn't there any
more.
Steve
"Larry Tate" <dw********@yahoo.com> wrote in message
news:u%****************@TK2MSFTNGP10.phx.gbl...
I have had a monstrous time getting any good debugging info out of the ..net platform.

Using ...
.NET Framework 1.1
Windows 2K Server
VB.NET <- is this the problem?
error handling in the global.asax file.

I am seeing articles that say line numbers are in the ..
Server.GetLastError().toString()
or
Server.GetLastError().StackTrace.toString()

So far I have logged this in the event logger, wrote it to a custom text
file, and emailed it to myself. As it stands I can produce no line numbers. Even though I have found articles with images showing the line numbers in
the output. Mine have none. (this is when I went crazy).

I am getting no relevant information other than there was an error on a
page.

One thing that is odd. I tried to use the stackframe and iterate through it and call sf.GetFileLineNumber(). The problem is when I do this, if I call
any other stackframe than 0 my code dies. If I call only 0 then I get line
numbers and page info for global.asax.

At this point I am willing to get out my check book and pay. I am on week 2 of this and have read hundreds of articles and am at the end of my rope.
My goal ...
I want to see a line number and if possible what exactly caused the error.
This can be in a class or function or sub.

If anyone can help I will gladly send you money for a solid solution. Keep
in mind I am using VB in all of my code.

Thanks,
Larry




Nov 18 '05 #2
Hmm, sound a little strange. Are you making asp.net or windows form.

Beware of debug and release settings. And in the Debug dropdown make sure
the setting´s in configuration manager is correct (I don't know what the
configuration manager is, but once I had excatly the same problem, and they
were caused by this configuration manager)

Good Luck
"Larry Tate" <dw********@yahoo.com> wrote in message
news:u#**************@TK2MSFTNGP10.phx.gbl...
I have had a monstrous time getting any good debugging info out of the ..net platform.

Using ...
.NET Framework 1.1
Windows 2K Server
VB.NET <- is this the problem?
error handling in the global.asax file.

I am seeing articles that say line numbers are in the ..
Server.GetLastError().toString()
or
Server.GetLastError().StackTrace.toString()

So far I have logged this in the event logger, wrote it to a custom text
file, and emailed it to myself. As it stands I can produce no line numbers. Even though I have found articles with images showing the line numbers in
the output. Mine have none. (this is when I went crazy).

I am getting no relevant information other than there was an error on a
page.

One thing that is odd. I tried to use the stackframe and iterate through it and call sf.GetFileLineNumber(). The problem is when I do this, if I call
any other stackframe than 0 my code dies. If I call only 0 then I get line
numbers and page info for global.asax.

At this point I am willing to get out my check book and pay. I am on week 2 of this and have read hundreds of articles and am at the end of my rope.
My goal ...
I want to see a line number and if possible what exactly caused the error.
This can be in a class or function or sub.

If anyone can help I will gladly send you money for a solid solution. Keep
in mind I am using VB in all of my code.

Thanks,
Larry




Nov 18 '05 #3
I think I have that. Is it configured in the web.xml file?

<system.web>
<compilation debug="true" />
<customErrors mode="Off"/>
</system.web>

Do I need to add other parameters?

Thanks,
Larry

"Steve Letford" <St***@hotmail.com> wrote in message
news:uR**************@TK2MSFTNGP11.phx.gbl...
Hi Larry,
I may be wrong but I think you only get line numbers when you are in debug
mode. When you do a build in Release mode that information isn't there any more.
Steve
"Larry Tate" <dw********@yahoo.com> wrote in message
news:u%****************@TK2MSFTNGP10.phx.gbl...
I have had a monstrous time getting any good debugging info out of the .net
platform.

Using ...
.NET Framework 1.1
Windows 2K Server
VB.NET <- is this the problem?
error handling in the global.asax file.

I am seeing articles that say line numbers are in the ..
Server.GetLastError().toString()
or
Server.GetLastError().StackTrace.toString()

So far I have logged this in the event logger, wrote it to a custom text
file, and emailed it to myself. As it stands I can produce no line

numbers.
Even though I have found articles with images showing the line numbers in the output. Mine have none. (this is when I went crazy).

I am getting no relevant information other than there was an error on a
page.

One thing that is odd. I tried to use the stackframe and iterate through

it
and call sf.GetFileLineNumber(). The problem is when I do this, if I call any other stackframe than 0 my code dies. If I call only 0 then I get line numbers and page info for global.asax.

At this point I am willing to get out my check book and pay. I am on week 2
of this and have read hundreds of articles and am at the end of my rope.
My goal ...
I want to see a line number and if possible what exactly caused the

error. This can be in a class or function or sub.

If anyone can help I will gladly send you money for a solid solution. Keep in mind I am using VB in all of my code.

Thanks,
Larry





Nov 18 '05 #4

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

Similar topics

303
by: mike420 | last post by:
In the context of LATEX, some Pythonista asked what the big successes of Lisp were. I think there were at least three *big* successes. a. orbitz.com web site uses Lisp for algorithms, etc. b....
12
by: Gnolen | last post by:
Hi, I am really getting crazy here! I just do not get why this happens with the borders of the td/tr! I just want a border on the bottom of the rows(or td) but I just can't do it!!! I have tried...
4
by: leodippolito | last post by:
Hello sirs, I am trying to send a POST request to a webservice on the click of a button. This will return me an XML document with a list of combo box items. The problem: in FIREFOX, when the...
3
by: Robert Blackwell | last post by:
I don't understand this. Example 8-4 declares a constructor for the Time class that accepts a single argument, and object of type DateTime. DateTime is a type provided by the ..NET Framework...
6
by: Charleees | last post by:
Hi all, I have a DropDown and a TextBox just bekeow it... I have to get the selected value from dropdown and set it as textBox Text.. The thing is i have to do this Without PostBack..... ...
4
by: darrel | last post by:
I'm having a hell of a time figuring this out. ;o) OK, thanks to Oleg, I finally figured out how to get XHTML in my XML by using writeRaw to get it to not encode the XHTML going in. However, I...
12
by: Lennart Anderson | last post by:
I'm having a MySQl table wih a lot of information. I want to present some main fields in a table on one page. Each record do, of course, have a unique ID. The presnted table will have one field as...
1
by: scubber | last post by:
hi, im new (as you're going to painfully aware of in a minute) to programming and was wondering if anyone could help with this little problem: i am trying to read a number of values which are...
5
by: Pekeika | last post by:
Good morning group, When I open my Python window, this is appearing instead of the command line >>>. (I'm somehow new to Python). File "boot_com_servers.py", line 21, in <module> File...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
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...

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.