1

In a normal ASP.NET Website there is a Web Deployment Project that we can use to pre-compile our entire website and then we can safely upload this project to our production server in order to protect our code.

What can we do for ASP.NET MVC 2?


Link to it as is available today (RTM version)

Visual Studio® 2010 Web Deployment Projects - RTW

balexandre
  • 73,608
  • 45
  • 233
  • 342

1 Answers1

1

Make sure you install the latest security patches for your operating system and hire a good network administrator. No kidding. No matter what you do if a hacker gains control over the server he will get the code under one form or another even if it is precompiled. This being said it is a good idea to precompile the application and deploy only the assemblies instead of the source code. You could also consider obfuscating it also but this is something usually done for client applications which you deploy to your users computers and less frequently done in server side applications because you control the server.

Darin Dimitrov
  • 1,023,142
  • 271
  • 3,287
  • 2,928
  • I know that, but my question was "How do I do that", as there is no Web Deployment project in VS2010. The Project Installer is still in beta for VS2010 http://www.microsoft.com/downloads/en/details.aspx?FamilyID=711a2eef-b107-4784-9063-c978edc498cd&displaylang=en – balexandre Nov 07 '10 at 08:54
  • Yes it is in beta. This is no problem. Download it and install it. It works very well. I am using it since VS2010 has been released. It is a very good package. – Darin Dimitrov Nov 07 '10 at 09:00
  • @balexandre, the link you provided notes that it has been released and has a link to the RTW version. – Jeff Ogata Nov 07 '10 at 14:46
  • @adrift ehehe, dumb me :) got it (now you know that I'm on the 95% of users that only read the 1st paragraph) ;) ... you're in the 5% that read all :D – balexandre Nov 07 '10 at 21:48