Apply Your Knowledge

Store the assemblies in one of the subdirectories under the application's installation directory and specify this subdirectory as part of the < probing> element in the application's configuration file. D. Store the components in the Windows system directory. 5. When you install a Web application on a target machine, you want to store the Readme.txt file in the application installation directory selected by the user. You also want to create a shortcut for the Readme.txt file on the...

The Select Statement

Now that you know a variety of ways to execute ad hoc queries, it's time to dig into the T-SQL language to see some of the possible queries, starting with the SELECT statement. The most basic SQL statement is the SELECT statement, which is used to create a resultset. In skeleton form, a SELECT statement looks like this SELECT field_list FROM table_list WHERE where_clause GROUP BY group_by_clause HAVING having_clause ORDER BY sort_clause use any of the methods described in the preceding sections...

Guided Practice Exercise 131

The goal of this exercise is to create a Web Setup Project using the Web Setup Project template rather than the Setup Wizard. The project will install the WebSqlApp application and create a shortcut for the ReadMe.rtf file on the user's desktop. How would you create such a Web Setup project This exercise will give you practice on creating Web Setup projects using the Web Setup project template. You should try working through this problem on your own first. If you get stuck, or if you'd like to...

Practice Exam

Your project contains the following API declaration DllImport(kernel32.dll, CharSet CharSet.Auto) public static extern int GetComputerName( String buffer, ref uint size) The project also contains code to use this API to display the computer name String buf UInt32 intLen 128 Int32 intRet Call the Win API method intRet GetComputerName( buf, ref intLen) This computer is named + buf.ToString()) Users report that no computer name is displayed. What should you do A. Use ref with the variable buf...

Step By Step

15.6 Using the Windowsldentity and WindowsPrincipal Objects 1. Add a new form to your Visual C ASP.NET application. You should leave the application set to perform Windows authentication with impersonation, as it is at the end of Step by Step 15.5. 1010 Part III MAINTAINING AND CONFIGURING A WEB APPLICATION Modify the Domain Name This code contains a reference to a specific domain named INFINITY in its call to the IsInRole method. You should change that to the name of your own domain to test...

Web Garden

A Web garden is a Web application whose execution is distributed across more than one processor on a multiprocessor computer. Web gardening is the default behavior for ASP.NET. For example, suppose that you install an ASP.NET application on a computer with eight CPUs. In this case, ASP.NET will automatically launch eight worker processes to handle incoming Web requests, and assign one of these processes to each CPU a procedure known as setting the affinity of the process . Web gardens offer the...

Exam Questions

You have inherited a large ASP.NET application because the original developer has left the company. You are concerned because there does not seem to be sufficient error trapping in the code-behind files to catch all likely errors. What is the easiest way for you to begin tracking all unhan-dled errors A. Add error trapping to every method behind every page. B. Add a Page_Error event handler to each page's code-behind file. C. Add an Application_Error event handler to each page's code-behind...

Anatomy of a Configuration File

The easiest way to learn about the structure of configuration files is to look inside one. Let's start with the master configuration file that controls ASP.NET's operations on the computer. Its name is machine.config, and you'll find it in a directory underneath your Windows installation directory, whose name is based on the version of the .NET Framework installed. For example, on a Windows 2000 computer with the initial release of the .NET Framework installed, this file is at CONFIG...