This is a migrated thread and some comments may be shown as answers.

.Exe won't run on other computers

3 Answers 453 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Zaven Alexander
Top achievements
Rank 2
Iron
Zaven Alexander asked on 10 Dec 2018, 12:10 AM

Hello everyone,

I've built an application using winforms (c++) and Telerik and when i run it from the computer i made it on, it works with no problems. However once i copy it over to my laptop, the .exe file simply won't run. No error messages, it just doesn't open. I have tried it on another computer and got the exact same problem.

I followed the guide here: https://docs.telerik.com/devtools/winforms/deployment-and-distribution/application-deployment

All the .dll files are in the same folder as the .exe and yet it still does not work. Has anyone had this problem before and would they be able to help me fix this please?

Thank you!

3 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 10 Dec 2018, 12:50 PM
Hello Zaven,

I would recommend testing this with a blank new C++ application. This way you will be able to determine if indeed this is connected to the WinForms suite.

I hope this will be useful. Let me know if you have additional questions.

Regards,
Dimitar
Progress Telerik
Get quickly onboard and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Zaven Alexander
Top achievements
Rank 2
Iron
answered on 17 Dec 2018, 05:01 AM

Hi Dimitar,

Thank you very much for your suggestion, after a lot of tinkering i have discovered that the problem was my custom style sheet file (.tssp) was not included in the directory and the exe was basically crashing since it was unable to find the file on other computers.

For future reference, I would recommend a feature in the Telerik library where, if it is unable to find the file in the specified file, it throws an exception error rather than simply crashing without a word.

Thanks again! :)

0
Dimitar
Telerik team
answered on 17 Dec 2018, 03:37 PM
Hi Zaven,

Thanks for this, and indeed in a standard .Net application this will throw an exception.  

Regards,
Dimitar
Progress Telerik
Get quickly onboard and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
General Discussions
Asked by
Zaven Alexander
Top achievements
Rank 2
Iron
Answers by
Dimitar
Telerik team
Zaven Alexander
Top achievements
Rank 2
Iron
Share this question
or