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

Just-In-Time Debugging?????

P: n/a
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.
Feb 10 '06 #1
Share this Question
Share on Google+
5 Replies


P: n/a
cj wrote:
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
Feb 10 '06 #2

P: n/a
cj
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.
Chris wrote:
cj wrote:
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

Feb 10 '06 #3

P: n/a
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/de...us/cpref/html/
frlrfSystemWindowsFormsApplicationClassThreadExcep tionTopic.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.

Feb 13 '06 #4

P: n/a
cj
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.
cj wrote:
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.

Feb 13 '06 #5

P: n/a
Hi

Thanks for your update!

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.

Feb 14 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.