Share via


Local and Web Projects

There are several factors to consider when you decide whether to use a local or Web project model for your application.

First, installation strategy should play a part in your overall decision. If you need a quick-deploying application on a server with minimal client configuration, the Web project model is best. You can install and run this project on the server without installing support files on each client, and make upgrades only on the server. However, for projects that have little server involvement or for stand-alone applications, a local project model is the better choice. In this scenario, upgrades can be completed on each individual client computer.

Another factor is the division of workload. When analyzing your application's framework, you need to consider where the bulk of the work is going to be done. Web projects offer a server-based strategy where the majority of operations are conducted on the server. The client computer uses a Web browser to send information to and display information from the server-side application. If your server resources are limited, then consider using a local project model for your application. The work can be done on the client computer without consuming precious server time.

The following table gives a side-by-side comparison of Web projects and local projects in both the design and working environments:

Consideration

Web project

Local project

File storage during development

Files are stored at a specified URL on a computer with Internet Information Services (IIS) installed. The project also keeps a temporary cache of files on client computers for working offline.

Project files are stored on the local computer.

Build model when developing

Application code is compiled as a DLL and run on the server. Results are seen on the client computer.

Code is compiled and run on the client computer.

Deployment method

The project is deployed to a Web server.

Project files are installed on the client computer with required support files.

Workload

Client computers run the application remotely with a Web browser. Processing is done primarily on the server.

The application is run locally on the client computer.

Upgrading

Application changes are made at the server level without installation of support files on client computers.

The application upgrades are installed on client computers.

Moving project files

The Copy Project command is used to move files to the specified URL.

Project files are physically copied from one location to another.

See Also

Concepts

Introduction to ASP.NET Web Pages

Default Project Templates in Visual Studio

Other Resources

Creating ASP.NET Web Sites