By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,960 Members | 2,324 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,960 IT Pros & Developers. It's quick & easy.

SEHException in FolderBrowserDialog

P: n/a
Hello,

I am running my windows application on a 64 bit machine with MS .NET
Framework 2.0 (x64). When using the FolderBrowserDialog an unhandled
exception was coming time and again.
After putting the code to show the FolderBrowserDialog in a try catch I
was able to catch the exception but my application was still crashing.
A corresponding error was logged by .net Framework in the Apllication
Event Logs.

The stack trace and the Event Log entry are given below.
If anyone could please explain what's wrong I would be much obliged.

Thanks ,
Mohit

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

************** Exception Text **************
System.Runtime.InteropServices.SEHException: External component has
thrown an exception.
at
System.Windows.Forms.UnsafeNativeMethods.Shell32.S HBrowseForFolder(BROWSEINFO
lpbi)
at System.Windows.Forms.FolderBrowserDialog.RunDialog (IntPtr
hWndOwner)
at System.Windows.Forms.CommonDialog.ShowDialog(IWin3 2Window owner)
at
VScanMCInstaller.UCApplicationSettings.buttonBrows eSysFilePath_Click(Object
sender, EventArgs e) in
G:\ALIQUIN\VScanSolution\SetupProjects\VScanMCInst aller\UCApplicationSettings.cs:line
239
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message&
m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32
msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
VScanMCInstaller
Assembly Version: 1.0.60920.1
Win32 Version: 1.0.060920.1
CodeBase:
file:///C:/Mohit/VScanMCInstaller/bin/Debug/VScanMCInstaller.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (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 computer
rather than be handled by this dialog box.
================================================== =================

Event Type: Error
Event Source: .NET Runtime 2.0 Error Reporting
Event Category: None
Event ID: 1000
Date: 9/21/2006
Time: 2:05:43 AM
User: N/A
Computer: THORIUM
Description:
The description for Event ID ( 1000 ) in Source ( .NET Runtime 2.0
Error Reporting ) cannot be found. The local computer may not have the
necessary registry information or message DLL files to display messages
from a remote computer. You may be able to use the /AUXSOURCE= flag to
retrieve this description; see Help and Support for details. The
following information is part of the event: vscanmcinstaller.exe,
1.0.60920.1, 451254a3, unknown, 0.0.0.0, 00000000, 0, 000000000000110a.
Data:
0000: 41 00 70 00 70 00 6c 00 A.p.p.l.
0008: 69 00 63 00 61 00 74 00 i.c.a.t.
0010: 69 00 6f 00 6e 00 20 00 i.o.n. .
0018: 46 00 61 00 69 00 6c 00 F.a.i.l.
0020: 75 00 72 00 65 00 20 00 u.r.e. .
0028: 20 00 76 00 73 00 63 00 .v.s.c.
0030: 61 00 6e 00 6d 00 63 00 a.n.m.c.
0038: 69 00 6e 00 73 00 74 00 i.n.s.t.
0040: 61 00 6c 00 6c 00 65 00 a.l.l.e.
0048: 72 00 2e 00 65 00 78 00 r...e.x.
0050: 65 00 20 00 31 00 2e 00 e. .1...
0058: 30 00 2e 00 36 00 30 00 0...6.0.
0060: 39 00 32 00 30 00 2e 00 9.2.0...
0068: 31 00 20 00 34 00 35 00 1. .4.5.
0070: 31 00 32 00 35 00 34 00 1.2.5.4.
0078: 61 00 33 00 20 00 69 00 a.3. .i.
0080: 6e 00 20 00 75 00 6e 00 n. .u.n.
0088: 6b 00 6e 00 6f 00 77 00 k.n.o.w.
0090: 6e 00 20 00 30 00 2e 00 n. .0...
0098: 30 00 2e 00 30 00 2e 00 0...0...
00a0: 30 00 20 00 30 00 30 00 0. .0.0.
00a8: 30 00 30 00 30 00 30 00 0.0.0.0.
00b0: 30 00 30 00 20 00 66 00 0.0. .f.
00b8: 44 00 65 00 62 00 75 00 D.e.b.u.
00c0: 67 00 20 00 30 00 20 00 g. .0. .
00c8: 61 00 74 00 20 00 6f 00 a.t. .o.
00d0: 66 00 66 00 73 00 65 00 f.f.s.e.
00d8: 74 00 20 00 30 00 30 00 t. .0.0.
00e0: 30 00 30 00 30 00 30 00 0.0.0.0.
00e8: 30 00 30 00 30 00 30 00 0.0.0.0.
00f0: 30 00 30 00 31 00 31 00 0.0.1.1.
00f8: 30 00 61 00 0d 00 0a 00 0.a.....

Sep 21 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.