chiccodoro
chiccodoro

Reputation: 14716

.NET application silently fails to start when assembly missing

I have a .NET C# winforms application which works great on my machine, but if I try to run it on another machine, it doesn't start up. No error message, no crash message, no window - nothing.

I've found that this always happens when a referenced assembly is missing. I guess this is .NET's general behavior and not specific to my app, is it?

Is there any way to configure .NET or my application such that it spits out a "referenced assembly missing" like error message in such cases?

Upvotes: 5

Views: 4269

Answers (2)

Hans Passant
Hans Passant

Reputation: 941277

This isn't normal. The app will die from an unhandled exception which triggers a Windows Error Report. I would have to guess that the target machine has WER disabled or replaced.

Upvotes: 6

Ram
Ram

Reputation: 11644

Apart from the executable, are u also copying the DLL's from your debug/release folder to the destination machine?

Can you try by copying the entire debug/ release folder on other machine.

Also check application (if any) / event log for additional hint.

Upvotes: 0

Related Questions