Click here to Skip to main content
15,897,273 members
Please Sign up or sign in to vote.
1.09/5 (3 votes)
See more:
After creating exe of project, software runs on my pc but not on another pc. Can I install visual studio 2010 on each and every pc? Or another else. Please guide
Posted
Comments
[no name] 25-Jul-13 6:55am    
You could if you bought that many licenses. But why would you want to?
Pheonyx 25-Jul-13 6:56am    
Why does it not run on other machines? what errors are being produced?
Have you looked in the event log? have you compiled the exe to the right CPU? How do the client machines differ from the development machine?

Hi,

You don't need Visual Studio to run your application. If your application doesn't run on the other computer, then the .NET Framework is probably not installed.
So you should install the .NET Framework on the other computer (it's free):
Download Microsoft .NET Framework 4.5[^]
 
Share this answer
 
Comments
giri001 25-Jul-13 7:29am    
+5 ...
Thomas Daniels 25-Jul-13 8:13am    
Thank you!
it's because your .exe file does not contain the native machine code which computers can understand instead it contains intermediate language code(IL) and that's the reason why your code won't run directly on the ported machine in order to run this .exe file you need to convert the containing IL code contained in the .exe file into native machine code for this your need a compiler that can do this job for you. .Net framework provides CLR(common language runtime) which contains another important component called the JIT compiler which does this conversion of IL code into native machine code which can then be finally executed.so the solution to this is you neeed to have .NET framework installed on every machine where you are porting your .exe file in order to execute.
 
Share this answer
 
It happens because .NET Framework is not installed on other PCs
i prefer you Designing a Setup.exe and then put .NET Framework on it for installing automatically or you can choose lower .NET Frameworks when you want to create a new solution in VS.
.NET Framework Download Links: http://msdn.microsoft.com/en-us/vstudio/aa496123.aspx[^]

Good luck!
 
Share this answer
 
Do you hava some error messages?

I guess that the another pc don't install .NET Framework 4.0.
 
Share this answer
 
v4
Comments
Sergey Alexandrovich Kryukov 16-Aug-13 9:26am    
Not an answer, should not be here.
—SA

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