2

I have made a WinForms application that uses DevExpress (trial) but some of my friends can open it but some others can't. You can find the source here: https://github.com/JujharSingh/Exploit-Studio I have also made sure that I didn't delete any DLL files while packaging.

Jujhar Singh
  • 373
  • 5
  • 16
  • In your `Exploit Studio.csproj` you have `v4.6.1`. Can you check for the systems it did not work if they have turned on the feature for this framework if it is even installed. – praty Aug 28 '17 at 05:22
  • I made sure they downloaded .net framework 4.6.1 – Jujhar Singh Aug 28 '17 at 06:13
  • Well then, add loggers at places where you think it might break while initializing the controls for your UI. Check for the error messages received if any and update your question with the messages. Debugging this way will not be easier to crack down the real issue. – praty Aug 28 '17 at 06:54

2 Answers2

3

Make sure you right click on all the required files in solution explorer and include them so when you publish your project, they're deployed with the project. enter image description here

Also make sure you've the following option configured correctly: enter image description here

You wouldn't have to worry about .Net framework version as the published setup automatically installs missing .Net files.

Finally, goto your project Properties -> Publish -> Application Files and mark the required files as required and include them:

enter image description here

And on the same page, tick the required prerequisites: enter image description here

Finally, make sure you're giving them the published version, not the copied executable file. Hope this helps

Afnan Makhdoom
  • 654
  • 1
  • 8
  • 20
  • But then how do you explain: "but some of my friends can open it but some others can't" – praty Aug 28 '17 at 05:35
  • @praty some of your friends might have the latest (or the version of .Net you've chosen for your application) installed. In the same context, they may already have the missing prerequisites or files on their systems through some update or through some other software's installation – Afnan Makhdoom Aug 28 '17 at 05:36
  • i do that normally before redistributing my applications – Jujhar Singh Aug 28 '17 at 05:52
  • Oh i forgot to require one dll OOPS accepting answer nvm still doesnt work – Jujhar Singh Aug 28 '17 at 07:55
0

Make sure that your network path to the database is correct in the new computer.

Majid
  • 13,853
  • 15
  • 77
  • 113