HEXAQ : A friendly question - answer site for IT professionals

What is difference between Web Application Vs. Website in Visual Studio 2010


I am not clear for the difference between ASP.NET Web Application Vs We site.

When I open Create dialog of Visual Studio 2010 it gives me both options.

Can you please reply with the difference and also I want to know which one is better to use.


≡ Total 1 Answer


They've some major difference:

1) Compilation

When you publish your web project Web Application generates only one .dll file.

Where website generates couple of files depending on your project size. These files are named randomly. hence when you look into bin directory, you will find a lot of files.

2) Deployment

When you deploy a web application, your existing files will be replaced.In case of website, new randomly named files are added to bin folder. Total number of files will be increased.


My preference is to always go with Web Application over website.


Enter your reply here
Answer Preview: