472,145 Members | 1,475 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,145 software developers and data experts.

Application has generated an exception that could not be

Installation runs smooth, but when you try to execute the
program by clicking on the shortcut or on the .exe, the error message above
pops up. Since the product is installed on client machine the exception is
not giving clear Idea what is excat problem. How should I resolve this
probelm.
Nov 25 '05 #1
1 1271
This can be caused by a number of issues. There was a more recent one where
the app was attempting to write to an EventLog source that was never created
on the target machine (it worked fine on the developers machine because the
source was there).

To narrow down the problem, you can make use of AppDomain.UnhandledException
to handle the exception and print out the call
stack when the problem occurs.

AppDomain.UnhandledException Event:
http://msdn.microsoft.com/library/de...ptionTopic.asp

In addition, you can also set the following registry key:
HKLM\Software\Microsoft\.NETFramework\DbgJITDebugL aunchSetting

to a DWORD of 0xFF00 or 0xFF02, which should force a JIT-attach dialog to
come up and give you the opportunity to at least figure out what kind of
exception this is.

Hope that helps.
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Kiran_Juikar" wrote:
Installation runs smooth, but when you try to execute the
program by clicking on the shortcut or on the .exe, the error message above
pops up. Since the product is installed on client machine the exception is
not giving clear Idea what is excat problem. How should I resolve this
probelm.

Nov 26 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Alexey Kouzmitch | last post: by
10 posts views Thread by Jeremy Ames | last post: by
2 posts views Thread by scorpion53061 | last post: by
reply views Thread by Saiars | last post: by

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.