Just-In-Time Debugging?????

  • Thread starter Thread starter cj
  • Start date Start date
C

cj

I'm testing some code I typed in from an example program I was given.
It works with F5. When I try to run the exe from an icon on the desktop
I'm given a form that says:

Just-In-Time Debugging
An exception 'System.IO.FileNotFoundException' has occured in
WindowsApplication19.exe.

Possible Debuggers:
Microsoft Development Environment[design]-Form1.vb[Design]*;Visu
Microsoft Development Environment[design]-Form1.vb[Design]: Visual
New instance of Microsoft CLR Debugger 2003
New instance of Visual Studio .NET 2003

Do you want to debug using the selected debugger?
Yes No

I don't know how to track down what the error is. What file isn't
found? Any help would be appreciated.
 
cj said:
I'm testing some code I typed in from an example program I was given. It
works with F5. When I try to run the exe from an icon on the desktop
I'm given a form that says:

Just-In-Time Debugging
An exception 'System.IO.FileNotFoundException' has occured in
WindowsApplication19.exe.

Possible Debuggers:
Microsoft Development Environment[design]-Form1.vb[Design]*;Visu
Microsoft Development Environment[design]-Form1.vb[Design]: Visual
New instance of Microsoft CLR Debugger 2003
New instance of Visual Studio .NET 2003

Do you want to debug using the selected debugger?
Yes No

I don't know how to track down what the error is. What file isn't
found? Any help would be appreciated.

Why aren't you running it from the ide to track down the problem?

If you select New instance of Visual Studio .NET 2003 it should show you
were the problem is.

Chris
 
because like I said it works fine from the ide, ie: I press F5 it works.
great. make and exe and it gives the error.

cj said:
I'm testing some code I typed in from an example program I was given.
It works with F5. When I try to run the exe from an icon on the
desktop I'm given a form that says:

Just-In-Time Debugging
An exception 'System.IO.FileNotFoundException' has occured in
WindowsApplication19.exe.

Possible Debuggers:
Microsoft Development Environment[design]-Form1.vb[Design]*;Visu
Microsoft Development Environment[design]-Form1.vb[Design]: Visual
New instance of Microsoft CLR Debugger 2003
New instance of Visual Studio .NET 2003

Do you want to debug using the selected debugger?
Yes No

I don't know how to track down what the error is. What file isn't
found? Any help would be appreciated.

Why aren't you running it from the ide to track down the problem?

If you select New instance of Visual Studio .NET 2003 it should show you
were the problem is.

Chris
 
Hi

I think you can try to select the "New instance of Visual Studio .NET 2003"
in the dialog when you get an exception by pressing the icon.
Also I think you may try to use Application.ThreadException Event to trap
the unhandled winform exception.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfSystemWindowsFormsApplicationClassThreadExceptionTopic.asp


Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Resolved!

One of my colleagues remembered something that finally payed off. For
some reason when .net uses a com component it creates a dll that
somehow interfaces it to the .net way of life. The file in this case is
Interop.SocketWrenchCtl.dll and it's in the obj folder of the project
folder. This file needs to be added to the project as a reference in
the solutions explorer like the ocx. it also needs to be copied to the
same dir as you'll be running the exe from.
 
Back
Top