Click here to Skip to main content
15,909,896 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
See more:
Hi, I just complete my assignment, everything work perfect on my computer. but when I copy this EXE to run on other computer I got an error

"XXX.exe has stopped working?? "

this project has no any dll file. I use only import System.Data.Oledb

any solution for this??

I need your help. please help me

Thanks in advance....
Posted
Updated 11-Mar-12 20:33pm
v2
Comments
Sergey Alexandrovich Kryukov 12-Mar-12 3:15am    
Never tried to use debugger? Or logging? There are many ways to right so non-portable code... The question is too general...
--SA

You could be using a set of dlls / third parties that need to be copied and registed on the client machine where you copied your exe. The best way to handle this type of situation is to use a setup deployment project[^].
 
Share this answer
 
Comments
Long Bunly 12-Mar-12 2:29am    
now I try to run it on my WM PC, but it still has the same problem, this project has no any dll file beside Import System.Data.OLEDB
Make sure the correct version of the .NET framework is installed on both computers. Furthermore, there can be issues of 32bit vs. 64bit systems - a 32bit application must not load a 64bit dll and vice versa. Is the correct version of the ole provider installed on both machines?
 
Share this answer
 
This is because your system has a service guarding against adult content. Just uninstall it… :-)

—SA
 
Share this answer
 
Comments
Abhinav S 12-Mar-12 3:10am    
Could be - my 5.
Sergey Alexandrovich Kryukov 12-Mar-12 3:15am    
Thank you, Abhinav.
--SA
Thank for your reply guys, finally I found a solution, Just go to my added reference , copy all dll file to other pc in the same folder of my project, it works perfect :)
 
Share this answer
 
Comments
Kschuler 12-Mar-12 16:09pm    
If you use this app on multiple PCs, you should really look into creating a setup project for it or using ClickOnce to deploy it.

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