473,386 Members | 1,644 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,386 software developers and data experts.

WindowsForm Exception

I wrote a WindowsForms application and I compiled, installed, and run it on
my computer without any problems. When I install it on another computer that
doesn't have VS.NET installed I get the following error message immediately
after I double-click on its icon:

"MyApp.exe - Common Language Runtime Debugging Services
Application has generated an exception that could not be handled.
Proess id=0x884(2180), Thread id=0xb14(2386).
Click Ok to terminate the application.
Click CANCEL to debug the application.
"

The dot Net Framework is installed on all my computers and I have other
applications that I wrote before working fine on this computer. The problem
is I don't know where to look for the cause of this problem and since I don't
have a "Registered JIT debugger" on the machine in question I can't
troubleshoot it there.

I tried to add in the "Form_Load" event something like: 'Msgbox ("Test")' to
see if my application reaches the Form_Load stage before it generates the
error. And it never showed that message box. So I'm assuming the exception
occurs even before that!

Does any one know how we can troubleshoot/debug in this situation?
Nov 21 '05 #1
4 1146
Amjad wrote:
I wrote a WindowsForms application and I compiled, installed, and run it on
my computer without any problems. When I install it on another computer that
doesn't have VS.NET installed I get the following error message immediately
after I double-click on its icon:

"MyApp.exe - Common Language Runtime Debugging Services
Application has generated an exception that could not be handled.
Proess id=0x884(2180), Thread id=0xb14(2386).
Click Ok to terminate the application.
Click CANCEL to debug the application.
"

The dot Net Framework is installed on all my computers and I have other
applications that I wrote before working fine on this computer. The problem
is I don't know where to look for the cause of this problem and since I don't
have a "Registered JIT debugger" on the machine in question I can't
troubleshoot it there.

I tried to add in the "Form_Load" event something like: 'Msgbox ("Test")' to
see if my application reaches the Form_Load stage before it generates the
error. And it never showed that message box. So I'm assuming the exception
occurs even before that!

Does any one know how we can troubleshoot/debug in this situation?


Just a shot in the dark but you could be getting a security exception.
Try to full trust the assembly and see if that helps.

Chris
Nov 21 '05 #2
It's already set to Full Trust, and I'm still getting the same
non-informative error message.

Any other ideas?
"Chris" wrote:
Amjad wrote:
I wrote a WindowsForms application and I compiled, installed, and run it on
my computer without any problems. When I install it on another computer that
doesn't have VS.NET installed I get the following error message immediately
after I double-click on its icon:

"MyApp.exe - Common Language Runtime Debugging Services
Application has generated an exception that could not be handled.
Proess id=0x884(2180), Thread id=0xb14(2386).
Click Ok to terminate the application.
Click CANCEL to debug the application.
"

The dot Net Framework is installed on all my computers and I have other
applications that I wrote before working fine on this computer. The problem
is I don't know where to look for the cause of this problem and since I don't
have a "Registered JIT debugger" on the machine in question I can't
troubleshoot it there.

I tried to add in the "Form_Load" event something like: 'Msgbox ("Test")' to
see if my application reaches the Form_Load stage before it generates the
error. And it never showed that message box. So I'm assuming the exception
occurs even before that!

Does any one know how we can troubleshoot/debug in this situation?


Just a shot in the dark but you could be getting a security exception.
Try to full trust the assembly and see if that helps.

Chris

Nov 21 '05 #3
Amjad wrote:
It's already set to Full Trust, and I'm still getting the same
non-informative error message.

Any other ideas?
"Chris" wrote:

Amjad wrote:
I wrote a WindowsForms application and I compiled, installed, and run it on
my computer without any problems. When I install it on another computer that
doesn't have VS.NET installed I get the following error message immediately
after I double-click on its icon:

"MyApp.exe - Common Language Runtime Debugging Services
Application has generated an exception that could not be handled.
Proess id=0x884(2180), Thread id=0xb14(2386).
Click Ok to terminate the application.
Click CANCEL to debug the application.
"

The dot Net Framework is installed on all my computers and I have other
applications that I wrote before working fine on this computer. The problem
is I don't know where to look for the cause of this problem and since I don't
have a "Registered JIT debugger" on the machine in question I can't
troubleshoot it there.

I tried to add in the "Form_Load" event something like: 'Msgbox ("Test")' to
see if my application reaches the Form_Load stage before it generates the
error. And it never showed that message box. So I'm assuming the exception
occurs even before that!

Does any one know how we can troubleshoot/debug in this situation?


Just a shot in the dark but you could be getting a security exception.
Try to full trust the assembly and see if that helps.

Chris


Try to wrap the entire program in a try... catch block. Start the
program in a module and do:

sub main
try
dim F as new Form1
Application.Run(F)
catch ex as exception
messagebox.show(ex.description)
end try
end sub

This may help you get a better idea what the error is.

Chris
Nov 21 '05 #4
Thanks Chris. That was a good idea.

The problem was one of the DLLs I used had the "Exclude" property set to
False for some reason!

Everything seems to be fine again now :)
"Chris" wrote:
Amjad wrote:
It's already set to Full Trust, and I'm still getting the same
non-informative error message.

Any other ideas?
"Chris" wrote:

Amjad wrote:

I wrote a WindowsForms application and I compiled, installed, and run it on
my computer without any problems. When I install it on another computer that
doesn't have VS.NET installed I get the following error message immediately
after I double-click on its icon:

"MyApp.exe - Common Language Runtime Debugging Services
Application has generated an exception that could not be handled.
Proess id=0x884(2180), Thread id=0xb14(2386).
Click Ok to terminate the application.
Click CANCEL to debug the application.
"

The dot Net Framework is installed on all my computers and I have other
applications that I wrote before working fine on this computer. The problem
is I don't know where to look for the cause of this problem and since I don't
have a "Registered JIT debugger" on the machine in question I can't
troubleshoot it there.

I tried to add in the "Form_Load" event something like: 'Msgbox ("Test")' to
see if my application reaches the Form_Load stage before it generates the
error. And it never showed that message box. So I'm assuming the exception
occurs even before that!

Does any one know how we can troubleshoot/debug in this situation?

Just a shot in the dark but you could be getting a security exception.
Try to full trust the assembly and see if that helps.

Chris


Try to wrap the entire program in a try... catch block. Start the
program in a module and do:

sub main
try
dim F as new Form1
Application.Run(F)
catch ex as exception
messagebox.show(ex.description)
end try
end sub

This may help you get a better idea what the error is.

Chris

Nov 21 '05 #5

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

Similar topics

44
by: craig | last post by:
I am wondering if there are some best practices for determining a strategy for using try/catch blocks within an application. My current thoughts are: 1. The code the initiates any high-level...
1
by: Raul Cortes | last post by:
Hi. I am using a windowsform datagrid to modify a table. The DataSet seems to be filled fined. The DataTable seems to be ok. I am not using 'read only' anywhere. The DataSource seems to be...
11
by: Liber | last post by:
¿Alguien podría explicarme como enviar mails desde un WindowsForm ?, puedo hacerlo con un WebForm, pero no se como hacerlo con WindowsForm, podrían darme un ejemplo. Gracias, Saludos, Liber.
1
by: MaryA | last post by:
can someone please let me know if there is a way to convert a vb.net windowsform application to asp.net. Thanks for any help you may provide
4
by: Zorpiedoman | last post by:
Could someone please comment on the validity the following statement: 1. A Windowsform is created at runtime, and the user interacts with it. 2. The window is closed either by user action or...
2
by: Stefan Reinmers | last post by:
hi there, i include in a webpage (with the object tag) a dll to show in the webpage a windowsform (windowscontrollib.dll) when i test all on the development pc (winxp ,framework 1.1) it works fine....
3
by: JohnDeHope3 | last post by:
First let me say that I understand that Asp.Net wraps my exception in an HttpUnhandledException. I have found a lot of discussion about that on the web, which was informative, but not helpful. Let...
2
by: Darko Miletic | last post by:
Recently I wrote a dll in c++ and to simplify the distribution I decided to link with multithreaded static library (/MT or /MTd option). In debug everything works fine but in release I get this: ...
0
by: anu b | last post by:
How can i add navigationcontrol to windowsform application?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.