473,788 Members | 2,919 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Debugging VB Windows Application

Hi Ng,

I've got a problem with the debugging of a Windows Application. I start the
app in Debug Mode. But when an exception appears, vs.net doesen't jump to
code line where the exception occured. I only get the standard exception
message. So I cannot trace the line, in which the exception occured. I can
set breakpoints, where the ide then stops.

Does anybody know, how I have to configure the app that it will jump to the
exception line in code?

Thanks in Advance

G. Schmelzer

Nov 20 '05 #1
7 1550
* "G. Schmelzer" <as**@de.de> scripsit:
I've got a problem with the debugging of a Windows Application. I start the
app in Debug Mode. But when an exception appears, vs.net doesen't jump to
code line where the exception occured. I only get the standard exception
message. So I cannot trace the line, in which the exception occured. I can
set breakpoints, where the ide then stops.


Post the complete exception text (and the callstack, if possible). You
cannot browse the code if the exception occured in a component you don't
have the source code for, like "System.Windows .Forms.dll".

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2
Hi Herfried,
thanks for your help. Here is the exception message.

Informationen über das Aufrufen von JIT-Debuggen
finden Sie am Ende dieser Meldung, anstatt in diesem Dialogfeld.

************** Ausnametext **************
System.FormatEx ception: Die Eingabezeichenf olge hat das falsche Format.
at Microsoft.Visua lBasic.Compiler Services.Double Type.Parse(Stri ng Value,
NumberFormatInf o NumberFormat)
at Microsoft.Visua lBasic.Compiler Services.Double Type.FromString (String
Value, NumberFormatInf o NumberFormat)
************** Geladene Assemblys **************
mscorlib
Assembly-Version: 1.0.5000.0
Win32-Version: 1.1.4322.573
CodeBase:
file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
ColorCalc
Assembly-Version: 0.0.0.1
Win32-Version: 0.0.0.1
CodeBase: file:///C:/Lokale%20Daten/ColorCalc.Net/ColorCalc.exe
----------------------------------------
System.Windows. Forms
Assembly-Version: 1.0.5000.0
Win32-Version: 1.1.4322.573
CodeBase:
file:///c:/windows/assembly/gac/system.windows. forms/1.0.5000.0__b77 a5c561934e089/system.windows. forms.dll
----------------------------------------
System
Assembly-Version: 1.0.5000.0
Win32-Version: 1.1.4322.573
CodeBase:
file:///c:/windows/assembly/gac/system/1.0.5000.0__b77 a5c561934e089/system.dll
----------------------------------------
System.Drawing
Assembly-Version: 1.0.5000.0
Win32-Version: 1.1.4322.573
CodeBase:
file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03 f5f7f11d50a3a/system.drawing. dll
----------------------------------------
Microsoft.Visua lBasic
Assembly-Version: 7.0.5000.0
Win32-Version: 7.10.3052.4
CodeBase:
file:///c:/windows/assembly/gac/microsoft.visua lbasic/7.0.5000.0__b03 f5f7f11d50a3a/microsoft.visua lbasic.dll
----------------------------------------
ColorCalc.resou rces
Assembly-Version: 0.0.0.1
Win32-Version: 0.0.0.1
CodeBase:
file:///C:/Lokale%20Daten/ColorCalc.Net/de/ColorCalc.resou rces.DLL
----------------------------------------
System.Data
Assembly-Version: 1.0.5000.0
Win32-Version: 1.1.4322.573
CodeBase:
file:///c:/windows/assembly/gac/system.data/1.0.5000.0__b77 a5c561934e089/system.data.dll
----------------------------------------
System.Xml
Assembly-Version: 1.0.5000.0
Win32-Version: 1.1.4322.573
CodeBase:
file:///c:/windows/assembly/gac/system.xml/1.0.5000.0__b77 a5c561934e089/system.xml.dll
----------------------------------------
mscorlib.resour ces
Assembly-Version: 1.0.5000.0
Win32-Version: 1.1.4322.573
CodeBase:
file:///c:/windows/assembly/gac/mscorlib.resour ces/1.0.5000.0_de_b 77a5c561934e089/mscorlib.resour ces.dll
----------------------------------------
System.Windows. Forms.resources
Assembly-Version: 1.0.5000.0
Win32-Version: 1.1.4322.573
CodeBase:
file:///c:/windows/assembly/gac/system.windows. forms.resources/1.0.5000.0_de_b 77a5c561934e089/system.windows. forms.resources .dll
----------------------------------------
Microsoft.Visua lBasic.resource s
Assembly-Version: 7.0.5000.0
Win32-Version: 7.10.3052.4
CodeBase:
file:///c:/windows/assembly/gac/microsoft.visua lbasic.resource s/7.0.5000.0_de_b 03f5f7f11d50a3a/microsoft.visua lbasic.resource s.dll
----------------------------------------

************** JIT-Debuggen **************
Um das JIT-Debuggen (Just-In-Time) zu aktivieren, muss in der
Konfigurationsd atei der Anwendung oder des Computers
(machine.config ) der jitDebugging-Wert im Abschnitt system.windows. forms
festgelegt werden.
Die Anwendung muss mit aktiviertem Debuggen kompiliert werden.

Zum Beispiel:

<configuratio n>
<system.windows .forms jitDebugging="t rue" />
</configuration>

Wenn das JIT-Debuggen aktiviert ist, werden alle nicht behandelten
Ausnahmen an den JIT-Debugger gesendet, der auf dem
Computer registriert ist, und nicht von diesem Dialogfeld behandelt.
Thanks G. Schmelzer
"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> schrieb im Newsbeitrag
news:2i******** ****@uni-berlin.de...
* "G. Schmelzer" <as**@de.de> scripsit:
I've got a problem with the debugging of a Windows Application. I start the app in Debug Mode. But when an exception appears, vs.net doesen't jump to code line where the exception occured. I only get the standard exception
message. So I cannot trace the line, in which the exception occured. I can set breakpoints, where the ide then stops.


Post the complete exception text (and the callstack, if possible). You
cannot browse the code if the exception occured in a component you don't
have the source code for, like "System.Windows .Forms.dll".

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #3
Hi G.

Great that you translated all for Herfried, that will make it a lot easier
for him.

I am sure he can answer it now, I am not sure so I wait on him.
(Not that I cannot read it)

Only for fun

Cor
Nov 20 '05 #4
Hi Cor,
actually, I haven't translated it. As I'm German I use the German Edition of
VS.Net ;)

If you want me to, I can translate it. But I doubt that it will be correct.

G.
"Cor Ligthert" <no**********@p lanet.nl> schrieb im Newsbeitrag
news:OC******** ******@TK2MSFTN GP09.phx.gbl...
Hi G.

Great that you translated all for Herfried, that will make it a lot easier
for him.

I am sure he can answer it now, I am not sure so I wait on him.
(Not that I cannot read it)

Only for fun

Cor

Nov 20 '05 #5
* "G. Schmelzer" <as**@de.de> scripsit:
Informationen über das Aufrufen von JIT-Debuggen
finden Sie am Ende dieser Meldung, anstatt in diesem Dialogfeld.

************** Ausnametext **************
System.FormatEx ception: Die Eingabezeichenf olge hat das falsche Format.
at Microsoft.Visua lBasic.Compiler Services.Double Type.Parse(Stri ng Value,
NumberFormatInf o NumberFormat)
at Microsoft.Visua lBasic.Compiler Services.Double Type.FromString (String
Value, NumberFormatInf o NumberFormat)


There is not much info in the message except that VB.NET tries to parse
a double from a string and fails because the string is in wrong format...

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #6
"G. Schmelzer" <as**@de.de> schrieb
Hi Herfried,
thanks for your help. Here is the exception message.

Informationen über das Aufrufen von JIT-Debuggen
finden Sie am Ende dieser Meldung, anstatt in diesem Dialogfeld.

************** JIT-Debuggen **************
Um das JIT-Debuggen (Just-In-Time) zu aktivieren, muss in der
Konfigurationsd atei der Anwendung oder des Computers
(machine.config ) der jitDebugging-Wert im Abschnitt
system.windows. forms festgelegt werden.
Die Anwendung muss mit aktiviertem Debuggen kompiliert werden.

Zum Beispiel:

<configuratio n>
<system.windows .forms jitDebugging="t rue" />
</configuration>

Wenn das JIT-Debuggen aktiviert ist, werden alle nicht behandelten
Ausnahmen an den JIT-Debugger gesendet, der auf dem
Computer registriert ist, und nicht von diesem Dialogfeld
behandelt.


Did you follow the step described here? After that, the IDE should jump to
the error line instead of you getting the other error dialog.
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #7
Hi Armin,

I did change this Setting. After the change, the breakpoints weren't working
anymore....
G. Schmelzer

"Armin Zingler" <az*******@free net.de> schrieb im Newsbeitrag
news:40******** *************** @news.freenet.d e...
"G. Schmelzer" <as**@de.de> schrieb
Hi Herfried,
thanks for your help. Here is the exception message.

Informationen über das Aufrufen von JIT-Debuggen
finden Sie am Ende dieser Meldung, anstatt in diesem Dialogfeld.

************** JIT-Debuggen **************
Um das JIT-Debuggen (Just-In-Time) zu aktivieren, muss in der
Konfigurationsd atei der Anwendung oder des Computers
(machine.config ) der jitDebugging-Wert im Abschnitt
system.windows. forms festgelegt werden.
Die Anwendung muss mit aktiviertem Debuggen kompiliert werden.

Zum Beispiel:

<configuratio n>
<system.windows .forms jitDebugging="t rue" />
</configuration>

Wenn das JIT-Debuggen aktiviert ist, werden alle nicht behandelten
Ausnahmen an den JIT-Debugger gesendet, der auf dem
Computer registriert ist, und nicht von diesem Dialogfeld
behandelt.


Did you follow the step described here? After that, the IDE should jump to
the error line instead of you getting the other error dialog.
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #8

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

Similar topics

0
3228
by: ZMan | last post by:
Scenario: This is about debugging server side scripts that make calls to middle-tier business DLLs. The server side scripts are legacy ASP 3.0 pages, and the DLLs are managed DLLs converted/developed with VB.NET. What I want from debugging is to be able to step into the methods in the DLLs called from ASP scripts using Visual Studio .NET. Background: For typical script debugging issues, you can read and follow the two documents on...
10
8717
by: Shawn | last post by:
JIT Debugging failed with the following error: Access is denied. JIT Debugging was initiated by the following account 'PLISKEN\ASPNET' I get this messag in a dialog window when I try to open an asp.net page. If I press OK then I get a page with this message: Server Application Unavailable The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser...
3
1864
by: gaugust | last post by:
I am running Visual Studio .Net 2003 with Windows XP Pro and SP2. I am tying to run an ASP .Net application in debug mode. In Web.Config file I have set debug="true" but I am getting an error: "Error while trying to run project: Unable to start debugging on the web server. The project is not configured to be debugged." Not sure why I am getting this error. Here is my Web.Config file: <?xml version="1.0" encoding="utf-8" ?>...
1
1770
by: Jason Smith | last post by:
I'm rather new with vb.net and I'm having problems debugging a large vb.net application. The application is randomly crashing at two locations with "referenced memory at 0x0" violations. My try-catch blocks are not trapping these exceptions. Sysinternals' procexp places the two crash addresses in ntdll.dll, offsets 2a84 and 2b6a - both in RtlLogStackBackTrace.
5
3647
by: snicks | last post by:
I'm trying to exec a program external to my ASP.NET app using the following code. The external app is a VB.NET application. Dim sPPTOut As String sPPTOut = MDEPDirStr + sID + ".ppt" Dim p As New System.Diagnostics.Process 'p.Start(MDEPDirStr & "macrun.exe", sPPTOut) p.Start("C:\WINDOWS\SYSTEM32\CALC.EXE") 'p.Start("C:\WINDOWS\SYSTEM32\macrun.exe", sPPTOut)
0
2063
by: Joseph S. | last post by:
hi all, debugging PHP applications interactively is possible, easy and free. I am talking about PHPEclipse and using it for debugging over several scripts or debugging through a session. Since I have wasted a lot of time writing echo statements all over the code in order to confirm program flow and watch variables, I feel I must share this with others who will be facing similar problems. PHPEclispe users can go to Step 5 directly....
5
7802
by: phnimx | last post by:
Hi , We have developed a number of plug-in .NET Library Components that we typically deploy with our various applications by installing them into the GAC. Each of the applications contains an app.config file referencing arbitrary versions of the plug-in components they wish to consume. Here's the problem: Assuming I have installed any one of our application software,
0
5763
by: Benny | last post by:
I have been trying to instal AutoCAD 2008 on a single PC and get the following Microsoft .NET Framework security error. I have updated to the latest .NET Framework 2.0 software, however, this error occurred with only v1.1 installed. I also got the same error when trying to install an old ACAD 2005 version (as a check). I have successfully installed this version a couple of years ago.
12
35762
by: hjmjao | last post by:
Hi when I run my application for some users it gives me the following message See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.IndexOutOfRangeException: There is no row at position 0. at System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) at System.Data.DataRowCollection.get_Item(Int32 index) at...
0
379
by: stimpy_cm | last post by:
Hi everyone, I’m not a programmer but have a little notion about how things work. I recently downloaded an emulator for my calculator (Texas Instruments Voyage 200), the program uses a library created for .Net framework 1.0 and 1.1. I also activated the compatibility mode for Windows XP SP2 (Which it was the OS the programs were created for). By the way I’ve an HP Pavillion with Intel Core 2 Duo 2.0Ghz processor, and my OS is Windows Vista...
0
9656
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, 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...
0
9498
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,...
0
10177
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 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...
1
10113
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,...
0
9969
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 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...
1
7519
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 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...
0
5402
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...
0
5538
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2896
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 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...

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.