Hi all,
I have developed a winform application using c#. I used visual studio 2015.
I managed to create a setup.exe for my project so that any user can install the project on his or her machine.
After obtaining setup.exe for my project, I managed to install the project on my pc. The setup then creates a shortcut on the desktop.
After double-clicking the shortcut, the application start, it loads the first 2 forms of the application the it produces an error.
I have attached a screenshot of the error generated.
The error was generated after a successful installation. It was generated when the appliation was running after it has been successfully installed.
Note: If i go to build then start application using visual studio 2015, the application runs without interruptions or errors.
Please help. Thanks in advance.

Amit GuptaRank #190 · 12.8K reputationPosted May 2, 2017, 9:46 AM EDT
Rajeev PunhaniRank #551 · 4.4K reputationPosted May 2, 2017, 9:53 AM EDT
Rafnas T PRank #280 · 8.8K reputationPosted May 2, 2017, 7:31 PM EDT
Nilesh JadavRank #109 · 20.3K reputationPosted May 2, 2017, 6:21 AM EDT
I hope that you had not use local db (mdf file). Instead of that try with SQL server.
For Further Guidance try this link to work out :