How to deploy ASP.Net Web application?
First if you want to hide the aspx code you can use the following command:
aspnet_compiler -v \maps -p "D:\Maps Project\Maps\MAPS\WebUI" "D:\Maps Project\Maps\MAPS\mapssetup"
where “D:\Maps Project\Maps\MAPS\mapssetup” the output folder which contains the Precompiling code.
And the “D:\Maps Project\Maps\MAPS\WebUI” is the web application folder.
Then we can take it and put it in the setup project.
To add the DotNet frame work with your setup project :
1- Right click on the setup project then choose properties
2- The click on the Prerequisites button
3- Then choose the .NET framework and any other prerequisites you need.
4- Choose “Download prerequisites from the same location as my application”.