Just-In-Time Debugging?????


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.
 
Ad

Advertisements

C

Chris

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
 
C

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.

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
 
P

Peter Huang [MSFT]

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.
 
C

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.
 
Ad

Advertisements

P

Peter Huang [MSFT]

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.
 
Ad

Advertisements


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

Top