What are the steps needed to profile an ISAPI extension dll with TrueTime Visual C edition?
STEPS FOR PROFILING ISAPI EXTENSION DLL WITH TRUETIME
Windows NT Workstation/Server, Version: 4, Service Pack: 3
Administrative login privileges to machine.
Version: 4.0 or Version 4.01 Service Pack 1
Windows NT 4.0 Option Pack:
*Microsoft Management Console version: 1.0.
*Microsoft Index Server
*Microsoft Internet Information Server
*Microsoft Script Debugger
*Microsoft Site Server Express 2.0
*Microsoft Transaction Server
Visual C .
*Version: 5, Service Pack: 3 or Version 6
Version 1.11 or greater
PERFORM THE FOLLOWINGS ACTIONS IN THIS SEQUENCE:
Make the following settings from the Internet Explorer Properties Dialog (For Win2K, please choose Tools => Internet options...):
1. Click the 'Advanced'Tab. Click the 'Restore Defaults' button and make sure that the 'Browse in a new Process' check box is checked. Click OK to dismiss this dialog box.
Make the following settings from the Microsoft Management Console.
(For NT4.0, Start=>Programs=>Windows NT Option pack 4.0=>Internet Information Server=>Internet Service Manager.)
1. Add your virtual directory and make sure the Read and Execute(including script) check boxes are checked. (Example virtual directory path: D:\Myisapi\debug). After creating the virtual directory you can verify the settings from the virtual directories' dialog box. (right click virtual directory => Properties)
2. Exit the MMC.
Make the following settings from the Control Panel.
1. Choose the 'Services' icon and perform the following actions:
2. Choose the 'FTP publishing Service'. Turn on the 'Allow service to interact with desktop'. Also choose to Disable the service. Click OK.
3. Choose 'IIS Admin Service'. Turn on the 'Allow service to interact with desktop'. Also choose to Disable the service. Click OK.
4. Choose the 'World Wide Web publishing Service'. Turn on the 'Allow service to interact with desktop'. Also choose to Disable the service. Click OK. Click OK again to dismiss the 'Services Dialog'.
5. While still in the Control Panel choose the 'System' icon and then click the 'Environment tab'. Add the following system environment variable: TRUETIME_TTSFILENAME. Set its value to a path name such as: D:\foobar.tts. Be sure to Click 'SET', 'APPLY', and then 'OK'.
To get the environment variable to get placed into the system section you may need to highlight an existing system variable. After selecting this variable the edit boxes below will contain the variables' name and value. You can then start typing the new variables' value and name. It won't overwrite your existing variable it will create a new one. For safety you may back up the highlighted system variable to a text file in case you accidentally overwrite it. Though this should not happen. (Reminder: Click 'SET', 'APPLY', and then 'OK')
6. Important: Make sure that the path to mspdb*.dll is added to the SYSTEM path environment variable. This path may be contained in the User but it must be in at least the SYSTEM section of the environment variables.
Name of variable: Path
Value of variable: %SystemRoot%\system32;%SystemRoot%;;C:\MSSQL\BINN;C:\Program Files\Mts;C:\PROGRAM FILES\DEVSTUDIO\SHAREDIDE\BIN
Reboot your machine.
From Visual C choose the TrueTime settings dialog and be sure the 'Use TrueTime directories' check box is unchecked. Instrument your projects with TrueTime by choosing 'Rebuild with TrueTime' from the TrueTime menu. (Note: Be sure to have VC create a .pdb file and the configuration set to Debug build. (See "pdb" in VC help for directions on how to have this file created during builds.)
Perform the following steps from the Control Panel. Choose the 'Services' icon.
(Perform steps in this sequence)
1. Choose the 'World Wide Web publishing Service'. Set the startup options for the service to Manual. Click OK.
Click OK again to dismiss the 'Services Dialog'.
2. Choose the 'FTP publishing Service'. Set the startup options for the service to Manual. Click OK.
3. Choose the 'IIS Admin Service'. Set the startup options for the service to Manual. Click OK.
4. Start the 'World Wide Web publishing Service'.
5. Start the 'FTP publishing Service'.
6. The 'IIS Admin Service' will already be automatically started.
Open your web browser and cause your Isapi extension Dll to be invoked by typing something similar to:
Close browser. From the Control Panel => Services dialog:
(Perform steps in this sequence)
1. Stop the 'World Wide Web publishing Service'.
2. Stop the 'FTP publishing Service'.
3. Stop the 'IIS Admin Service' .
TrueTime will now write session data to the file specified earlier (d:\foobar.tts) from the system environment variable. You can use the Task Manager => Processes tab to make sure the nmstart.exe process is no longer running. It may take TrueTime a few seconds to complete writing to this file.
You can now view the TrueTime session file from TrueTime.
Finally, make sure to add an Internet guess account for your computer.