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

Info

Expand the tree under Event Logs. Drag and drop the Application event log to the Web form. This creates an eventLog1 object in the component tray. Access the properties of the eventLog1 object and change its Source property to EventLogApp. Change the MachineName property to . a single dot so that it refers to the local computer no matter what computer the application is installed on. Click the Add Installer link just above the description area in the Properties window as...

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

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