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...

Info

Exam Questions These questions reflect the kinds of questions that appear on the actual vendor exam. Use them to become familiar with the exam question formats and to help you determine what you know and what you need to review or study more. Suggested Readings and Resources The very last element in every chapter is a list of additional resources you can use if you want to go above and beyond certification-level material or if you need to spend more time on a particular subject that you are...

Guided Practice Exercise 122

The Factorial Calculator created in Step by Step 12.6 throws exceptions of type System.FormatException and System.OverflowException when users are not careful about the numbers they enter. The later versions of this program (created in Step by Steps 12.7 and 12.8) catch the exception to prevent users from complaining about the annoying exception messages. The goal of this exercise is to configure the debugger in Step by Step 12.8 so that when the reported exception occurs, you get an...

Wsdl

Another prerequisite for using a Web service is knowledge of the SOAP messages that it can receive and send. You can obtain this knowledge by parsing WSDL files. WSDL stands for Web Services Description Language, a standard by which a Web service can tell clients what messages it accepts and which results it will return. < xml version 1.0 encoding utf-16 > < definitions xmlns s0 xmlns soapenc xmlns tns xmlns tm targetNamespace < types> < s complexType name WeatherSummary> < s...

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...

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...