How do I run a web application in IIS without hosting the source code on the machine?

6

Developed a web application (asp.net, c #, javascript, etc.) for a client. The idea is to mature that application, and turn it into a product. The question is, how can I run my web application locally, ie by IIS, on the client server, without leaving the source code on the machine? Is there any alternative other than hosting the application on a website? Or "encapsulate" the program, as with windows app?

Thank you very much.

    
asked by anonymous 05.08.2015 / 19:51

1 answer

3

Normally in Deploy everything will be compiled except ASPX.

To pre-compile your ASPX, do the following:

  • Right click on the project > Properties;
  • In Post-build event command line , place the command:

    %windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_compiler.exe -v / -p "$(SolutionDir)$(ProjectName)"
    

Works for .NET framework 4.0.

When performing Build of your site, ASPX files will be precompiled and will no longer be readable.

    
05.08.2015 / 20:02