Tracing and Debugging in ASP.NET
|
|
|
- Andrew McCoy
- 10 years ago
- Views:
Transcription
1 Tracing and Debugging in ASP.NET Tracing and Debugging in ASP.NET Objectives Learn how to set up traces in Visual Studio.NET. Configure tracing and debugging in Visual Studio.NET. Step through code written in Visual Basic.NET, C#, and Transact- SQL. Building and Deploying Web Applications Professional Skills Development 5-1
2 Tracing and Debugging in ASP.NET Tracing in ASP.NET ASP.NET supports tracing at the page level and at the application level. Tracing provides an easy way to include debug statements no more messy Response.Write() calls. Instead, you add Trace.Write statements to your code. You only see these statements if debugging is turned on they are ignored if debugging is turned off. The Visual Studio.Net environment supports both local and remote tracing and debugging. Tracing allows you to collect details about your running application, such as the server control tree, server variables, headers, cookies, and Querystring parameters. Page Level Tracing You can enable tracing at the page level by inserting a Trace directive at the top of an aspx page: <%@ Page Trace="True" %> You can then add Trace.Write calls throughout the page: Page.Trace.Write("Your message here.") See Trace.aspx The Trace.aspx page consists of a simple Textbox control for a user to enter a name, a Button control to post back to the server, and a Label control to display the name entered along with a message, as shown in Figure Building and Deploying Web Applications Professional Skills Development
3 Tracing in ASP.NET Figure 1. The Trace.aspx page without tracing turned on. If you look at the code behind the page, you will see that there are Trace.Write statements and a Trace.Warn statement in the Page_Load and Button event handlers. However, you never see the results because tracing hasn t been activated. Private Sub Page_Load( _ ByVal sender As System.Object, _ ByVal e As System.EventArgs) _ Handles MyBase.Load If Not IsPostBack Then Page.Trace.Write("In Page_Load event") Else Page.Trace.Write("In PostBack event") End If End Sub Building and Deploying Web Applications Professional Skills Development 5-3
4 Tracing and Debugging in ASP.NET Private Sub btnenter_click( _ ByVal sender As System.Object, _ ByVal e As System.EventArgs) _ Handles btnenter.click Page.Trace.Write("In btnenter_click event.") ' Trace.Warn shows up in red Page.Trace.Warn("The current time is: " & Now().ToString) lblmessage.text = "Hi <b>" & txtname.text _ & "</b>. Don't forget to turn on tracing!" Page.Trace.Write("Name entered = " & txtname.text) End Sub Activating Tracing for the Page To activate tracing and view trace output, you need to set the Tracing="true" directive at the top of the aspx page. <%@ Page Language="vb" AutoEventWireup="false" Codebehind="Trace.aspx.vb" Inherits="Tracing.Trace" Trace="true"%> 5-4 Building and Deploying Web Applications Professional Skills Development
5 Tracing in ASP.NET When you load the page in the browser, you see tracing information displayed with the page, as shown in Figure 2. Figure 2. Trace.Write entries are circled. Interpreting Trace Output In addition to your own tracing output, you can see information about your page. The Control Tree section shows you information about the controls on the page, as shown in Figure 3. Figure 3. The Control Tree section. Building and Deploying Web Applications Professional Skills Development 5-5
6 Tracing and Debugging in ASP.NET The Cookies Collection gives you the names and values of cookies, as shown in Figure 4. Figure 4. The Cookies Collection section. The Headers Collection displays information about messages being sent between the Web server and the client, as shown in Figure 5. Figure 5. The Headers Collection section. The Form Collection displays values from the page, as shown in Figure 6. Figure 6. The Form Collection section. 5-6 Building and Deploying Web Applications Professional Skills Development
7 Tracing in ASP.NET The Server Variables section displays information about your Web server, as shown in Figure 7. Figure 7. The Server Variables section. Application Tracing Steps See Web.config in Tracing.sln If you want to turn on tracing for the entire application, you need to revise the entry in the application s web.config file, setting the trace element s enabled property (attribute) to true. The requestlimit is the number of requests to save on the server the default is 10: <configuration> <system.web> <trace enabled= true requestlimit= 10 /> </system.web> </configuration> Save the file and turn off tracing in Trace.aspx. Choose Build and Browse from the right-click menu and put the Trace page through its paces. Now that tracing is turned off, you won t see any information listed at the bottom of the page. Building and Deploying Web Applications Professional Skills Development 5-7
8 Tracing and Debugging in ASP.NET With the browser still open, load This output file is always named Trace.axd. The Trace.axd file is a magic URL that points to a page that doesn t actually exist on disk. Your browser will look like that shown in Figure 8. Figure 8. The Trace.axd page. Click on View Details, and you ll see the same information that you saw when you had page-level tracing activated. You can also modify the web.config file to add parameters. Changing the pageoutput property to true causes the output to display at the bottom of the current page, instead of in the Trace.axd page: <configuration> <system.web> <trace enabled="true" requestlimit="10" pageoutput="true" tracemode="sortbytime" localonly="true" /> </system.web> </configuration> Writing to the Windows Event Log See OutputNTlog.aspx Instead of writing to a text file on disk, you can also write information to the Windows Event Log. The class imports the System.Diagnostics namespace to create an EventLog object variable and then uses its WriteEntry method to insert text into the log: Imports System.Diagnostics 5-8 Building and Deploying Web Applications Professional Skills Development
9 Tracing in ASP.NET The click event handler writes to the log: Private Sub btnenter_click( _ ByVal sender As System.Object, _ ByVal e As System.EventArgs) _ Handles btnenter.click Dim Log As New System.Diagnostics.EventLog() Log.Source = "Tracing Demo-OutputNTlog" Log.WriteEntry(txtName.Text & " Entered at " _ & Now().ToString(), EventLogEntryType.Information) End Sub Set the OutputNTLog.aspx page as the start page and press F5 to view the page in browser mode. Type in a name and click the ENTER button, as shown in Figure 9. Figure 9. Entering information in the Windows Event Log. Building and Deploying Web Applications Professional Skills Development 5-9
10 Tracing and Debugging in ASP.NET Select Administrative Tools Event Viewer from the Windows Start menu and double-click the Tracing Demo-OutputNTlog event. You will see the name entered on the page along with the time, as shown in Figure 10. Figure 10. Viewing event information in the Windows Event Log. Instrumenting Your Application Displaying all available trace information is all well and good if you re running and debugging your ASP.NET application interactively. However, once you distribute your application, you don t want your users to see trace or error messages. In ASP.Net you have the option of implementing instrumentation, which involves placing trace statements at strategic locations in your code. These statements can then be activated selectively based on entries in your Web.config file. Trace Listeners A trace listener is an object that can receive and process messages. The DefaultTraceListener is automatically created and initialized whenever you enable tracing or debugging this is the trace information that appears on your Web page or Trace.axd file. There are also two other listeners, the EventLogTraceListener and the TextWriterTraceListener. The EventLogTraceListener can insert entries in the Event log, and the TextWriterTraceListener can write entries out to a text file Building and Deploying Web Applications Professional Skills Development
11 Tracing in ASP.NET A trace switch then controls whether or not trace listeners actually output any information to their designated destinations. Trace Switches Trace switches allow you to set the granularity of the messages you receive when you configure them in the Web.config file. The.NET Framework provides two types of trace switches: The BooleanSwitch class acts as a toggle, either enabling or disabling a variety of trace statements. The TraceSwitch class allows you to enable a trace switch for various tracing levels, so that the trace messages specified for that level and all levels below it appear. If you disable the switch, the trace messages do not appear. The default for a deployed application is to have all trace switches disabled. If you have a problem, you can configure and activate a trace switch that allows you to change the values of switch objects by changing entries in the Web.config file. This means that you don t have to recompile your code to turn tracing on and off after the application is distributed. When your code executes and creates an instance of a switch object for the first time, it checks the Web.config file to see the level of trace information you have configured (if any), then conditionally produces output based on the settings it finds there. When you create an instance of a switch, you specify a displayname argument, which is the name used in the Web.config file, and description argument, which describes the switch and the messages it controls. You also need to specify the following integer values: See Web.config For a BooleanSwitch, the values are Off (0), which is the default, and On (1 or any non-zero value). For a TraceSwitch, the values are Off (0), Error (1), Warning (2), Info (3), and Verbose (4 or any value greater than 4). The Web.config file shows the switching in the <configuration> section. Note that you need to name and add the switches ATraceSwitch for a trace switch, and ABooleanSwitch for a Boolean switch. When you refer to the switches in your code, you must use the names defined here. Building and Deploying Web Applications Professional Skills Development 5-11
12 Tracing and Debugging in ASP.NET <!--turn on trace switches Boolean switch values: Off=0, On=1 Trace switch values: Off=0, Error=1 Warning=2 Info=3 Verbose=4!--> <system.diagnostics> <switches> <add name="atraceswitch" value="0" /> <add name="abooleanswitch" value="0" /> </switches> </system.diagnostics> Throwing the Switches and Activating the Listeners See Global.asax.vb You can configure your trace listeners in your Global.asax file so that they are activated for the entire application. The Systems.Diagnostic class allows you to programmatically configure the trace listeners. Note that you can use an abbreviation Diags so that you don t need to spell out System.Diagnostics every time you use it in your code: Imports System.Diagnostics Imports Diags = System.Diagnostics The trace listeners are defined at the class level: Private twtl As Diags.TextWriterTraceListener When the application starts, you can write code in the Application_Start event handler in Global.asax to both fire off an entry to the Windows Application Event Log to that effect and to configure the trace listeners you want to use in the application Building and Deploying Web Applications Professional Skills Development
13 Tracing in ASP.NET Sub Application_Start( _ ByVal sender As Object, _ ByVal e As EventArgs) ' Fires when the application is started ' Fire off to Windows Application Event Log Dim Log As New Diags.EventLog() Log.Source = "DotNetLogDemo" Log.WriteEntry("Logging Application_Start event at " _ & Now().ToString(), EventLogEntryType.Information) 'Configure listeners for the application Call SetupListeners() End Sub The SetupListeners procedure handles configuring the listeners. This example writes trace information to three locations: the Output window, a text file, and the Windows event log. Sub SetupListeners() Diags.Trace.Listeners.Clear() ' Write trace info to the Output window. Diags.Trace.Listeners.Add( _ New TextWriterTraceListener(Console.Out)) ' Write trace info to DotNetLogDemo.txt twtl = New TextWriterTraceListener("c:\DotNetLogDemo.txt") Diags.Trace.Listeners.Add(twtl) Dim elog As New EventLog() elog.source = "DotNetLogDemo" Diags.Trace.Listeners.Add( _ New EventLogTraceListener(eLog)) End Sub Building and Deploying Web Applications Professional Skills Development 5-13
14 Tracing and Debugging in ASP.NET NOTE In real life you wouldn t define so many listeners. You d choose a listener that is most suitable for your application. The Application_End event handler contains cleanup code so that the listeners are available for the duration of the application and for garbage collection at the end of it. If you clean up your listeners too early, you could generate an exception if a listener is called and is not available. Sub Application_End( _ ByVal sender As Object, _ ByVal e As EventArgs) ' Fires when the application ends CleanupListeners() End Sub Sub CleanupListeners() ' Flush and close the text file trace listener. twtl.flush() twtl.close() End Sub See OutputFile.aspx The OutputFile.aspx page displays information about which listeners are active. It also imports the System.Diagnostics namespace. Imports System.Diagnostics Imports Diags = System.Diagnostics A TraceSwitch and BooleanSwitch object are declared at the class level: Private traceswitch As TraceSwitch Private boolswitch As BooleanSwitch 5-14 Building and Deploying Web Applications Professional Skills Development
15 Tracing in ASP.NET The load event handler creates objects to point to the TraceSwitch and BooleanSwitch objects: Private Sub Page_Load( _ ByVal sender As System.Object, _ ByVal e As System.EventArgs) _ Handles MyBase.Load TraceSwitch = _ New TraceSwitch("ATraceSwitch", _ "Demo trace switch") boolswitch = _ New BooleanSwitch("ABooleanSwitch", _ "Demo boolean switch") End Sub The click event handler writes to the Windows application event log and the text file, depending on which levels are configured in Web.config: Private Sub btnenter_click( _ ByVal sender As System.Object, _ ByVal e As System.EventArgs) _ Handles btnenter.click Dim strtrace As String ' Write to all listeners, depending on how the various ' switches are set. Debug.WriteLineIf(boolSwitch.Enabled, _ "You will see this if ABooleanSwitch is enabled-" _ & Now().ToString()) Diags.Trace.WriteLineIf(traceSwitch.TraceError, _ "You will see this if traceswitch.traceerror(1) is set" _ & Now().ToString()) Diags.Trace.WriteLineIf(traceSwitch.TraceWarning, _ "You will see this if traceswitch.tracewarning(2) is set" _ & Now().ToString()) Building and Deploying Web Applications Professional Skills Development 5-15
16 Tracing and Debugging in ASP.NET Diags.Trace.WriteLineIf(traceSwitch.TraceInfo, _ "You will see this if traceswitch.traceinfo (3) is set-" _ & Now().ToString()) Diags.Trace.WriteLineIf(traceSwitch.TraceVerbose, _ "You will see this if traceswitch.traceverbose(4) is set-" _ & Now().ToString()) If traceswitch.traceerror = True Then strtrace = strtrace & " TraceError(1) " End If If traceswitch.tracewarning = True Then strtrace = strtrace & " TraceWarning(2) " End If If traceswitch.traceinfo = True Then strtrace = strtrace & " TraceInfo(3) " End If If traceswitch.traceverbose = True Then strtrace = strtrace & " TraceInfo(3) " End If If boolswitch.enabled = True Then strtrace = strtrace & " boolswitch(1) " End If If Len(strTrace) > 0 Then lblmessage.text = "See the logs for trace messages.<br>" _ & "The following trace levels were enabled:<br><br><b>" _ & strtrace & "</b>" Else lblmessage.text = "No traces enabled in Web.config" End If End Sub 5-16 Building and Deploying Web Applications Professional Skills Development
17 Tracing in ASP.NET Sending SMTP Mail You can also use SMTP Mail instead of writing errors to a file or to the event log by importing the System.Web.Mail namespace into your application. You can then declare an object variable as a MailMessage object: Dim msg as New MailMessage Then set up a message and send it: msg.to = "[email protected]" msg.from = "MyAppServer" msg.subject = "Unhandled Error-do something!" msg.bodyformat = MailFormat.Html msg.body = "<html><body><h1>" & Request.Path & "</h1>" & Me.Error.ToString() & "</body></html>" SmtpMail.Send(msg) Redirecting Users When Errors Occur One of the big improvements in.net is its ability to provide a unified error handling architecture, which includes declarative custom error handling and works the same way in all.net programming languages. For ASP.NET applications, this means that you can automatically log errors, write to the Windows NT event log, send , or redirect users to a custom error page whenever unhandled exceptions occur. Redirecting users to a specific Web page is a good way to prevent them from seeing error and exception information. It also allows you to control the message and display a friendlier page. See CustomErrorPage.aspx Figure 11 shows the CustomErrorPage.aspx page in browser mode, which was automatically displayed when an unhandled exception occurred in the BlowUp.aspx page. Building and Deploying Web Applications Professional Skills Development 5-17
18 Tracing and Debugging in ASP.NET Figure 11. You can display a custom page whenever an error occurs. See Web.config To redirect users, you need to set the customerrors mode to On and the defaultredirect property to the name of a page you want to display in the Web.config file. This tells ASP.NET to display the page instead of any error messages that would otherwise be displayed. <customerrors mode="on" defaultredirect="customerrorpage.aspx" /> The values you can set for customerrors are On, Off, or RemoteOnly. The CustomErrorPage loads on any unhandled exceptions if On is activated, and only for remote users if RemoteOnly is specified. NOTE Redirecting to a custom error page does not disable writing to event logs or event files, so you can still capture information about any errors that occurred without displaying them to the users of your application. See BlowUp.aspx The BlowUp.aspx page deliberately blows up at run time with the following code in the Page_Load event handler: Private Sub Page_Load( _ ByVal sender As System.Object, _ ByVal e As System.EventArgs) _ Handles MyBase.Load Dim foo As Object foo.tostring() End Sub 5-18 Building and Deploying Web Applications Professional Skills Development
19 Tracing in ASP.NET See Web.config Set BlowUp.aspx as the start page and run the project. The CustomErrorPage.aspx page will display instead of Blowup.aspx. Now set the customerrors mode to Off in the Web.config file, save it, and click the And the real story is button shown in Figure 12. <customerrors mode="off" defaultredirect="customerrorpage.aspx" /> Figure 12. The custom error page button will attempt to reload Blowup.aspx The event handler for the button simply attempts to reload the BlowUp.aspx page: Response.Redirect("BlowUp.aspx") Building and Deploying Web Applications Professional Skills Development 5-19
20 Tracing and Debugging in ASP.NET Because you have now set the customerrors option to Off, you will then see the actual error, as shown in Figure 13. Figure 13. The real errors are displayed. Using Custom Counters You can create your own custom application performance counters, which then display in the Windows Performance Monitor (also known as the System Monitor). This allows you to monitor individual ASP.NET applications using your own application-specific performance data. You could see total orders, orders per second, or any other data you deem worthy of monitoring. You create your own custom counters in code using the System.Diagnostics namespace and add them manually to the Performance Monitor. See CustomCounter.aspx.vb The class module s declaration section imports System.Diagnostics: Imports System.Diagnostics 5-20 Building and Deploying Web Applications Professional Skills Development
21 Tracing in ASP.NET The code in the Page_Load event handler in CustomCounter.aspx creates a custom counter if it doesn t already exist: Private Sub Page_Load( _ ByVal sender As System.Object, _ ByVal e As System.EventArgs) _ Handles MyBase.Load If Not IsPostBack Then If Not PerformanceCounterCategory.Exists("CounterDemo") Then PerformanceCounterCategory.Create( _ "CounterDemo", "Add me to the graph", _ "TotalOrders", "Add me to the graph") End If End If End Sub Set the CustomCounter.aspx page as the start page and press the F5 key to load it in the browser. The custom counter named CounterDemo is then created. Building and Deploying Web Applications Professional Skills Development 5-21
22 Tracing and Debugging in ASP.NET Launch the Performance Monitor from the Windows Start menu. Add the CounterDemo counter by right-clicking on the Performance Monitor graph, as shown in Figure 14. Figure 14. Adding the custom counter to the Performance Monitor graph Building and Deploying Web Applications Professional Skills Development
23 Tracing in ASP.NET You will then see a red line across the Performance Monitor graph screen. Resize the Performance Monitor and the browser window so that you can see both the browser and the Performance Monitor. Click the Do Counter button repeatedly. You will see the graph update with each click, as shown in Figure 15. Figure 15. Each time you click the Do Counter button, the graph in the Performance Monitor updates. The event handler code for the Do Counter button increments the counter in the Performance Monitor by 1: Private Sub btngo_click( _ ByVal sender As System.Object, _ ByVal e As System.EventArgs) _ Handles btngo.click Dim ctr As New PerformanceCounter("CounterDemo", _ "TotalOrders", False) ctr.incrementby(1) End Sub Building and Deploying Web Applications Professional Skills Development 5-23
24 Tracing and Debugging in ASP.NET Debugging ASP.NET Applications Visual Studio.NET supports a rich debugging environment with a common IDE, multiprocess, and cross-language debugging available. You can debug both local and remote applications in non-modal windows. You can step through code written in different languages without having to switch gears and migrate to another user interface. In addition, debugging doesn t kill the process after it completes. However, you must set some configuration options to enable debugging, or else breakpoints in your code will simply be ignored when you attempt to debug it. Configuring Debugging in Visual Studio.NET You can customize Visual Studio.NET so that the keyboard shortcuts are familiar and consistent with the programming language of your choice. For example, if you are comfortable in Visual Basic 6, you can configure the environment so that the F8 key (and those other shortcut keys you memorized) will continue to work. However, it isn t always easy to find out where to set options in Visual Studio.NET seemingly related options are often buried in different locations. Configuring Your Profile Your profile determines what you will see in Visual Studio the shortcut keys and general programming environment. This is a good starting point for setting options that will help you become comfortable with debugging in Visual Studio.NET. Try It Out! 1. Select View WebBrowser Home from the menu to load your custom Start page Building and Deploying Web Applications Professional Skills Development
25 Debugging ASP.NET Applications 2. Click the My Profile hyperlink at the lower-left section of the page. This loads your Start page, as shown in Figure 16. Figure 16. Your Start page is where you configure general options for Visual Studio.NET. 3. The Keyboard Scheme determines which shortcut keys will appear on the Visual Studio.NET menus. Choose one of the options shown in Figure 17. Figure 17. The options for setting up shortcut keys. 4. Choose one of the Window Layout options shown in Figure 18. Figure 18. Available Window Layout options. Building and Deploying Web Applications Professional Skills Development 5-25
26 Tracing and Debugging in ASP.NET 5. Choose a Help Filter option as shown in Figure 19. Figure 19. Help Filter options. 6. The last option you ll set determines what happens when Visual Studio.NET starts up; choose one of the At Startup options shown in Figure 20. Figure 20. Startup options for Visual Studio.NET. Setting Tracing and Debugging Properties The next step is to set properties in your project so that you can debug and step through code Building and Deploying Web Applications Professional Skills Development
27 Debugging ASP.NET Applications Try It Out! Follow these steps to set up your project so that you can debug your ASP.NET and Transact-SQL code. 1. Right-click on the Tracing project and choose Properties, then select Configuration. Turn on ASP.NET debugging and SQL Server debugging as shown in Figure 21 so that the program stops when it hits breakpoints. Figure 21. Turning on debugging for ASP.NET and SQL Server. Building and Deploying Web Applications Professional Skills Development 5-27
28 Tracing and Debugging in ASP.NET 2. Click the Build node and set the conditional compilation constants shown in Figure 22. Figure 22. Defining DEBUG and TRACE constants in the project Properties dialog box. Here s what the various options mean: When you check the option Generate debugging information, debugging information will display during compilation. By default debugging information is turned on for the Debug configuration and off for the Release configuration. The Warnings option determines whether warnings will be raised during compilation and how they will be treated. The Enable build warnings option emits build warnings to the Task List during compilation. When you check the Treat warnings as errors option, a build warning won t cause an output file to be produced. The Conditional compilation constants section determines whether tracing and debugging statements should be compiled into the assembly. You can activate DEBUG, TRACE, and your own custom constants. You can also set these options in the Web.config file, as shown here where the default language is set to Visual Basic and the debug option is set to true: <compilation defaultlanguage="vb" debug="true" /> 5-28 Building and Deploying Web Applications Professional Skills Development
29 Debugging ASP.NET Applications Setting Breakpoints and Stepping through Code See TraceDemo.aspx.vb Once you ve configured your debugging options, you can then step through code. Open TraceDemo.aspx.vb and place a breakpoint in the Page_Load event handler, as shown in Figure 23. Figure 23. Setting a breakpoint in the If Not Page.IsPostback Then statement. Set the TraceDemo.aspx page as the Start page and press F5. The page will start to load, and then you will be bumped into debug mode where you can explore the available options. Building and Deploying Web Applications Professional Skills Development 5-29
30 Tracing and Debugging in ASP.NET Debug Options Choose Debug from the menu so that you can see the available options shown in Figure 24. There are shortcut keys for setting breakpoints and stepping through code. Figure 24. The Debug menu options Building and Deploying Web Applications Professional Skills Development
31 Debugging ASP.NET Applications Setting Up a Watch Expression The QuickWatch dialog box enables you to get information about the currently running project. Choose the QuickWatch option and type Me.btnEnter.Text in the Expression box. Click the Recalculate button and the current value is displayed, as shown in Figure 25. Figure 25. Using the QuickWatch dialog box. Now type Me.txtName.Text <> "" into the Expression text box and click Add Watch. The expression will be added to the Watch window. You can view the Watch window by choosing Debug Windows Watch Watch1 from the menu. Your expression appears in the Watch window, as shown in Figure 26. Figure 26. The Watch window. Unlike the QuickWatch dialog box, the Watch window is non-modal. You can set up watch expressions and view the contents while your code executes. Building and Deploying Web Applications Professional Skills Development 5-31
32 Tracing and Debugging in ASP.NET Debugging Windows Choose Debug Windows from the menu to see the list of available debugging windows shown in Figure 27. Figure 27. Available windows in break mode. The Immediate Window (Command Window) The Immediate window is also known as the Command window and is available while you re in break mode. This window allows you to interactively enter expressions, which are then evaluated. Choose Debug Windows Immediate from the menu and type? Page.IsPostBack. Press the ENTER key, and the results of the expression are evaluated and the results returned, as shown in Figure 28. Figure 28. The Immediate window Building and Deploying Web Applications Professional Skills Development
33 Debugging ASP.NET Applications The Locals Window The Locals window displays a wealth of information, which is accessible by expanding the plus sign (+) next to each item, as shown in Figure 29 where Me is expanded. Figure 29. The Locals window. You can drill down to the JavaScript level as shown in Figure 30, where the postbackfunctionname property is exposed. Figure 30. Drilling down in the Locals window. Building and Deploying Web Applications Professional Skills Development 5-33
34 Tracing and Debugging in ASP.NET The Me Window The Me window is similar to the Locals window, but with a more restricted scope. It shows values for the current page only, as shown in Figure 31. Figure 31. The Me window. The Breakpoints Window The Breakpoints window shown in Figure 32 displays the breakpoints that have been previously set. The breakpoint in DebugTest.aspx is highlighted an additional breakpoint has been set in the Ten Most Expensive Products stored procedure in the SQL Server Northwind database. Setting breakpoints in stored procedures and stepping through Transact-SQL code are covered later in this chapter. Figure 32. The Breakpoints window Building and Deploying Web Applications Professional Skills Development
35 Debugging ASP.NET Applications The Modules Window The Modules window shows you all the modules (DLLs or EXEs) that your program uses, as shown in Figure 33. You can sort them by clicking the column header for each column. Figure 33. The Modules window. The Call Stack The Call Stack window shows you the names of functions on the call stack, as well as their parameter types and values, as shown in Figure 34. Figure 34. The Call Stack. Building and Deploying Web Applications Professional Skills Development 5-35
36 Tracing and Debugging in ASP.NET The Disassembly Window The Disassembly window shows you the assembly code that corresponds to the instructions the compiler creates, as shown in Figure 35. Note that the breakpoint is currently on the If Not Page.IsPostBack Then statement. Figure 35. The Disassembly window. The Registers Window The Registers window shown in Figure 36 displays register contents. If you keep the Registers window open as you step through your code, you can see register values change as your code executes. Values that have changed recently appear in red. Figure 36. The Registers window Building and Deploying Web Applications Professional Skills Development
37 Debugging ASP.NET Applications Press the F8 key to step to the next statement, and you ll see the values change, as shown in Figure 37. Figure 37. Stepping through code shows the changed register values in red. You can explore the other debugging windows and press the F5 key to end debugging. Remote Debugging If you wish to set up debugging on a remote machine, you must have administrative privileges on that machine. You can install either the full Visual Studio.NET or install only the debug components on that machine with the Remote Components Setup option in the Visual Studio.NET setup CD. You will then be automatically added to the Debugger group on that machine and have access to the remote debugging components). The.NET Framework online Help fully documents setting up and configuring remote debugging. Building and Deploying Web Applications Professional Skills Development 5-37
38 Tracing and Debugging in ASP.NET Debugging Multiple Languages One of the most interesting and powerful new features in Visual Studio.NET is the ability to debug and step through code in any.net language and beyond. Here s a list of some of the other platforms that Visual Studio.NET supports: Debug from.net to C++ Debug into Platform Invocation Services (P/Invoke) Debug COM Interoperability Debug IJW for Managed Extensions for C++ Debug into Transact-SQL SQL Server Debugging You can step through your Transact-SQL code contained in stored procedures, user-defined functions, and triggers in Visual Studio.NET by setting up a Data Connection in the Server Explorer and setting breakpoints in your stored procedures. Try It Out! Follow these steps to debug from a Visual Basic.NET procedure into a C# class and then into a stored procedure: 1. Choose View Server Explorer from the menu. 2. Right-click on Data Connections and choose Add Connection from the menu Building and Deploying Web Applications Professional Skills Development
39 Debugging Multiple Languages 3. This loads the Data Link Properties dialog box, where you can set up connection information to the Northwind database in SQL Server, as shown in Figure 38. Figure 38. Setting up a link to the Northwind SQL Server database. 4. Expand the server name and stored procedure nodes and double-click the Ten Most Expensive Products stored procedure shown in Figure 39. Figure 39. Double-clicking a stored procedure loads it into Visual Studio.NET. Building and Deploying Web Applications Professional Skills Development 5-39
40 Tracing and Debugging in ASP.NET 5. This loads the stored procedure into Visual Studio.NET, where you can set a breakpoint in your Transact-SQL code, as shown in Figure 40. Figure 40. Setting a breakpoint in a stored procedure. 6. If you right-click in the stored procedure, you will see the available options shown in Figure 41. Figure 41. Options for stored procedures (right-click menu) Building and Deploying Web Applications Professional Skills Development
41 Debugging Multiple Languages 7. Double-click on DebugText.aspx.vb in the Solution Explorer and set a breakpoint on the line of code highlighted in Figure 42. This line of code sets the DataSource property of a DataGrid control to the results returned from a C# method named RunProc (which executes the Ten Most Expensive Products stored procedure). The C# class is named CSharpDemo and is included in the Tracing solution. Figure 42. Setting a breakpoint to step into a C# class. 8. Set DebugText.aspx as the Start page and press F5 to start debugging. Click the Start Debugging button shown in Figure 43. Figure 43. The DebugTest.aspx page in browse mode. Building and Deploying Web Applications Professional Skills Development 5-41
42 Tracing and Debugging in ASP.NET 9. This will drop you into the event handler for the button. Press the F8 key to step into the C# class, as shown in Figure 44. Figure 44. Stepping through C# code. 10. Continue pressing the F8 key to step into the stored procedure, as shown in Figure 45. Figure 45. Stepping through Transact-SQL code Building and Deploying Web Applications Professional Skills Development
43 Debugging Multiple Languages 11. When you reach the end, the data returned from the stored procedure is displayed, as shown in Figure 46. Figure 46. The result set is displayed in the DataGrid control. Building and Deploying Web Applications Professional Skills Development 5-43
44 Tracing and Debugging in ASP.NET Summary ASP.NET supports page-level and application-level tracing. You can enable page-level tracing by inserting a Trace directive in an aspx page. Trace statements display in the page if tracing is enabled. You can display custom messages by using the Trace.Write and Trace.Warn statements in your code. Trace.Warn statements are displayed in red. To configure application tracing, set the trace enabled property to true in the Web.config file. If the pageoutput property is set to false, then trace information is displayed in the Trace.axd file. You can write trace information to the Windows Event Log by importing the System.Diagnostics namespace into your class module. You can instrument your application to display trace information as necessary by writing code and then activating it via entries in the Web.config file. Trace listeners receive and process messages when you activate trace switches in your Web.config file. You can create a custom error page to display whenever an unhandled exception or other error occurs by setting the CustomErrors mode to on and specifying the error page in the defaultredirect property in the Web.config file. You can create your own custom counters to be displayed in the Windows Performance Monitor graph. You need to configure your profile and project debugging options to activate debugging if you want to be able to step through code. When you are in break mode, many debugging options and windows are available through the Debug menu, including setting watch expressions, viewing variable and page values, and displaying all breakpoints as well as all procedures in the call stack. The Disassembly window shows you assembly code. The Registers window shows you changing register values. You can step through your code written in any.net language as well as languages such as Transact-SQL. To step through stored procedure code, you must first set up a Data Connection in the Server Explorer to the database in which the stored procedure resides Building and Deploying Web Applications Professional Skills Development
45 Debugging Multiple Languages Questions 1. How can you set up page-level tracing? 2. When you set up application-level tracing, where does the output display if the pageoutput property is set to false in the Web.config file? 3. Which namespace allows you to write trace information to the Windows Event Log? 4. How do you activate a trace listener? 5. What error messages does a user see if you set the CustomErrors mode to On and the outputredirect property to a custom error page in your Web.config file? 6. What do you need to do to step through stored procedure code? Building and Deploying Web Applications Professional Skills Development 5-45
46 Tracing and Debugging in ASP.NET Answers 1. How can you set up page-level tracing? By inserting the page directive Page Trace="True" 2. When you set up application-level tracing, where does the output display if the pageoutput property is set to false in the Web.config file? Output displays in the Trace.axd file 3. Which namespace allows you to write trace information to the Windows Event Log? The System.Diagnostic namespace 4. How do you activate a trace listener? By activating a Trace Switch in the Web.config file 5. What error messages does a user see if you set the CustomErrors mode to On and the outputredirect property to a custom error page in your Web.config file? None the custom error page will be displayed instead. 6. What do you need to do to step through stored procedure code? Set up a Data Connection in the Server Explorer to the database in which the stored procedure resides Building and Deploying Web Applications Professional Skills Development
47 Debugging Multiple Languages Lab 5: Tracing and Debugging in ASP.NET Building and Deploying Web Applications Professional Skills Development 5-47
48 Lab 5: Tracing and Debugging in ASP.NET Lab 5 Overview In this lab you ll learn how to configure and activate tracing in ASP.NET. You ll also learn how to use the debugging features in Visual Studio.NET. To complete this lab, you ll need to work through three exercises: Turn on Tracing in ASP.NET Redirect Users on any Errors Debug Code in Visual Studio.NET Each exercise includes an Objective section that describes the purpose of the exercise. You are encouraged to try to complete the exercise from the information given in the Objective section. If you require more information to complete the exercise, the Objective section is followed by detailed step-bystep instructions Building and Deploying Web Applications Professional Skills Development
49 Turn on Tracing in ASP.NET Turn on Tracing in ASP.NET Objective In this exercise, you ll activate tracing for a page by setting a page directive. You ll then activate tracing for the entire application. Things to Consider How do you activate tracing for a single page? How do you activate tracing for an entire application? How do you redirect users to another page if an error occurs? Step-by-Step Instructions 1. Set the TraceLab.aspx page as the start page. Click F5 to display the page in the browser. At this point tracing is turned off, and clicking the Enter button will not display any tracing information. Close the browser. 2. Open TraceLab.aspx and click the HTML tab. 3. Set the page directive Trace="true": <%@ Page Language="vb" AutoEventWireup="false" Codebehind="TraceLab.aspx.vb" Inherits="TracingLab.TraceLab" Trace="true"%> 4. Open TraceLab.aspx.vb and uncomment the code in the Page_Load and btnenter_click event handlers. 5. Save your work and click F5. You will now see tracing information in the browser. 6. Scroll down the page and look at the various sections. Enter your name and click the Enter button. Note the new tracing information displayed. Building and Deploying Web Applications Professional Skills Development 5-49
50 Lab 5: Tracing and Debugging in ASP.NET 7. Close the browser. Delete the page directive Trace="true": Page Language="vb" AutoEventWireup="false" Codebehind="TraceLab.aspx.vb" Inherits="TracingLab.TraceLab"%> 8. To set application-wide tracing, you need to modify the Web.config file. Double-click Web.config to open it. 9. Turn on tracing by setting the enabled attribute to true and the pageoutput attribute to true: <trace enabled="true" requestlimit="10" pageoutput="true" tracemode="sortbytime" localonly="true" /> 10. Save your work and click F5. You will now see tracing information in the browser, as in the first example. 11. Now set the pageoutput attribute to false: <trace enabled="true" requestlimit="10" pageoutput="false" tracemode="sortbytime" localonly="true" /> 12. Save your work and click F5. You will not see any tracing information on the page this time. 13. While in the browser, fill in your name and click the ENTER button. Then type in the following URL and press ENTER: Building and Deploying Web Applications Professional Skills Development
51 Turn on Tracing in ASP.NET 14. You will now see trace information in a separate page, as shown in Figure 47. Figure 47. Viewing the Trace.axd page. 15. Click one of the View Details hyperlinks on the page. You will see detailed trace information displayed. 16. Close the browser and turn off tracing in the Web.config file: <trace enabled="false" requestlimit="10" pageoutput="false" tracemode="sortbytime" localonly="true" /> Building and Deploying Web Applications Professional Skills Development 5-51
52 Lab 5: Tracing and Debugging in ASP.NET Redirect Users on any Errors Objective In this exercise, you ll create a custom error page and redirect users to it on any unhandled errors. Things to Consider How do you create a custom error page? How do you redirect users when errors occur? Step-by-Step Instructions 1. Right click on the TracingLab project and choose Add Add Web Form from the menu. Name the form Custom.aspx. 2. Add a Label control and set its Text property to Custom Error form. 3. Save the form. 4. Open the Web.config file and set the customerrors mode attribute to On and the defaultrecirect attribute to Custom.aspx. <customerrors mode="on" defaultredirect="custom.aspx" /> 5. Open TraceLab.aspx.vb and write the following code in the Page_Load event handler: Dim int As Integer int = 1 int = int / 0 6. Save your work and run the project. The Custom.aspx page will be displayed instead of TraceLab.aspx Building and Deploying Web Applications Professional Skills Development
53 Debug Code in Visual Studio.NET Debug Code in Visual Studio.NET Objective In this exercise, you ll step through code written in Visual Basic.NET, C#, and Transact-SQL. Things to Consider Activate debugging by setting the appropriate properties in your project. Set breakpoints when you want to start debugging. Set up a database connection in the Server Explorer and set a breakpoint in your Transact-SQL stored procedure. Step-by-Step Instructions 1. Right-click on the TracingLab project and choose Properties, then select Configuration Properties. Turn on ASP.NET debugging and SQL Server debugging as shown in Figure 48. Figure 48. You must set your project options to allow SQL Server debugging. Building and Deploying Web Applications Professional Skills Development 5-53
54 Lab 5: Tracing and Debugging in ASP.NET 2. Choose View Server Explorer from the menu to bring up the Server Explorer window. 3. Right-click on Data Connections and choose Add Connection from the menu. 4. Set the connection to point to the Northwind database on SQL Server. 5. Expand the Stored Procedures node under the new connection and double-click the Ten Most Expensive Products stored procedure. 6. Set a breakpoint on the first line, as shown in Figure 49. Figure 49. Setting a breakpoint in the stored procedure. 7. Open DebugTest.aspx.vb and set a breakpoint on the first line of code in the btngo_click event handler, as shown in Figure 50. Figure 50. Setting a breakpoint in Debug.Test.aspx.vb. 8. Set DebugTest.aspx as the start page and press the F5 key. 9. Click the Start Debugging button and step through the code. 10. As you step through your code, choose Debug Windows from various points and examine the debugging windows Building and Deploying Web Applications Professional Skills Development
Lab 8: ASP.NET 2.0 Configuration API and Health Monitoring
Lab 8: ASP.NET 2.0 Configuration API and Health Monitoring Estimated time to complete this lab: 45 minutes ASP.NET 2.0 s configuration API fills a hole in ASP.NET 1.x by providing an easy-to-use and extensible
CRM Setup Factory Installer V 3.0 Developers Guide
CRM Setup Factory Installer V 3.0 Developers Guide Who Should Read This Guide This guide is for ACCPAC CRM solution providers and developers. We assume that you have experience using: Microsoft Visual
How to test and debug an ASP.NET application
Chapter 4 How to test and debug an ASP.NET application 113 4 How to test and debug an ASP.NET application If you ve done much programming, you know that testing and debugging are often the most difficult
Visual COBOL ASP.NET Shopping Cart Demonstration
Visual COBOL ASP.NET Shopping Cart Demonstration Overview: The original application that was used as the model for this demonstration was the ASP.NET Commerce Starter Kit (CSVS) demo from Microsoft. The
Sample Chapters. To learn more about this book visit Microsoft Learning at: http://go.microsoft.com/fwlink/?linkid=206094
Sample Chapters Copyright 2010 by Tony Northrup and Mike Snell. All rights reserved. To learn more about this book visit Microsoft Learning at: http://go.microsoft.com/fwlink/?linkid=206094 Contents Acknowledgments
Ambientes de Desenvolvimento Avançados
Ambientes de Desenvolvimento Avançados http://www.dei.isep.ipp.pt/~jtavares/adav/adav.htm Aula 17 Engenharia Informática 2006/2007 José António Tavares [email protected] 1.NET Web Services: Construção de
Hands-On Lab. Building a Data-Driven Master/Detail Business Form using Visual Studio 2010. Lab version: 1.0.0. Last updated: 12/10/2010.
Hands-On Lab Building a Data-Driven Master/Detail Business Form using Visual Studio 2010 Lab version: 1.0.0 Last updated: 12/10/2010 Page 1 CONTENTS OVERVIEW... 3 EXERCISE 1: CREATING THE APPLICATION S
Custom Error Pages in ASP.NET Prabhu Sunderaraman [email protected] http://www.durasoftcorp.com
Custom Error Pages in ASP.NET Prabhu Sunderaraman [email protected] http://www.durasoftcorp.com Abstract All web applications are prone to throw two kinds of errors, conditional and unconditional.
Hands-On Lab. Web Development in Visual Studio 2010. Lab version: 1.0.0. Last updated: 12/10/2010. Page 1
Hands-On Lab Web Development in Visual Studio 2010 Lab version: 1.0.0 Last updated: 12/10/2010 Page 1 CONTENTS OVERVIEW... 3 EXERCISE 1: USING HTML CODE SNIPPETS IN VISUAL STUDIO 2010... 6 Task 1 Adding
Creating Reports Using Crystal Reports
Creating Reports Using Crystal Reports Creating Reports Using Crystal Reports Objectives Learn how to create reports for Visual Studio.NET applications. Use the Crystal Reports designer to lay out report
ASP.NET and Web Forms
ch14.fm Page 587 Wednesday, May 22, 2002 1:38 PM F O U R T E E N ASP.NET and Web Forms 14 An important part of.net is its use in creating Web applications through a technology known as ASP.NET. Far more
Using the Query Analyzer
Using the Query Analyzer Using the Query Analyzer Objectives Explore the Query Analyzer user interface. Learn how to use the menu items and toolbars to work with SQL Server data and objects. Use object
Walkthrough: Creating and Using an ASP.NET Web Service in Visual Web Developer
http://msdn.microsoft.com/en-us/library/8wbhsy70.aspx Walkthrough: Creating and Using an ASP.NET Web Service in Visual Web Developer In addition to letting you create Web pages, Microsoft Visual Studio
13 Managing Devices. Your computer is an assembly of many components from different manufacturers. LESSON OBJECTIVES
LESSON 13 Managing Devices OBJECTIVES After completing this lesson, you will be able to: 1. Open System Properties. 2. Use Device Manager. 3. Understand hardware profiles. 4. Set performance options. Estimated
To install Multifront you need to have familiarity with Internet Information Services (IIS), Microsoft.NET Framework and SQL Server 2008.
Znode Multifront - Installation Guide Version 6.2 1 System Requirements To install Multifront you need to have familiarity with Internet Information Services (IIS), Microsoft.NET Framework and SQL Server
Bitrix Site Manager ASP.NET. Installation Guide
Bitrix Site Manager ASP.NET Installation Guide Contents Introduction... 4 Chapter 1. Checking for IIS Installation... 5 Chapter 2. Using An Archive File to Install Bitrix Site Manager ASP.NET... 7 Preliminary
How To: Create a Crystal Report from ADO.NET Dataset using Visual Basic.NET
How To: Create a Crystal Report from ADO.NET Dataset using Visual Basic.NET See also: http://support.businessobjects.com/communitycs/technicalpapers/rtm_reporting offadonetdatasets.pdf http://www.businessobjects.com/products/dev_zone/net_walkthroughs.asp
Creating XML Report Web Services
5 Creating XML Report Web Services In the previous chapters, we had a look at how to integrate reports into Windows and Web-based applications, but now we need to learn how to leverage those skills and
Team Foundation Server 2010, Visual Studio Ultimate 2010, Team Build 2010, & Lab Management Beta 2 Installation Guide
Page 1 of 243 Team Foundation Server 2010, Visual Studio Ultimate 2010, Team Build 2010, & Lab Management Beta 2 Installation Guide (This is an alpha version of Benjamin Day Consulting, Inc. s installation
Database Studio is the new tool to administrate SAP MaxDB database instances as of version 7.5.
1 2 3 4 Database Studio is the new tool to administrate SAP MaxDB database instances as of version 7.5. It replaces the previous tools Database Manager GUI and SQL Studio from SAP MaxDB version 7.7 onwards
VB.NET - WEB PROGRAMMING
VB.NET - WEB PROGRAMMING http://www.tutorialspoint.com/vb.net/vb.net_web_programming.htm Copyright tutorialspoint.com A dynamic web application consists of either or both of the following two types of
Richmond SupportDesk Web Reports Module For Richmond SupportDesk v6.72. User Guide
Richmond SupportDesk Web Reports Module For Richmond SupportDesk v6.72 User Guide Contents 1 Introduction... 4 2 Requirements... 5 3 Important Note for Customers Upgrading... 5 4 Installing the Web Reports
Expanded contents. Section 1. Chapter 2. The essence off ASP.NET web programming. An introduction to ASP.NET web programming
TRAINING & REFERENCE murach's web programming with C# 2010 Anne Boehm Joel Murach Va. Mike Murach & Associates, Inc. I J) 1-800-221-5528 (559) 440-9071 Fax: (559) 44(M)963 [email protected] www.murach.com
Visual Basic. murach's TRAINING & REFERENCE
TRAINING & REFERENCE murach's Visual Basic 2008 Anne Boehm lbm Mike Murach & Associates, Inc. H 1-800-221-5528 (559) 440-9071 Fax: (559) 440-0963 [email protected] www.murach.com Contents Introduction
WINDOWS PROCESSES AND SERVICES
OBJECTIVES: Services o task manager o services.msc Process o task manager o process monitor Task Scheduler Event viewer Regedit Services: A Windows service is a computer program that operates in the background.
Moving the TRITON Reporting Databases
Moving the TRITON Reporting Databases Topic 50530 Web, Data, and Email Security Versions 7.7.x, 7.8.x Updated 06-Nov-2013 If you need to move your Microsoft SQL Server database to a new location (directory,
For Introduction to Java Programming, 5E By Y. Daniel Liang
Supplement H: NetBeans Tutorial For Introduction to Java Programming, 5E By Y. Daniel Liang This supplement covers the following topics: Getting Started with NetBeans Creating a Project Creating, Mounting,
Transition your MCPD Web Developer Skills to MCPD ASP.NET Developer 3.5 (VB)
Transition your MCPD Web Developer Skills to MCPD ASP.NET Developer 3.5 (VB) Course Number: 70-567 UPGRADE Certification Exam 70-567 - UPGRADE: Transition your MCPD Web Developer Skills to MCPD ASP.NET
Safewhere*ADFS2Logging
Safewhere*ADFS2Logging User Guidelines Version: 1.0 Date: 18-06-2013 Globeteam A/S AD FS 2.0 HTTP Logging Module & Trace Logging, version 1.0 P a g e 1 Contents Introduction... 4 HTTP Logging Module...
Adding ELMAH to an ASP.NET Web Application
Logging Error Details with ELMAH Introduction The preceding tutorial examined ASP.NET's health monitoring system, which offers an out of the box library for recording a wide array of Web events. Many developers
Unit 3: Optimizing Web Application Performance
Unit 3: Optimizing Web Application Performance Contents Overview 1 The Page Scripting Object Model 2 Tracing and Instrumentation in Web Applications 4 ASP.NET 2.0 Caching Techniques 6 Asynchronous Processing
Module One: Getting Started... 6. Opening Outlook... 6. Setting Up Outlook for the First Time... 7. Understanding the Interface...
2 CONTENTS Module One: Getting Started... 6 Opening Outlook... 6 Setting Up Outlook for the First Time... 7 Understanding the Interface...12 Using Backstage View...14 Viewing Your Inbox...15 Closing Outlook...17
Hands-On Lab. Client Workflow. Lab version: 1.0.0 Last updated: 2/23/2011
Hands-On Lab Client Workflow Lab version: 1.0.0 Last updated: 2/23/2011 CONTENTS OVERVIEW... 3 EXERCISE 1: DEFINING A PROCESS IN VISIO 2010... 4 Task 1 Define the Timesheet Approval process... 4 Task 2
MAS 500 Intelligence Tips and Tricks Booklet Vol. 1
MAS 500 Intelligence Tips and Tricks Booklet Vol. 1 1 Contents Accessing the Sage MAS Intelligence Reports... 3 Copying, Pasting and Renaming Reports... 4 To create a new report from an existing report...
HOUR 3 Creating Our First ASP.NET Web Page
HOUR 3 Creating Our First ASP.NET Web Page In the last two hours, we ve spent quite a bit of time talking in very highlevel terms about ASP.NET Web pages and the ASP.NET programming model. We ve looked
Team Foundation Server 2012 Installation Guide
Team Foundation Server 2012 Installation Guide Page 1 of 143 Team Foundation Server 2012 Installation Guide Benjamin Day [email protected] v1.0.0 November 15, 2012 Team Foundation Server 2012 Installation
BID2WIN Workshop. Advanced Report Writing
BID2WIN Workshop Advanced Report Writing Please Note: Please feel free to take this workbook home with you! Electronic copies of all lab documentation are available for download at http://www.bid2win.com/userconf/2011/labs/
Visual Studio.NET Database Projects
Visual Studio.NET Database Projects CHAPTER 8 IN THIS CHAPTER Creating a Database Project 294 Database References 296 Scripts 297 Queries 312 293 294 Visual Studio.NET Database Projects The database project
Building a Scale-Out SQL Server 2008 Reporting Services Farm
Building a Scale-Out SQL Server 2008 Reporting Services Farm This white paper discusses the steps to configure a scale-out SQL Server 2008 R2 Reporting Services farm environment running on Windows Server
Creating Database Tables in Microsoft SQL Server
Creating Database Tables in Microsoft SQL Server Microsoft SQL Server is a relational database server that stores and retrieves data for multi-user network-based applications. SQL Server databases are
Getting Started with the Aloha Community Template for Salesforce Identity
Getting Started with the Aloha Community Template for Salesforce Identity Salesforce, Winter 16 @salesforcedocs Last updated: December 10, 2015 Copyright 2000 2015 salesforce.com, inc. All rights reserved.
Team Foundation Server 2013 Installation Guide
Team Foundation Server 2013 Installation Guide Page 1 of 164 Team Foundation Server 2013 Installation Guide Benjamin Day [email protected] v1.1.0 May 28, 2014 Team Foundation Server 2013 Installation Guide
NovaBACKUP. Storage Server. NovaStor / May 2011
NovaBACKUP Storage Server NovaStor / May 2011 2011 NovaStor, all rights reserved. All trademarks are the property of their respective owners. Features and specifications are subject to change without notice.
Creating and Consuming XML Web Services
Creating and Consuming XML Web Services Creating and Consuming XML Web Services Objectives Understand the motivation and standards for XML Web Services. Create and test an XML Web Service in Visual Studio.NET.
Using Application Insights to Monitor your Applications
Using Application Insights to Monitor your Applications Overview In this lab, you will learn how to add Application Insights to a web application in order to better detect issues, solve problems, and continuously
Installation Documentation Smartsite ixperion 1.3
Installation Documentation Smartsite ixperion 1.3 Upgrade from ixperion 1.0/1.1 or install from scratch to get started with Smartsite ixperion 1.3. Upgrade from Smartsite ixperion 1.0/1.1: Described in
Nikhil s Web Development Helper
http://projects.nikhilk.net Nikhil s Web Development Helper Version 0.8.5.0 July 24, 2007 Copyright 2006, Nikhil Kothari. All Rights Reserved. 2 Table of Contents Introduction... 3 Activating and Using
Crystal Reports. For Visual Studio.NET. Reporting Off ADO.NET Datasets
Crystal Reports For Visual Studio.NET Reporting Off ADO.NET Datasets 2001 Crystal Decisions, Inc. Crystal Decisions, Crystal Reports, and the Crystal Decisions logo are registered trademarks or trademarks
Learn how to create web enabled (browser) forms in InfoPath 2013 and publish them in SharePoint 2013. InfoPath 2013 Web Enabled (Browser) forms
Learn how to create web enabled (browser) forms in InfoPath 2013 and publish them in SharePoint 2013. InfoPath 2013 Web Enabled (Browser) forms InfoPath 2013 Web Enabled (Browser) forms Creating Web Enabled
Getting Started with Telerik Data Access. Contents
Contents Overview... 3 Product Installation... 3 Building a Domain Model... 5 Database-First (Reverse) Mapping... 5 Creating the Project... 6 Creating Entities From the Database Schema... 7 Model-First
How To Use Query Console
Query Console User Guide 1 MarkLogic 8 February, 2015 Last Revised: 8.0-1, February, 2015 Copyright 2015 MarkLogic Corporation. All rights reserved. Table of Contents Table of Contents Query Console User
http://msdn.microsoft.com/en-us/library/4w3ex9c2.aspx
ASP.NET Overview.NET Framework 4 ASP.NET is a unified Web development model that includes the services necessary for you to build enterprise-class Web applications with a minimum of coding. ASP.NET is
JetBrains ReSharper 2.0 Overview Introduction ReSharper is undoubtedly the most intelligent add-in to Visual Studio.NET 2003 and 2005. It greatly increases the productivity of C# and ASP.NET developers,
IBM Operational Decision Manager Version 8 Release 5. Getting Started with Business Rules
IBM Operational Decision Manager Version 8 Release 5 Getting Started with Business Rules Note Before using this information and the product it supports, read the information in Notices on page 43. This
Moving the Web Security Log Database
Moving the Web Security Log Database Topic 50530 Web Security Solutions Version 7.7.x, 7.8.x Updated 22-Oct-2013 Version 7.8 introduces support for the Web Security Log Database on Microsoft SQL Server
Administrator's Guide
Active Directory Module AD Module Administrator's Guide Rev. 090923 Active Directory Module Administrator's Guide Installation, configuration and usage of the AD module Table of Contents Chapter 1 Introduction...
BUILDER 3.0 Installation Guide with Microsoft SQL Server 2005 Express Edition January 2008
BUILDER 3.0 Installation Guide with Microsoft SQL Server 2005 Express Edition January 2008 BUILDER 3.0 1 Table of Contents Chapter 1: Installation Overview... 3 Introduction... 3 Minimum Requirements...
ASP.NET Dynamic Data
30 ASP.NET Dynamic Data WHAT S IN THIS CHAPTER? Building an ASP.NET Dynamic Data application Using dynamic data routes Handling your application s display ASP.NET offers a feature that enables you to dynamically
System Area Management Software Tool Tip: Integrating into NetIQ AppManager
System Area Management Software Tool Tip: Integrating into NetIQ AppManager Overview: This document provides an overview of how to integrate System Area Management's event logs with NetIQ's AppManager.
FocusOPEN Deployment & Configuration Guide
FocusOPEN Deployment & Configuration Guide Revision: 7 Date: 13 September 2010 Contents A. Overview...2 B. Target Readership...2 C. Prerequisites...2 D. Test Installation Instructions...2 1. Download the
Division of Student Affairs Email Quota Practices / Guidelines
Division of Student Affairs Email Quota Practices / Guidelines Table of Contents Quota Rules:... 1 Mailbox Organization:... 2 Mailbox Folders... 2 Mailbox Rules... 2 Mailbox Size Monitoring:... 3 Using
Understanding Task Scheduler FIGURE 33.14. Task Scheduler. The error reporting screen.
1383 FIGURE.14 The error reporting screen. curring tasks into a central location, administrators gain insight into system functionality and control over their Windows Server 2008 R2 infrastructure through
Creating Reports with Microsoft Dynamics AX SQL Reporting Services
Creating Reports with Microsoft Dynamics AX SQL Reporting Services. Table of Contents Lab 1: Building a Report... 1 Lab Objective... 1 Pre-Lab Setup... 1 Exercise 1: Familiarize Yourself with the Setup...
Jim2 ebusiness Framework Installation Notes
Jim2 ebusiness Framework Installation Notes Summary These notes provide details on installing the Happen Business Jim2 ebusiness Framework. This includes ebusiness Service and emeter Reads. Jim2 ebusiness
Virtual Office Remote Installation Guide
Virtual Office Remote Installation Guide Table of Contents VIRTUAL OFFICE REMOTE INSTALLATION GUIDE... 3 UNIVERSAL PRINTER CONFIGURATION INSTRUCTIONS... 12 CHANGING DEFAULT PRINTERS ON LOCAL SYSTEM...
SQL Server Database Web Applications
SQL Server Database Web Applications Microsoft Visual Studio (as well as Microsoft Visual Web Developer) uses a variety of built-in tools for creating a database-driven web application. In addition to
Copyright Notice. 2013 SmartBear Software. All rights reserved.
USER MANUAL Copyright Notice Automated Build Studio, as described in this on-line help system, is licensed under the software license agreement distributed with the product. The software may be used or
User Guide. Version 3.2. Copyright 2002-2009 Snow Software AB. All rights reserved.
Version 3.2 User Guide Copyright 2002-2009 Snow Software AB. All rights reserved. This manual and computer program is protected by copyright law and international treaties. Unauthorized reproduction or
CRYSTAL REPORTS IN VISUAL STUDIO.NET 2003
CRYSTAL REPORTS IN VISUAL STUDIO.NET 2003 By Srunokshi Kaniyur Prema Neelakantan This tutorial gives an introduction to creating Crystal reports in Visual Studio.Net 2003 and few of the features available
28 What s New in IGSS V9. Speaker Notes INSIGHT AND OVERVIEW
28 What s New in IGSS V9 Speaker Notes INSIGHT AND OVERVIEW Contents of this lesson Topics: New IGSS Control Center Consolidated report system Redesigned Maintenance module Enhancement highlights Online
Kentico CMS 7.0 Windows Azure Deployment Guide
Kentico CMS 7.0 Windows Azure Deployment Guide 2 Kentico CMS 7.0 Windows Azure Deployment Guide Table of Contents Introduction 4... 4 About this guide Installation and deployment 6... 6 Overview... 6 Architecture...
LANDESK Service Desk. Desktop Manager
LANDESK Service Desk Desktop Manager LANDESK SERVICE DESK DESKTOP MANAGER GUIDE This document contains information, which is the confidential information and/or proprietary property of LANDESK Software,
Last edited on 7/30/07. Copyright Syncfusion., Inc 2001 2007.
Enabling ClickOnce deployment for applications that use the Syncfusion libraries... 2 Requirements... 2 Introduction... 2 Configuration... 2 Verify Dependencies... 4 Publish... 6 Test deployment... 8 Trust
DEPLOYING A VISUAL BASIC.NET APPLICATION
C6109_AppendixD_CTP.qxd 18/7/06 02:34 PM Page 1 A P P E N D I X D D DEPLOYING A VISUAL BASIC.NET APPLICATION After completing this appendix, you will be able to: Understand how Visual Studio performs deployment
Hypercosm. Studio. www.hypercosm.com
Hypercosm Studio www.hypercosm.com Hypercosm Studio Guide 3 Revision: November 2005 Copyright 2005 Hypercosm LLC All rights reserved. Hypercosm, OMAR, Hypercosm 3D Player, and Hypercosm Studio are trademarks
EXAM - 70-518. PRO:Design & Develop Windows Apps Using MS.NET Frmwk 4. Buy Full Product. http://www.examskey.com/70-518.html
Microsoft EXAM - 70-518 PRO:Design & Develop Windows Apps Using MS.NET Frmwk 4 Buy Full Product http://www.examskey.com/70-518.html Examskey Microsoft 70-518 exam demo product is here for you to test the
Learn how to upgrade existing Sitefinity projects, created with a previous version, and use them with the latest Sitefinity version.
INSTALLATION AND ADMINISTRATION GUIDE This guide is intended for web administrators and experienced users. Use it to perform the installation procedure of Sitefinity and the initial installation of your
Services Monitor Manager
Services Monitor Manager Copyright Notice Information in this document is subject to change without notice and does not represent a commitment on the part of ZyLAB Technologies BV. The software described
Server Manager Performance Monitor. Server Manager Diagnostics Page. . Information. . Audit Success. . Audit Failure
Server Manager Diagnostics Page 653. Information. Audit Success. Audit Failure The view shows the total number of events in the last hour, 24 hours, 7 days, and the total. Each of these nodes can be expanded
SQL Server 2005: Report Builder
SQL Server 2005: Report Builder Table of Contents SQL Server 2005: Report Builder...3 Lab Setup...4 Exercise 1 Report Model Projects...5 Exercise 2 Create a Report using Report Builder...9 SQL Server 2005:
MGC WebCommander Web Server Manager
MGC WebCommander Web Server Manager Installation and Configuration Guide Version 8.0 Copyright 2006 Polycom, Inc. All Rights Reserved Catalog No. DOC2138B Version 8.0 Proprietary and Confidential The information
Security Development Tool for Microsoft Dynamics AX 2012 WHITEPAPER
Security Development Tool for Microsoft Dynamics AX 2012 WHITEPAPER Junction Solutions documentation 2012 All material contained in this documentation is proprietary and confidential to Junction Solutions,
Developing and Implementing Web Applications with Microsoft Visual C#.NET and Microsoft Visual Studio.NET
Unit 39: Developing and Implementing Web Applications with Microsoft Visual C#.NET and Microsoft Visual Studio.NET Learning Outcomes A candidate following a programme of learning leading to this unit will
Microsoft Dynamics GP. Electronic Signatures
Microsoft Dynamics GP Electronic Signatures Copyright Copyright 2011 Microsoft. All rights reserved. Limitation of liability This document is provided as-is. Information and views expressed in this document,
How To Test Your Web Site On Wapt On A Pc Or Mac Or Mac (Or Mac) On A Mac Or Ipad Or Ipa (Or Ipa) On Pc Or Ipam (Or Pc Or Pc) On An Ip
Load testing with WAPT: Quick Start Guide This document describes step by step how to create a simple typical test for a web application, execute it and interpret the results. A brief insight is provided
Event Manager. LANDesk Service Desk
Event Manager LANDesk Service Desk LANDESK SERVICE DESK EVENT MANAGER GUIDE This document contains information that is the proprietary and confidential property of LANDesk Software, Inc. and/or its affiliated
ResPAK Internet Module
ResPAK Internet Module This document provides an overview of the ResPAK Internet Module which consists of the RNI Web Services application and the optional ASP.NET Reservations web site. The RNI Application
ASP.NET: THE NEW PARADIGM FOR WEB APPLICATION DEVELOPMENT
ASP.NET: THE NEW PARADIGM FOR WEB APPLICATION DEVELOPMENT Dr. Mike Morrison, University of Wisconsin-Eau Claire, [email protected] Dr. Joline Morrison, University of Wisconsin-Eau Claire, [email protected]
Microsoft Visual Studio Integration Guide
Microsoft Visual Studio Integration Guide MKS provides a number of integrations for Integrated Development Environments (IDEs). IDE integrations allow you to access MKS Integrity s workflow and configuration
Automating Administration with SQL Agent
Automating Administration with SQL Agent Automating Administration with SQL Agent Objectives Configure SQL Server Agent. Set SQL Server Agent properties. Configure a fail-safe operator. Create operators.
Email Retention Information Messages automatically age out of your mailbox
Email Retention Information Messages automatically age out of your mailbox Everything in your mailbox is subject to deletion after a certain time period (described below) with the exception of your Contacts.
Crystal Reports. For Visual Studio.NET. Designing and Viewing a Report in a Windows Application
Crystal Reports For Visual Studio.NET Designing and Viewing a Report in a Windows Application 2001 Crystal Decisions, Inc. Crystal Decisions, Crystal Reports, and the Crystal Decisions logo are registered
Introduction to ASP.NET Web Development Instructor: Frank Stepanski
Introduction to ASP.NET Web Development Instructor: Frank Stepanski Overview From this class, you will learn how to develop web applications using the Microsoft web technology ASP.NET using the free web
Chapter 4 Accessing Data
Chapter 4: Accessing Data 73 Chapter 4 Accessing Data The entire purpose of reporting is to make sense of data. Therefore, it is important to know how to access data locked away in the database. In this
System Administration Training Guide. S100 Installation and Site Management
System Administration Training Guide S100 Installation and Site Management Table of contents System Requirements for Acumatica ERP 4.2... 5 Learning Objects:... 5 Web Browser... 5 Server Software... 5
Desktop, Web and Mobile Testing Tutorials
Desktop, Web and Mobile Testing Tutorials * Windows and the Windows logo are trademarks of the Microsoft group of companies. 2 About the Tutorial With TestComplete, you can test applications of three major
QUANTIFY INSTALLATION GUIDE
QUANTIFY INSTALLATION GUIDE Thank you for putting your trust in Avontus! This guide reviews the process of installing Quantify software. For Quantify system requirement information, please refer to the
