How to use SmartCheck on a VB DLL called from an Active Server Page

0 Likes

Problem:

How to use SmartCheck to debug a VB DLL called from ASP

Resolution:

You can setup IIS to use SmartCheck as its debugger the next time it is restarted. SmartCheck will load first and then load inetinfo.exe, and be readyfor debugging, but will not commence debugging until you issue an execution command.

To setup InetInfo.exe to launch SmartCheck as its debugger.


  1. Re-compile your DLL with the 'No Optimization' and 'Create Symbolic Debug Info' options checked.
  2. Start the Registry Editor (regedit).
  3. In the Registry Editor, open the HKEY_LOCAL_MACHINE folder.
  4. Navigate to HKEY_LOCAL_MACHINE\Software\Microsoft\WindowsNT\currentversion\image file execution options.
  5. Under the Image File Execution Options folder, locate inetinfo.exe. If you cannot find inetinfo.exelisted:
    1. Right-click the Image File Execution Options folder and choose New Key from the shortcut menu.
    2. Right-click the new key and choose Rename from the shortcut menu.
    3. Edit the key name to read inetinfo.exe.
  6. Right-click the inetinfo.exe folder and choose New String Value from the shortcut menu.
  7. Right-click the new string value and choose Rename from the shortcut menu.
  8. Change the name to debugger.
  9. Right-click the new string value and choose Modify from the shortcut menu.
  10. In the Value data box, for the default installation of DPS, type: C:\Program Files\Compuware\DevPartner Studio\SmartChk.exe /b[SessionName]
  11. Click OK.
  12. From the Registry menu, choose Exit.
  13. Open your 'Internet Information Services' application and open the Properties Window for the Default Web Site.
  14. In the Properties Window click on the Home Directory tab.
  15. In theHome Directory' section, change the sercurity level to Low.
  16. Click on the button Configuration, and on the App Debugging tab make sure that you you have Enable Server Side Debugging turned on.
  17. To instruct SmartCheck to check your dll, you need to open SmartCheck, and load inetinfo.exe into it. Open the Tools > Settings dialog box and then on the Files To Check tab. Browse to add your dll to the list of files.
  18. Now, close SmartCheck and restart IIS. SmartCheck will load in memory and will then start inetinfo.exe automatically.
  19. Load the Internet Explorer and navigate to the page that exercises your DLL. You will now be collecting session information with SmartCheck. To verify this, look at the Task Manager and check for SmartChk.exe. It should be listed there along with inetinfoe.exe. You can also check to make sure that the session file has been created. You will not be able to access this file until you stop IIS.
Old KB# 11090
Comment List
Anonymous
Related Discussions
Recommended