tags:

views:

339

answers:

1

hello i have created one windows application in c# .net and its working fine. but when i create its setup and deploy on the machine it get crashed. i am not getting what is the problem when i run its .exe file it run well.

please help

Thanks & Regards

Rajesh

+1  A: 

This would usually happen when the machine you install onto is missing some required assemblies.

Firstly, make sure that all assemblies references by your assembly (including any 3rd party ones) are actually present on the machine. If not, add them to the installer.

Secondly, check that the version of the framework is the same.

Finally, you can use something like Process Monitor from sysinternals [now owned by Microsoft] (http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx) to see if your application is trying to open a file which is not there. Look for "FILE NOT FOUND" errors.

Rodney Richardson
I think http://dependencywalker.com/ is better for this particular case.
fretje
the error is nullreference is not handled.how to add assemblies it takes required files when i add the exe file in setup project my application uses one third party dll and i have added it the setup projectplease help Rajesh
Rajesh