I made website that has connection with database... now i want to make exe of my project ,so that my C# code in MS Visual studio should not be visible to user. any help?

Recommended Answers

All 4 Replies

Any server side code won't be visible in a website anyway so you're perfectly safe.


Exe file is automatic create.

you don't get an exe from web applications, the code gets compiled into .dll files which are deployed to the IIS web server. If you want to ensure your connection string is kept safe, then, ideally, you should have your connection string information in your web.config file and then you would encrypt it before deploying it to the server. If you google "encrypt web.config connectionstring" you'll find all sorts of posts out there on how to do this. I prefer to use the Microsoft Enterprise Library to do this as their tool makes it very easy.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.