ASP.NET Tutorials
Tutorials
ASP.NETConfiguring and Deploying ASP.NET Applications
Table of Contents
Configuring and Deploying ASP.NET Applications
Configuring and Deploying ASP.NET Applications - Page 2
Configuring and Deploying ASP.NET Applications - Page 3Configuring and Deploying ASP.NET Applications - Page 2
2) SQL Server
The final choice to save the session information is using the Sql Server 2000 database. To use Sql Server for storing session state you need to do the following:
1) Run the InstallSqlState.sql script on the Microsoft SQL Server where you intend to store the session.
You web.config settings will look something like this:
/>
SQL Server lets you share session state among the processors in a Web garden or the servers in a Web farm. Apart from that you also get additional space to store the session. And after that you can take various actions on the session stored.
The downside is SQL Server is slow as compared to storing session in the state in process. And also SQL Server cost too much for a small company.
Deploying Asp.net Applications
ASP.NET can be used to host multiple Web applications, each identified using a unique URL prefix within a Web site (where a Web site is represented on a Web server as a unique HostName/Port combination). For example, a single Microsoft Internet Information Services (IIS) Web server with two mapped IP addresses (one aliased to ""www.msn.com"" target="_blank" rel="nofollow"; and the other to "intranet") and three logical sites (http://intranet, http://www.msn.com" target="_blank" rel="nofollow", http://www.msn.com port 81) could expose the following six ASP.NET applications.
Application URL Description
http://intranet "Root" application on intranet site.
http://www.msn.com "Root" application on "www.msn.com site.
http://www.msn.com" target="_blank" rel="nofollow":81 "Root" application on "www.msn.com port 81 site.
http://intranet/training "Training" application on intranet site.
http://intranet/hr "HR" application on intranet site.
http://intranet/hr/compensation/ "Compensation" application on intranet site.
Note: The URL for the compensation application mentioned in the table is rooted within the HR application URL namespace. However, this URL hierarchy notation does not imply that the compensation application is contained or nested within the HR application. Rather, each application maintains an independent set of configuration and class resolution properties; both are logical peer child sites of the intranet site.
Each ASP.NET Framework application exposed within a URL namespace is backed using a file system directory located on either a local or remote file share. Application directories are not required to be centrally located within a contiguous part of the file system; they can be scattered throughout a disk. For example, the ASP.NET applications mentioned previously could be located in the different directories listed in the following table.
Application URL Physical path
http://intranet c:\inetpub\wwwroot
http://www.msn.com c:\inetpub\msnroot
http://www.msn.com" target="_blank" rel="nofollow":81 d:\msnroot81
http://intranet/training d:\serverapps\trainingapp
http://intranet/hr \\hrweb\sillystuff\reviews
http://intranet/hr/compensation/ c:\inetpub\wwwroot\compensation
Next Page: Configuring and Deploying ASP.NET Applications - Page 3
