Configuring and Deploying Web Applications (10 percent)

  • Configure providers
    • Personalization provider
    • Membership provider
    • Data Sources
    • AccessDataSource
    • EntityDataSource
    • LinqDataSource
    • ObjectDataSource
    • SiteMapDataSource
    • SqlDataSource
    • XmlDataSource
    • Data Source Web Server Controls overview
    • Site Map
    • Membership Provider
      • Configuring
    • Role Provider
      • Using
  • Configure authentication, authorization, and impersonation
    • ASP.NET Authentication
    • Web.Config Authentication Settings
    • Web.Config Authorization Settings
    • Forms Authentication
      • Configuring
    • Windows Authentication
    • Impersonation
  • Configure projects, solutions, and reference assemblies
    • ASP.NET Merge Tool (aspnet_merge.exe)
    • Global Assembly Cache Tool (Gacutil.exe)
    • Strong Name Tool (SN.exe)
    • Web Application Projects
    • Web Site Projects and Solutions
  • Configure session state by using Microsoft SQL Server, State Server, or InProc
    • ASP.NET Session State Overview
    • ASP.NET State Management Comparison
    • Session-State Modes
    • Session State
    • Web.Config sessionState settings
    • InProc
    • State Server
    • SQL Server
      • ASP.NET SQL Server Registration Tool (Aspnet_regsql.exe)
    • Cookieless Sessions
    • Timeout
  • Publish Web applications
    • ASP.NET Deployment Overview
    • Web Site Types Overview
    • Publish Web Site
    • Copy Web Site
    • File System Web Sites
    • FTP publishing
    • Local IIS Web Site
    • Remote IIS Web Site
  • Configure application pools
    • Managing Application Pools in IIS 7
      • Creating an app pool
      • Change an app pool
      • Specify a .NET version for an app pool
      • Specify an identity for an app pool
    • Configuring application pools in IIS 6
    • Work Process Isolation in IIS 6
  • Compile an application by using Visual Studio or command-line tools
    • ASP.NET Compilation Tool (aspnet_compiler.exe)
    • ASP.NET Merge Tool (aspnet_merge.exe)
    • Compiling MSIL to Native Code
Share
Tagged with:
 
  • The OdbcConnection class can be used to connect to a database by using the DSN (Data Source Name).
  • The ConnectionString property of the SqlConnection class is used to connect to a data source.
  • The RedirectFromLoginPage method redirects an authenticated user back to the originally requested URL. The method takes two parameters. The first parameter, i.e., a string specifies the name of the user for cookie authentication purposes. The second parameter, i.e., a Boolean value specifies whether or not a durable cookie should be issued.
  • A connection string is modified to use the same login ID and password for all connections to a database. This will enable the application to use a single connection pool.
  • The appSettings element is a predefined configuration section of the .NET Framework, which contains custom application settings. Each element added to the appSettings element has a key attribute and a value attribute.
  • The Connection Timeout parameter of the ConnectionString property specifies the time period (in seconds) required to wait for a connection to the server.
  • The Max Pool Size parameter of the ConnectionString property determines the maximum number of connections allowed in the connection pool.
  • Impersonation is a technique that allows the .NET process to act as an authenticated user or as an arbitrarily specified user.
  • The loginUrl attribute of the forms element is used to specify the URL to which the request will be redirected for logon if no valid authentication cookie is found.
  • The impersonate attribute of the element specifies whether or not client impersonation is used on each request. The impersonate attribute can be set either to true or false. It is set to true when client impersonation is used. Otherwise, it is false.
  • The Forms-based authentication is used by the Web Site Administration Tool available on a Web site. This authentication uses the ASP.NET membership system to manage individual user accounts and roles.
  • The FileAuthorizationModule module is used when the authentication mode attribute is set to Windows in the authentication element and checks against the access control list (ACL).
  • By setting the users attribute of the element to “?” indicates that only anonymous users are allowed to access an application.
  • The UrlAuthorizationModule class of the System.Web.Security namespace is used to provide URL-based authorization services to allow or deny access to specified resources.
  • Basic authentication requires remote users to use a valid Windows NT account name and password to access the Web server.
  • The timeout attribute of authentication specifies an integer value that denotes the time (in minutes).
  • The slidingExpiration attribute of authentication specifies that the session timeout is periodically reset as long as a user stays active on the site.
  • The Windows authentication provider authenticates users on the basis of their Windows accounts.
  • Use the NegotiateStream class of the System.Net.Security namespace to provide a stream that uses the Negotiate security protocol for a client authentication and use the SslStream class of the System.Net.Security namespace to provide a stream that uses the Secure Socket Layer (SSL) security protocol to authenticate the server and optionally a client.
  • Use the Property Page dialog box to change the settings of an ASP.NET Web application.
  • The RevertAssert method of the CodeAccessPermission class is used to cause any preceding Assert for the current frame to be detached and no longer in effect.
  • The StrongNameIdentityPermission class is used to describe the identity permission for strong names. In order to have a strong name for an assembly, the code should be signed by a key pair. .Net provides the utility, sn.exe, to generate a key pair.
  • The Strong Name (Sn.exe) tool is used to sign assemblies with strong names. It also provides signature generation, signature verification, and key management.
  • Installation packages are created for deploying a Web application by using a Web Setup project. A merge module project is used for components to be added to the application.
  • The Type Library Importer (Tlbimp.exe) tool is used to convert the type definitions from a COM type library into equivalent definitions in a common language runtime assembly.
  • The Web Setup project and Deployment project is used to create installation packages for the deployment of Web-based applications such as XML Web services, Web applications, etc., to a Web server.
  • The Launch Condition tab in the Project Properties dialog box is used to specify conditions for installation. These conditions can be used in conjunction with a file, registry, or component search.
  • The File System editor can be used to add project outputs to a deployment project. It can be used to specify the location on the target computer where files are to be installed, and to create shortcuts on the target computer.
  • Windows Explorer allows installation and uninstallation of assemblies in the Global Assembly Cache by using drag and drop and menu operations.
  • Use the Web Setup Project template to create installation packages for deploying Web-based applications such as ASP.NET Web applications, and XML Web services. The Web Setup Project creates an installer package of an application and installs various files to a virtual directory on the Web server.
  • The XCOPY deployment, Copy Web Site tool, and Web Setup project deployment methods are used to deploy an application.
  • The Web setup project can be used to deploy the application to a remote server.
  • StateServer mode is used to specify that the session state is using an ASP.NET State Service to store state information.
  • The SessionStateMode enumeration is used to specify the session state mode.
  • The mode=”InProc” attribute is used in the element of the application’s Web.config file to configure the session state settings for an application.
  • ASP.NET’s storage mechanism that is called as profile properties can be used to store state management information on the server-side.
  • A cookieless session is implemented on a mobile Web application to ensure that a mobile Web site is compatible with mobile devices of several users.
  • The Publish Web Site utility is used to pre-compile the content of a Web site, including Web pages and code, and copies the output to a directory or to a specified server.
  • The IsCookieless property of the HttpSessionState class is used to get a value indicating whether the session ID is embedded in the URL or stored in an HTTP cookie.
  • The HTML control element is converted into a server control by using the runat = “server” attribute and value to the element.
  • The file system Web site is used to store all the files for a Web site within a directory specified by a user.
  • A XML Web service is used to open wire formats to communicate between different systems.
  • Open wire formats are the protocols that support common Web standards, such as HTTP and SOAP.
  • The DiscoveryDocumentReference class is used to discover the available XML Web services as given by a URL. The URL must point to the discovery document that has the .disco file extension.
  • The Custom Authentication with SOAP headers is suitable for both secure and non-secure Internet scenarios. For user authentication, the user credentials in encrypted format are passed within the SOAP header of the SOAP message.
  • A remote HTTP-based Web site uses Internet Information Services (IIS) running on a remote computer. The remote computer should be configured with the Microsoft’s FrontPage Server Extensions.
  • Use the Web References dialog box to refer to XML Web services published on either a local intranet or the Internet.
  • The Copy Web Site tool copies files between a current Web site and another Web site.
  • A Web service can be deployed on a Web server by copying the files manually on the Web server, using the Copy Project command of Visual Studio .NET, and by using the Windows Installer package.
  • An application pool is used to hold one or more applications and allows a user to configure a level of isolation between different Web applications. Deploying applications in an application pool is a most important advantage of running IIS in worker process isolation mode because the user can modify the application pool to get the amount of application isolation that he needs.
  • An application pool is used to hold one or more applications and allows a user to configure a level of isolation between different Web applications.
  • A publisher policy configuration file contains compatibility information issued by the publisher of a shared component.
  • The Web application directory, WebService.asmx file, and Web.config file are the components of a Web service and are published on the Web while deploying an XML Web service.
  • The ASP.NET Compilation tool (Aspnet_compiler.exe) is used to allow a user to compile an ASP.NET application. The ASP.NET Merge tool (Aspnet_merge.exe) lets a user to merge and manage assemblies that are created by the ASP.NET Compilation tool.
  • The App_Code folder can store as many files and subfolders as required by a user. When the App_Code folder stores source code in it, the source code is automatically compiled at runtime.
  • The Aspnet_regsql.exe tool is knows as ASP.NET SQL Server Registration Tool. It creates a Microsoft SQL Server database for use by the SQL Server providers in ASP.NET, or to add or remove options from an existing database.
  • The Just-in-Time (JIT) activation service is used to minimize the amount of time for which an object is created and consumes resources and services on the server. With JIT activation, a client can hold a reference for an object on the server.
  • A new file extension .aspx is used instead of the .asp file extension for ASP.NET Web pages so that the existing ASP application code can be incorporated into the ASP.NET Web pages. The aspnet_wp.exe process is also used for the processing of ASP .NET Web pages.
Share
Tagged with: