We recently finished a VB.Net application, but encountered difficulties after deploying it.
When I run it on my computer (or any other workstation with Visual Studio installed), it works fine. The splash screen appears, it prompts for the database info, and then the main screen shows. When it's run on any other workstation, it crashes on launch. The splash screen appears, and a moment later Windows informs us "EP.exe has stopped working"
I've looked through the event log and error reports, and the only useful information I've been able to extract is the fatal error is System.IO.FileNotFoundException
. This doesn't help me - it doesn't say what file isn't found, and EP doesn't touch the file system until much later. (Two forms deep off the main menu; after you select a file to import).
What can cause this error?
How can I tell what file is missing?
Where do I put the file so .Net can find it on client workstations?
edit: I followed the instructions that @Visual-Vincent linked, but don't think I found anything useful. After disassembly, the error was in method 0x060004ac
(the constructor for the Server Name form, written entirely by Visual Studio), with the specific line causing the error (IL_0037
) being ldarg.0
(which as far as I can tell merely pushes an argument onto the stack). The statements before and after are nop and InitializeComponent(), respectively.
edit2: After reading the MSDN article on Unhandled Exceptions, I was able to get .Net to show me the details of the fatal exception ("Could not load file or assembly Microsoft. VisualBasic. PowerPacks. Vs...") which is something I think I can do something about.
* furiously typing *