I got error which says “MyApplicationName has stopped working” once deployed simple tool application to the deployment machine which is MS 2008 Server.

But application works just fine on my Dev Machine.
I took a look on event viewer and it says:

Fault bucket 952814299, type 5
Event Name: CLR20r3
Response: None
Cab Id: 0

Problem signature:
P1: myapplicationname.exe
P3: 4b607991
P4: MyApplicationName
P6: 4b607991
P7: 83
P8: f
P9: System.IO.FileNotFoundException

It looks like something I was referencing is something in the framework that wasn’t installed on the server.
But what?

I remembered that when worked with UI I inadvertently took some thing from ToolBox. I immediately removed that thing, but REFERENCE were left in projects references.
It was Microsoft.VisualBasic and Microsoft.VisualBasic.PowerPacks.Vs.

Once you get errors on deployment machine check carefully if you haven’t referenced something that is not needed. And remember about Event Viewer.

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInEmail this to someone