I know that you have to right click on the solution and go to the bin folder from where you can copy the .exe, dlls and the config file and share it to end users. The issue is that I am storing my database connection code in the appconfig file which has database username and password also. So, if I share the appconfig file to the end user, it will not be secure as any unauthorized person can gain access to database and do anything. Plus any user can modify the appconfig file easily by opening it using notepad . Is there any other way to achieve this ?