473,320 Members | 2,107 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,320 software developers and data experts.

Unhandled exception on .ShowDialog()

I have the following code:

Dim BuilderForm As frmBuilder
BuilderForm = New frmBuilder(_LastChangedFile.Path)

BuilderForm.Refresh()

BuilderForm.ShowDialog()

And get the following exception on the last line:

An unhandled exception of type 'System.InvalidOperationException' occurred
in system.windows.forms.dll

Additional information: DragDrop registration failed.

Any ideas?

I've tried compiling using .NET 2002 and .NET 2003 and get the same error.
I wasn't getting this error when running on Server 2003 if that's any help!
When looking at the build output, I get the following under .NET 2003:

'DefaultDomain': Loaded
'c:\winnt\microsoft.net\framework\v1.1.4322\mscorl ib.dll', No symbols
loaded.
'auto': Loaded
'c:\winnt\assembly\gac\system\1.0.5000.0__b77a5c56 1934e089\system.dll', No
symbols loaded.

'auto': Loaded
'c:\winnt\assembly\gac\system.drawing\1.0.5000.0__ b03f5f7f11d50a3a\system.dr
awing.dll', No symbols loaded.

'auto': Loaded
'c:\winnt\assembly\gac\system.directoryservices\1. 0.5000.0__b03f5f7f11d50a3a
\system.directoryservices.dll', No symbols loaded.

'auto': Loaded
'c:\winnt\assembly\gac\system.messaging\1.0.5000.0 __b03f5f7f11d50a3a\system.
messaging.dll', No symbols loaded.

'auto': Loaded
'c:\winnt\assembly\gac\system.serviceprocess\1.0.5 000.0__b03f5f7f11d50a3a\sy
stem.serviceprocess.dll', No symbols loaded.

'auto': Loaded
'c:\winnt\assembly\gac\system.data\1.0.5000.0__b77 a5c561934e089\system.data.
dll', No symbols loaded.

Is this ok?
Nov 20 '05 #1
2 4531
Hi,

Sounds like there is an error in the form. Place a breakpoint at
the builderform.showdialog() line and step though the code line by line
until you get the error.

Ken
------------
"Ed Crowley" <cu******@pacbell.net> wrote in message
news:us**************@tk2msftngp13.phx.gbl...
I have the following code:

Dim BuilderForm As frmBuilder
BuilderForm = New frmBuilder(_LastChangedFile.Path)

BuilderForm.Refresh()

BuilderForm.ShowDialog()

And get the following exception on the last line:

An unhandled exception of type 'System.InvalidOperationException' occurred
in system.windows.forms.dll

Additional information: DragDrop registration failed.

Any ideas?

I've tried compiling using .NET 2002 and .NET 2003 and get the same error.
I wasn't getting this error when running on Server 2003 if that's any help! When looking at the build output, I get the following under .NET 2003:

'DefaultDomain': Loaded
'c:\winnt\microsoft.net\framework\v1.1.4322\mscorl ib.dll', No symbols
loaded.
'auto': Loaded
'c:\winnt\assembly\gac\system\1.0.5000.0__b77a5c56 1934e089\system.dll', No
symbols loaded.

'auto': Loaded
'c:\winnt\assembly\gac\system.drawing\1.0.5000.0__ b03f5f7f11d50a3a\system.dr awing.dll', No symbols loaded.

'auto': Loaded
'c:\winnt\assembly\gac\system.directoryservices\1. 0.5000.0__b03f5f7f11d50a3a \system.directoryservices.dll', No symbols loaded.

'auto': Loaded
'c:\winnt\assembly\gac\system.messaging\1.0.5000.0 __b03f5f7f11d50a3a\system. messaging.dll', No symbols loaded.

'auto': Loaded
'c:\winnt\assembly\gac\system.serviceprocess\1.0.5 000.0__b03f5f7f11d50a3a\sy stem.serviceprocess.dll', No symbols loaded.

'auto': Loaded
'c:\winnt\assembly\gac\system.data\1.0.5000.0__b77 a5c561934e089\system.data. dll', No symbols loaded.

Is this ok?

Nov 20 '05 #2
Doesn't seem to be a form error - I can't seem to trap it anywhere. It only
happens when AllowDrop is True on either the treeview or tab control.

This doesn't happen on XP or 2003.

"Ken Tucker" <vb***@bellsouth.net> wrote in message
news:ui**************@TK2MSFTNGP09.phx.gbl...
Hi,

Sounds like there is an error in the form. Place a breakpoint at
the builderform.showdialog() line and step though the code line by line
until you get the error.

Ken
------------
"Ed Crowley" <cu******@pacbell.net> wrote in message
news:us**************@tk2msftngp13.phx.gbl...
I have the following code:

Dim BuilderForm As frmBuilder
BuilderForm = New frmBuilder(_LastChangedFile.Path)

BuilderForm.Refresh()

BuilderForm.ShowDialog()

And get the following exception on the last line:

An unhandled exception of type 'System.InvalidOperationException' occurred in system.windows.forms.dll

Additional information: DragDrop registration failed.

Any ideas?

I've tried compiling using .NET 2002 and .NET 2003 and get the same error. I wasn't getting this error when running on Server 2003 if that's any

help!
When looking at the build output, I get the following under .NET 2003:

'DefaultDomain': Loaded
'c:\winnt\microsoft.net\framework\v1.1.4322\mscorl ib.dll', No symbols
loaded.
'auto': Loaded
'c:\winnt\assembly\gac\system\1.0.5000.0__b77a5c56 1934e089\system.dll', No symbols loaded.

'auto': Loaded

'c:\winnt\assembly\gac\system.drawing\1.0.5000.0__ b03f5f7f11d50a3a\system.dr
awing.dll', No symbols loaded.

'auto': Loaded

'c:\winnt\assembly\gac\system.directoryservices\1. 0.5000.0__b03f5f7f11d50a3a
\system.directoryservices.dll', No symbols loaded.

'auto': Loaded

'c:\winnt\assembly\gac\system.messaging\1.0.5000.0 __b03f5f7f11d50a3a\system.
messaging.dll', No symbols loaded.

'auto': Loaded

'c:\winnt\assembly\gac\system.serviceprocess\1.0.5 000.0__b03f5f7f11d50a3a\sy
stem.serviceprocess.dll', No symbols loaded.

'auto': Loaded

'c:\winnt\assembly\gac\system.data\1.0.5000.0__b77 a5c561934e089\system.data.
dll', No symbols loaded.

Is this ok?


Nov 20 '05 #3

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

Similar topics

2
by: guy | last post by:
i have a fairly complex form that is shown using ShowDialog - ie modally. Clicking close in one paricular situation it it gives an unhandled exception "No value at index 0" This occurs AFTER the...
0
by: guy | last post by:
i have a method which throws an exception. the thing i dont understand is that the only change between the two versions is a line of code AFTER the one that throws the exception - see code below...
1
by: brckcc | last post by:
I have a C# application that periodically gets the above exception when attempting to call ShowDialog on a particular dialog. I have created a new project, copied the dialog files (.cs and .resx)...
5
by: Lucvdv | last post by:
Can someone explain why this code pops up a messagebox saying the ThreadAbortException wasn't handled? The first exception is reported only in the debug pane, as expected. The second (caused by...
5
by: Samuel R. Neff | last post by:
When you have an unhandled exception in vb.net how do you view the exception information in the debugger? In C# the debugger creates a local variable that points to the exception and you can...
0
by: Colmeister | last post by:
I recently read Jason Clark's excellent article on Unhandled Exceptions (http://msdn.microsoft.com/msdnmag/issues/04/06/NET/default.aspx) and have attempted to incorporate the features he talks...
6
by: Viktar Zhardzetski | last post by:
Hi everybody, let me start with a simple sample to replicate the problem: 1. Create a new Windows Application C# project with 2 forms - MainForm and FaultyForm; 2. In the faulty form...
5
by: Sam Samson | last post by:
Hi All, I have seen a few good behaviours for what to do in the case of those pesky uncaught exceptions. and I want to build some of these mechanisms into my Application that is currently out on...
2
by: lily86 | last post by:
i'm very new so i hope all of u can help me. when i debug my webforms this error occur "An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in system.data.dll Additional...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.