Click here to Skip to main content
15,888,113 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionWebRequest Problem??? Pin
Small Rat26-Feb-05 7:00
Small Rat26-Feb-05 7:00 
GeneralArray Pin
Truong D. Toan26-Feb-05 6:41
Truong D. Toan26-Feb-05 6:41 
GeneralPrinterSettings.Collate doesn't work?! Pin
klawipo26-Feb-05 0:30
klawipo26-Feb-05 0:30 
GeneralFileSystemWatcher Delay Pin
Zishan Haider25-Feb-05 21:18
Zishan Haider25-Feb-05 21:18 
GeneralGetting a "friendly" name from an ImageFormat Pin
Jon Sagara25-Feb-05 14:18
Jon Sagara25-Feb-05 14:18 
GeneralRedistributable Package Pin
Horsy25-Feb-05 11:39
Horsy25-Feb-05 11:39 
GeneralRe: Redistributable Package Pin
Horsy25-Feb-05 13:02
Horsy25-Feb-05 13:02 
GeneralRe: Redistributable Package Pin
MitchellBaldwin26-Feb-05 4:05
MitchellBaldwin26-Feb-05 4:05 
Depending on what your application does you might be missing a library assembly (DLL) needed, especially if you are getting the exception when the program is loading. Check the dependencies on your development machine. (If you build a deployment package using VS these any assemblies your application depends on should be packaged in the MSI automatically.)

If that's not it you might try adding an application thread exception handler of your own in an effort to get more information on just what exception is being thrown. For example, in your Main method (but before Application.Run()):

Application.ThreadException += new ThreadExceptionEventHandler(ApplicationThreadException);<br />


Then a simple handler:

static void ApplicationThreadException(object sender, ThreadExceptionEventArgs e) {<br />
			string msg = <br />
				"A problem has occurred while running CAPA Facilitator:\r\n" +<br />
				"\t" + e.Exception.Message + "\r\n\r\n" +<br />
				"Would you like to continue running CAPA Facilitator so that\r\n" +<br />
				"you can save your work?";<br />
			DialogResult result = MessageBox.Show(msg, "Unexpected Error", MessageBoxButtons.YesNo);<br />
<br />
			// If the user elects to proceed, simply return:<br />
			if (result == DialogResult.Yes) {<br />
				return;<br />
			}<br />
			// otherwise shut down the application:<br />
			Application.Exit();<br />
		}<br />


This will display the exception error message in a dialog befor closing the program, which could provide clues to what's going on.

Hope this helps.

Mitchell
GeneralJscript.net assembly with a strong name Pin
stefanov.sm24-Feb-05 22:55
stefanov.sm24-Feb-05 22:55 
GeneralMSIL Pin
Member 94283424-Feb-05 18:50
Member 94283424-Feb-05 18:50 
GeneralRe: MSIL Pin
S. Senthil Kumar25-Feb-05 3:50
S. Senthil Kumar25-Feb-05 3:50 
GeneralRe: MSIL Pin
leppie26-Feb-05 18:55
leppie26-Feb-05 18:55 
General&quot;Look In&quot; history Pin
nkale24-Feb-05 15:39
nkale24-Feb-05 15:39 
GeneralOpenFileDialog bug problem .net Pin
foxjazz224-Feb-05 11:19
foxjazz224-Feb-05 11:19 
GeneralRe: OpenFileDialog bug problem .net Pin
klawipo26-Feb-05 1:02
klawipo26-Feb-05 1:02 
GeneralDLL Pin
Dwayner7924-Feb-05 7:20
Dwayner7924-Feb-05 7:20 
GeneralRe: DLL Pin
klawipo26-Feb-05 0:45
klawipo26-Feb-05 0:45 
GeneralAdding to the TextBox context menu Pin
MitchellBaldwin24-Feb-05 6:35
MitchellBaldwin24-Feb-05 6:35 
GeneralRe: Adding to the TextBox context menu Pin
pankajupadhyay2930-Nov-09 20:17
professionalpankajupadhyay2930-Nov-09 20:17 
GeneralProcess memory not right Pin
Turok_4_2_024-Feb-05 4:12
Turok_4_2_024-Feb-05 4:12 
GeneralRe: Process memory not right Pin
S. Senthil Kumar24-Feb-05 8:47
S. Senthil Kumar24-Feb-05 8:47 
GeneralRe: Process memory not right Pin
Turok_4_2_024-Feb-05 14:17
Turok_4_2_024-Feb-05 14:17 
GeneralChanging child control property of a form from another form Pin
erossetto24-Feb-05 2:50
erossetto24-Feb-05 2:50 
Generalmicrosoft visio Pin
lalitmohankohli24-Feb-05 0:17
lalitmohankohli24-Feb-05 0:17 
GeneralMemory oddness Pin
Ray Cassick23-Feb-05 16:58
Ray Cassick23-Feb-05 16:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.