[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Whats Better ASP website or website application

Posted on 2011-10-18
3
Medium Priority
?
180 Views
Last Modified: 2012-05-12
I have not long started with asp.net and started my site as a website. Is there an advantage to change to application? please give pros and cons of each.

I want to be able to update without the site going down. At the moment I precomile it to a local folder then ftp the parts I need to the server. If i do a ftp publish it takes ages and deletes all files. I can see if i use application you have an option not to delete all.

I have tried to convert my site to an application which was a nightmare and still have a few errors. I just dont want to go any further untill i know which way to go.
0
Comment
Question by:taz8020
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
dexterrajesh earned 2000 total points
ID: 36985224
hi,

Scenarios in which Web application projects are the preferred choice include the following:

You want to be able to edit code without stopping a debugging session.

You want to run unit tests on code that is in the class files that are associated with ASP.NET pages.

You want to refer to the classes that are associated with pages and user controls from standalone classes.

You want to establish project dependencies between multiple Web projects.

You want the compiler to create a single assembly for the entire site.

You want control over the assembly name and version number that is generated for the site.

You want to use MSBuild or Team Build to compile the project. For example, you might want to add pre-build and post-build steps.

You want to avoid putting source code on a production server.

You want to use the automated deployment tools that are available in Visual Studio 2010.

Scenarios in which Web site projects are the preferred choice include the following:

You want to include both C# and Visual Basic code in a single Web project. (By default, a Web application is compiled based on language settings in the project file. Exceptions can be made, but it is relatively difficult.)

You want to open the production site in Visual Studio and update it in real time by using FTP.

You do not want to have to explicitly compile the project in order to deploy it.

If you do precompile the site, you want the compiler to create multiple assemblies for the site, which can include one assembly per page or user control, or one or more assemblies per folder.

You want to be able to update individual files in production by just copying new versions to the production server, or by editing the files directly on the production server.

If you precompile the site, you want to be able to update individual ASP.NET Web pages (.aspx files) without having to recompile the entire Web site.

You like to keep your source code on the production server because it can serve as an additional backup copy.

reference: http://msdn.microsoft.com/en-us/library/dd547590.aspx
0
 
LVL 3

Author Comment

by:taz8020
ID: 36986278
Hi thanks dexterrajesh, so you can get the same result with both? and being as I want to update pages without stoping the site the web site option might be best for me.

Can I ask which is faster at sending to server and which you prefer.
0
 
LVL 9

Expert Comment

by:dexterrajesh
ID: 36990352
there should be no big notable difference when it comes to performance...

I would prefer website for the case you have...
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question