Click here to Skip to main content
15,899,679 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
hi,
1- i created a program using C# , Devexpress , EF and MySQL.
2- i installed it on PC1 using Advanced installer.
3- the program was work fine.
4- After a little while i changed some features and i copied the exe file and languages files to the Program Directory on PC1, this error appeared when i try to run it

the program has stopped working

What I have tried:

i copied the same files to another PC (PC2) and it work fine.
why this error appear in some customers ? and how to solve it ?
Posted
Updated 24-Aug-19 23:58pm
Comments
Richard MacCutchan 25-Aug-19 7:48am    
You should create and install the new version with the installer you used originally. It is quite possible that you have missed out some component during your copy.
Golden Basim 25-Aug-19 8:06am    
i tried that using Advanced Installer and the same error appeared (all files in bin dir. was copied). also some times i need to send quick updates to my customers. as example the last update i edited simple code without using any extra components or tools.

1 solution

We have no idea - we can't.
We don't know your code, we have no idea what it's supposed to do, much less how it does it, and those are likely to be significant.

So it's going to be up to you - and since you can;t use a debugger on client computers, you are going to have to do it the Old Fashioned Way: logging.
Add logging code to record how your program starts up: add try...catch blocks to try to find what fails, and record that as well.
Send the new version to your client, get them to send the log file back.
Add more logging - this time more specific since the earlier logging should help you to "narrow down" the area to concentrate on - and repeat the process. Be aware this may take several (up to "many" or even "lots") of iterations before you get really useful information.

The logs help you work out what is going on, which should tell you where your app ios failing, and that in turn helps you work out why. But until you have that, you can't do anything to actually fix it - other than guess and hope, and that nearly always takes an order of magnitude more iterations that the "log and fine tune" approach.

Sorry, but we can't do any of that for you!
 
Share this answer
 
Comments
Golden Basim 25-Aug-19 6:04am    
Is there any possibility that the problem is related to Windows and not the code? That's where the program didn't start working.
OriginalGriff 25-Aug-19 6:44am    
It could be, but we have no idea what the systems in use are, or if they are even Windows - don't forget that Mono allows you to run .NET apps on Linux these days - so that's another thing you will need to check!
Golden Basim 25-Aug-19 6:48am    
customer use Windows 7 , this error did't appear on 100% of windows 10.
this error appear only on windows 7 sp1.
OriginalGriff 25-Aug-19 6:54am    
So start by setting up a Win7 SP1 VM on your dev machine, check it fails, duplicate it, install VS on one of the copies and start using the debugger.

Having a version where it fails is a major step one in working out why!
Golden Basim 25-Aug-19 6:56am    
i did that already , but it work without any errors

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900