Debugging

W

Wayne Wengert

I created a VB.NET application using VSNET 2003 and then created a
distribution package using VSNET's Setup and Deployment Project. I copied
the setup and msi files to a different system and ran setup - all went fine.
When I run the application I get an error in one process and the ensuing
dialog indicates that if the app was built in debug mode and if the
machine.config has jit set to true I should get jit debugging. This is not
happening? How can I get more information on the error on the machine on
which I am testing the install?

Wayne
 
W

Wayne Wengert

I restarted the test system and now when I run the app I get the following
error )I included the first part of the machine.config file at the end of
this post:

================== Error =========================
Unrecognized configuration section system.windows.forms - line 4

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Configuration.ConfigurationException: Unrecognized configuration
section system.windows.forms
(c:\windows\microsoft.net\framework\v1.1.4322\Config\machine.config line 4)
at
System.Configuration.ConfigurationRecord.ScanSectionsRecursive(XmlTextReader
reader, String configKey)
at System.Configuration.ConfigurationRecord.Load(String filename)
at
System.Configuration.DefaultConfigurationSystem.System.Configuration.IConfig
urationSystem.Init()
at
System.Configuration.ConfigurationSettings.SetConfigurationSystem(IConfigura
tionSystem configSystem)
at System.Configuration.ConfigurationSettings.GetConfig(String
sectionName)
at System.Diagnostics.DiagnosticsConfiguration.GetConfigTable()
at System.Diagnostics.DiagnosticsConfiguration.Initialize()
at System.Diagnostics.DiagnosticsConfiguration.get_SwitchSettings()
at System.Diagnostics.Switch.Initialize()
at System.Diagnostics.Switch.get_SwitchSetting()
at System.Diagnostics.TraceSwitch.get_TraceVerbose()
at System.Windows.Forms.DataGridRelationshipRow.Paint(Graphics g,
Rectangle bounds, Rectangle trueRowBounds, Int32 firstVisibleColumn, Int32
numVisibleColumns, Boolean alignToRight)
at System.Windows.Forms.DataGrid.PaintRows(Graphics g, Rectangle&
boundingRect)
at System.Windows.Forms.DataGrid.PaintGrid(Graphics g, Rectangle
gridBounds)
at System.Windows.Forms.DataGrid.OnPaint(PaintEventArgs pe)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e,
Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
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
----------------------------------------
2005CGLabelProg
Assembly Version: 1.0.1744.28693
Win32 Version: 1.0.1744.28693
CodeBase:
file:///C:/Program%20Files/WSW%20Consulting/2005%20CG%20Labels/2005CGLabelProg.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__b77a5c561934e089/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__b77a5c561934e089/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__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 7.0.5000.0
Win32 Version: 7.10.3052.4
CodeBase:
file:///c:/windows/assembly/gac/microsoft.visualbasic/7.0.5000.0__b03f5f7f11d50a3a/microsoft.visualbasic.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__b77a5c561934e089/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__b77a5c561934e089/system.xml.dll
----------------------------------------
FarPoint.Win.Spread
Assembly Version: 1.0.3.0
Win32 Version: 1.0.3.0
CodeBase:
file:///C:/Program%20Files/WSW%20Consulting/2005%20CG%20Labels/FarPoint.Win.Spread.DLL
----------------------------------------
FarPoint.Win
Assembly Version: 1.0.4.0
Win32 Version: 1.0.4.0
CodeBase:
file:///C:/Program%20Files/WSW%20Consulting/2005%20CG%20Labels/FarPoint.Win.DLL
----------------------------------------
FarPoint.CalcEngine
Assembly Version: 1.0.4.0
Win32 Version: 1.0.4.0
CodeBase:
file:///C:/Program%20Files/WSW%20Consulting/2005%20CG%20Labels/FarPoint.CalcEngine.DLL
----------------------------------------

************** JIT Debugging **************
To enable just in time (JIT) debugging, the config file for this
application or machine (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the machine
rather than being handled by this dialog.


============== machine.config file (partial) =========================
<?xml version="1.0" encoding="UTF-8" ?>

<configuration>
<system.windows.forms jitDebugging="true" />
<configSections>
<!-- tell .NET Framework to ignore CLR sections -->
<section name="runtime"
type="System.Configuration.IgnoreSectionHandler, System, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089" allowLocation="false" />
<section name="mscorlib"
type="System.Configuration.IgnoreSectionHandler, System, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089" allowLocation="false" />
<section name="startup"

..................
=================================================

Wayne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top