I had developed a web application using Visual studio 2012 (ASP.Net 4.5 - C#) and a web service. Both are laying in a single solution. I need to convert my solution to an EX
Maybe you need to create a web setup project. "A Web setup project provides the highest level of flexibility for deploying a website. Although Web Setup Projects are more complex for the developer, they allow you to generate an MSI package, precompile a website, and perform virtually any setup task that your application might require.
Many websites do not require custom configuration. In these cases, you can simply build your MSI file and be ready to deploy. However, more complex scenarios include dependencies (such as particular operating system versions or service packs), custom registry entries, or administrator configuration. Web Setup Projects allow you to deploy websites that meet these requirements."
Check the book "MCTS Self-Paced Training Kit (Exam 70-515) - Web Applications Development with Microsoft .NET Framework 4" at the chapter 8 "Debugging and deploying".
Hope this helps.