Re: Big picture question - Web sites vs Web Applications



I'm getting the impression (correct me if I'm wrong) that Web application
projects are for professionals and web site projects are for amateurs.
Looks like I'll be sticking with web app projects. Thanks.

"Mark Fitzpatrick" wrote:

VS 2005 introduced a new type of project called a Web Site Project. It
doesn't create a single dll for the entire site. Instead, code is seperated
out more, which leads to some annoying issues. For example, calling code in
folder b from a page in folder a probably won't work because the code in
folder b may not have compiled yet. To make code available throughout an
entire web site project it has to be in the App_Code directory. This new
project type annoyed a lot of people though so MS introduced the Web
Application Project back into VS first as an add-in, then as part of VS 2005
Service Pack 1. The Web Application Project is natively available in VS
2008.

The Web Application Project works pretty much the same way it did for the
1.x projects created by VS 2002 and 2003. The Web Site Project is more of an
interesting offshoot and does make it easier for people running VS Web
Developer Express to create a web site since they don't have to compile it
into a single-dll. Still, I prefer the single-dll method since it's easier
to pre-compile and if you need to call code that gets compiled into multiple
dlls you get the inter-dll communication hit.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - Expression

"B. Chernick" <BChernick@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:7F2FEEDE-67E8-401F-8C62-05ABBD52FF67@xxxxxxxxxxxxxxxx
I did my MCAD sometime ago in 1.1, using the 305 manual. I've since moved
up
to VS 2005. I've created perhaps a half dozen Dot Net 2.0 web
applications.
(Click on the Create Project link within Recent Projects and Asp.Net Web
Applications.) Now I find out that my co-worker has been programming in a
different style. He's been using the File/New/Web Site menu item. If I
ever
noticed that option, I've forgotten it.

Could someone briefly summarize the differences between web 'sites' and
web
'applications'? (I thought all web sites were web applications.)

(My immediate motivation for posting here is that my coworker approached
me
for help, since his website is giving 'AccessViolationException' errors,
but
he swears that he has no unmanaged code that he knows of. It also looks
to
me like the web site has no references at all, if that's even possible, so
I'm even more confused.)


.



Relevant Pages

  • Re: Use class ... why is not available?
    ... I am pretty sure that classes in the App_Code folder don't work in a Web Application Project as you would expect them to in a Web Site project. ... Put them next to the aspx pages and they'll get compiled. ... ASP.NET will not automatically compile classes in application folders, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: xcopy is not recognized as an internal or external command
    ... > months they one day I hit the compile button and BAM! ... > 'xcopy' is not recognized as an internal or external command, ... Go to this web site: ... Extract the files from the zip folder and run fixpath.exe. ...
    (microsoft.public.windowsxp.general)
  • Re: Use class ... why is not available?
    ... seem to be accessible to ASPX pages as it is usual in Web Site. ... Have you tried putting all your classes in the App_Code folder, instead of in your App_Folder folder? ... ASP.NET will not automatically compile classes in application folders, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Use class ... why is not available?
    ... seem to be accessible to ASPX pages as it is usual in Web Site. ... Have you tried putting all your classes in the App_Code folder, instead of in your App_Folder folder? ... ASP.NET will not automatically compile classes in application folders, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Word 2007 - How to animate text
    ... Thank you so much for the web site. ... applications: new, changes and removals etc: - absolutely marvellous. ... "Jay Freedman" wrote: ... but it doesn't mention animations. ...
    (microsoft.public.word.docmanagement)

Loading