Difference between Web Site project and (NEW) Web application project?

Hi there,

i have been reading about the new Web application project (addon) for Visual Studio 2005, all sounds really nice but i just can't put my finger on it...

Whats the differences really? And why is  one better than the other?

I also read about the Visual studio 2005 Web deployment projects, which from what i can gather allows us to deploy our code like back in 2003 i..e. with a BIN directory  and dll which is the compiled code behind stuff..

are these in anyway linked together?

Thanks in advacne for any info..

Best rregards

4/4/2006 8:27:57 PM
asp.net.vs2005-webapp-projects 1239 articles. 0 followers. Follow

12 Replies

Similar Articles

[PageSpeed] 2

Have a look here




This posting is provided "AS IS" with no warranties, and confers no rights.
4/5/2006 9:18:49 PM
Thanks Mikhail! Thats just what i was looking for...

Do you know once i have published a file... which files i can update without have to REBUILT/REPUBLISH a site,...

For example i know i can just copy web.config up .. that works..

But i thought also default.aspx (not codebehind) could be edited (html) and uploaded?? I just tried it and when i did i got an error msg saying it "couldn't find default.aspx.cs" which i thought was compiled into some dll's.

P.s. this is using the Normal web site schemea of visual basic 2005 and not the new Web depolyment project (well not yet anyway) :-)

Thanks again

4/6/2006 1:14:49 PM
ahhh i just discovered something...

My default.aspx file (html not codebehind) in my visual studio project and the code behind in my PUBLISHED site which i put temporary to a directory on my local c drive are a little different..


<%@ page language="C#" masterpagefile="~/MasterPage.master" autoeventwireup="true" inherits="_Default, App_Web_45fljkht" title="Untitled Page" %>

the above adds App_web_45fljkht" to it!

Does anyone know the best way around this...

So i presume if i do edit my published default.aspx file on my local c and then copy to server it would still work......

But of course i am editing the files in my VS 2005 which are in a non published state...



4/6/2006 1:19:02 PM
One idea i had was to re-edit the file is vs 2005... republish..... but the problem with this is that when i do sure enough the default.aspx file is updated but the naming of the dll assemblies seeem to be different everytime so if i reupload default.aspx then i have to re-upload my bin folder too..

Or this is how it appears to me anyway..

Anyway throw a little light on the subject?


4/6/2006 1:26:25 PM

Are you using the Web Site project model with Web Deployment Projects?  If so which option are you using for output assembly? 

  1. Merge all outputs into a single assembly
  2. Merge each individual folder into it's own assembly
  3. Merge all pages and control ouputs into a single assembly
  4. Create a seperate assembly for each page and control output

If you're planning on deploying the code behind assembly and then updating the .aspx files on a regular basis you might want to consider using the new Web Application Projects.  This model is closer to the VS03 model and easily allows you to deploy the code behind assembly and pages seperately.  For example it's publish feature is smart enough to only push the pages and controls if that's all that's changed with out pushing up the code behind assembly.

Hope this helps, Brad.

4/6/2006 4:02:56 PM
now i am using the old web site project model with vs 2005 ... but NOT with web deployment project.

My idea was to really truly understand the old way first before moving onto the new one....


4/6/2006 4:11:53 PM

Got it.  When you publish using the VS05 Web Site projects be sure to check the "Use fixed naming and single page assemblies".  This should prevent the dll name from changing. 

Hope this helps, Brad.

4/6/2006 6:57:59 PM
thanks all, 

4/20/2006 12:40:28 AM


I just built my first Web site project and published it and noticed that I have a dll for each page instead of one.

Is this how VS2005 works?

In VS2003 it would only create one dll that had to be deployed for the WebUi Layer.  I am just trying to gain understanding.

Moojjoo Õ¿Õ

5/17/2006 2:40:58 AM

That is correct.  In VS 05 we rely on the ASP.NET server side dynamic compilation.  During publish we run the ASP.NET pre-compiler aspnet_compiler.exe which produces multiple assemblies.  We refer to this as the Web Site project model.  This is substantially different that VS03.

The primary advantage of the Web Site project model is for source level deployments or for precompiled sites where you want to service individual pages w/o rebuilding the entire site.

We've also provided a web download called Web Application Projects that provides a compilation model comparable to VS03.  You can learn more here http://msdn.microsoft.com/asp.net/reference/infrastructure/wap/default.aspx

Here is a good description of the differences:


Hope this helps,

5/20/2006 3:35:07 PM


Above you mention:


Are you using the Web Site project model with Web Deployment Projects?  If so which option are you using for output assembly? 

  1. Merge all outputs into a single assembly
  2. Merge each individual folder into it's own assembly
  3. Merge all pages and control ouputs into a single assembly
  4. Create a seperate assembly for each page and control output


How do I go about setting the output assembly to a single dll, I'm using vs2005 with a website project.

Thanks, and great I was unaware we could set this option.


5/22/2006 4:14:30 PM

Use a Web Deployment Project in conjunction with your Web Site project.


Hope this helps,

5/22/2006 11:59:19 PM

Similar Artilces:

Difference between Web Site Project, and Web Application Project?
Hi - can anyone please explain, in simple terms, what the difference is between a Web Site Project, and a Web Application Project? I've read Scotts blog at http://webproject.scottgu.com/VisualBasic/Migration/Migration.aspx - but am none the wiser. I'm about to upgrade from VS2003 to VS2005 - and don't want to waste a lot of time upgrading existing 2003 web apps to 2005 web site projects, if web application projects are more appropriate. Thanks for any guidance, Mark Hi.I have exactly the same question, and can't find any information about it.Can anyone help us?Sérgio Also i...

Web Application Projects vs. Web Site Project- Where is Copy Project?
I have opted to use the Web App Project in 2005 (The 2003 Model)http://msdn2.microsoft.com/en-us/asp.net/aa336618.aspxWhy is the copy project missing when this model is used? It was there in 2003?Thank you,Patrick http://www.SURFThru.com   SURFThru.com I wanted to bump this topic again to see if any Microsoft techs had any input on this item.SURFThru.com...

Problem when deploying Web Application project over VS2005 Web Site project
Hi,  we ran into this issue yesterday evening when we were trying to deploy new code on production box. It was running previous version of our app that was VS 2005 Web Site project, but the new version was migrated into Web App project. New build was tested on sandbox and even on the same production machine (but under different, non public web site configured there) and was working fine. However, when we deployed on production web site, we got this error:Compiler Error Message: CS0246: The type or namespace name 'ProfileCommon' could not be found (are you missing a using directi...

Web Application Project/Web Site Project
Hello, I have some couple of questions... 1) How do I know a particular application already built in asp.net is "Web Application Project" or "Web Site Project" ?2) Also I have a application built in ASP.NET and If I open the source code in VS2005, Its giving a message saying this application is built in old version and it should be converted into new version before even using. So should I migrate the application to "Web Application Project" or "Web Site Project" ? . kindly advise..(Note: This application is NOT very big or complex.) Thanks in Advance..Renil. 1)A web application pro...

Web Site Project or Web Application Project?
Hi all, I have a situation here.  My team's project has window and web clients, and we used Team System to control Source Code. We have a contract company that develop the generated codes for some of the web pages that being used in the web client.  They built it using Web Site Project.  We still need to develop some other web pages that has different functionalities than the code generator and one of our team member created a project which is a Web Application Project.  Now, the code generator doesn't work because it won't compile in our Web Application Pro...

Web Site Project and Web Application Project
I hope someone can help me out with this question.I have been using Web Application Projects and like what it can offer because I am so used to how VS 2003 was structured. I am trying to teach someone the difference between Web Site Projects and Web Application Projects, but haven't been able to figure out how to create a new solution that is specific to the Web Site Project structure anymore. I thought when I installed Web Application Projects, I would have the option to switch back and forth between Web Site Projects and Web Application Projects. Is there something I am overlooking when I ...

Difference Between Web Application Projects and Web Deployment Projects
....what's the difference? Web App Projects sounds like everythng I want, but what does it do that Web Deployment doesn't? First of all, here are two highly recommended blog posts that you may want to read about Web Application Projects and Web Deployment Projects.  http://weblogs.asp.net/scottgu/archive/2005/12/07/432630.aspx http://weblogs.asp.net/scottgu/archive/2005/11/06/429723.aspx In a nutshell, a web deployment project is associated with a web site project and is a step that you may want to take before your deploy your application.  You can do post processing on ...

Converting a Web Site Project to a Web Application Project ?
I upgraded my .NET 1.1 apps to Web Site Projects long before this add on was released and was wondering if there's  a way to convert these Web Site Projects to Web Application Projects because I really did like the old way of just uploading one dll to the web server when updates came around.   Is there a way to do this?In this world there are 10 types of people, those that know binary and those who don't. Here are a couple of tutorials that describe how to do this: C# - http://webproject.scottgu.com/CSharp/Migration2/Migration2.aspx VB - http://webproject.scottgu.com/VisualBa...

migrating web site project to web application project
hi i faced a different problem like i have all the namespace in my references folder but still the problem existed for scriptmanager,updatepanel,updateprogress     in default.aspx.designer.cs page it shows the error message can't found particular assembly  this is the declaration in default.aspx.designer.cs page protected System.Web.UI.ScriptManager ScriptManager1; Error 8 The type or namespace name 'ScriptManager' does not exist in the namespace 'System.Web.UI' (are you missing an assembly reference?) C:\Web\web\web\Logged\default.aspx.des...

Converting a Web Application Project to a Web Site Project
I converted a VS 2003 web application to VS 2005 using the Web Application Project model.  Is it possible to convert this to a Web Site Project once it is upgraded to VS 2005? We don't have any automated tools to convert from VS2005 WAP to Websites.  If you really prefer to use the website model, I would recommend converting directly from VS2003 to Websites.  To do that you can open the VS2003 app using the "Open Website" command.Omar KhanVisual Web Developer Team I thought you were going to say that.  I have spent quite a bit of time getting rid of most of the warnin...

Integrate/combine web application projects with web site project
I have a (dnn) website, using the standard vs 2005 web site project. In it, I use a virtual directory that to develop modules. They are defined in web application projects, that build to the bin map of the main site. This works great: I can use web application projects to manage my modules (consisting of ascx controls and class libraries), and use the code I downloaded for dnn without changes.Now, when I add an aspx page in a web application project, I got a problem: It builds, but when I want to open the aspx page with the browser, I get an error that an http module defined in the web.confi...

How convert VS2005 site web to new Web Application Project
We found out about the new Web Application Project tool a few days too late. Our VS 2003 web app has now been moved to the default VS2005 model. Now that we know about the new Project model add-in, we'd love to convert to that. Our biggest problem with the standard VS2005 model is that non-GACed references aren't stored anywhere...it just looks in the bin. This is a pain for our build/deployment process (no more Copy Local). We can GAC a lot of assemblies (even though we don't want to), but some of them are third-party unsigned assemblies or COM interop assemblies, so they have to be in th...

Web application project or Web site project which is "better"?
Hi,We are a bit confused as to which web project type is best to use.Currently we have a number of large projects in the old style with .vbproj files. These have been upgraded to VS2008 web application projects. Compilation seems slower of upgraded projects than created from scratch web site projects. I do get the impression MS is pushing the new style format for future releases.What are the advantages/disadvantages of the new web site project?Where do references get stored in the new style project?Where do the control declarations get hidden in partial classes?Thanks, Alex ...

What's the different of Web Application Projects and Web Deployment Projects ?
What's the different of Web Application Projects and Web Deployment Projects ?I have read some articles about WAP and WDP, but i feel confuse between WAP / WDP and  aspnet_compiler.exe under .NET Framework folder .because all of them is use for deploy the web application and compile the resource (eg. *.VB, *.aspx ,*.ASCX etc...) to a single or mutli assambly Library, so i wonder what the different between them. i can using aspnet_compiler.exe to compile a library simply , so why i need WAP / WDP?My Blog : http://mingalive.mysinablog.comMy Web : http://www.aspvista.net ...

Web resources about - Difference between Web Site project and (NEW) Web application project? - asp.net.vs2005-webapp-projects

Application - Wikipedia, the free encyclopedia
Text is available under the Creative Commons Attribution-ShareAlike License ;additional terms may apply. By using this site, you agree to the ...

Second visa application 'likely' to be approved
The family of a terminally ill Pakistani student can 'hopefully come to Australia sooner rather than later' says Immigration Minister Peter Dutton. ...

Tashfeen Malik's visa application under scrutiny - Business Insider Deutschland
The US government has released the visa application for Tashfeen Malik, who along with her husband killed 14 people in an attack in San Bernardino, ...

Panasonic Develops a Stretchable Resin Film and Its Application Materials for Stretchable Electronics ...
A stretchable film is developed. This film stretches to 2.5 times the original length and then returns to the original form. A conductive paste ...

MBA: Mortgage Applications Increase in Latest MBA Weekly Survey, Purchase Applications up 37% YoY
From the MBA: Refinance, Purchase Applications Both Up in Latest MBA Weekly Survey Mortgage applications increased 7.3 percent from one week ...

Cal State Schools Get Record Number Of Applications For 2016 Term
Schools in the California State University system received a record number of applications for the upcoming 2016 fall term, with more than 830,000 ...

German-Based Spirea Promotes Decentralized PV Applications In Uruguay
... Its technical operations specialist, Laurie Lawrence, pointed out that Uruguay [&hellip German-Based Spirea Promotes Decentralized PV Applications ...

Visa application of San Bernardino shooter released
CNN Visa application of San Bernardino shooter released CNN (CNN) The visa application of one of the San Bernardino shooters was released ...

Panasonic touch panel production to be solely for vehicle applications by 2020, says report
Panasonic is aiming to transfer its touch panel production completely to vehicle applications by 2020 in order to meet increasing demand for ...

Pre-K Applications Begin Jan 25, a Month Earlier Than Last Year, City Says
The DOE has moved the process up to Jan. 25 on the heels of a similar schedule shift for kindergarten. MANHATTAN — The application period for ...

Resources last updated: 1/1/2016 6:22:08 AM