Microsoft KB Archive/837316

From BetaArchive Wiki

Article ID: 837316

Article Last Modified on 5/31/2007



APPLIES TO

  • Microsoft Visual Studio 6.0 Professional Edition
  • Microsoft Visual Studio 6.0 Enterprise Edition
  • Microsoft Visual Studio .NET 2002 Professional Edition
  • Microsoft Visual Studio .NET 2002 Enterprise Architect
  • Microsoft Visual Studio .NET 2002 Enterprise Developer
  • Microsoft Visual Studio .NET 2002 Academic Edition
  • Microsoft Visual Studio .NET 2003 Professional Edition
  • Microsoft Visual Studio .NET 2003 Enterprise Architect
  • Microsoft Visual Studio .NET 2003 Enterprise Developer
  • Microsoft Visual Studio .NET 2003 Academic Edition




SYMPTOMS

When you debug an ASP Web page in Microsoft Visual Interdev 6.0, and you click Processes on the Debug menu, you may not find any script running under the following processes in the Processes dialog box:

  • Iexplorer.exe
  • Dllhost.exe
  • Inetinfo.exe


CAUSE

When you install Microsoft Visual InterDev 6.0 after you install Microsoft Visual Studio .NET, an older version of the Pdm.dll file is copied in the system32 folder. Therefore, when you browse to the ASP Web page in Microsoft Internet Explorer, the processes that are mentioned in the "Symptoms" section load an older version of the Pdm.dll file.

RESOLUTION

Copy the latest version of the Pdm.dll file from the C:\Program Files\Common Files\Microsoft Shared\VS7Debug folder to the %WINDIR%\system32 folder on your computer.

STATUS

This behavior is by design.

MORE INFORMATION

Steps to reproduce the behavior

  1. Click Start, and then click Run.
  2. In the the Run dialog box, type notepad in the Open box.
  3. Paste the following code in Notepad:

    <html>
    <head>
    <title>VBScript debugging</title>
    </head>
    <script runat=server language=vbscript>
    Function DoSomething
        dim x,y,f
        x = 3              
        y = x * 2          
        f = Factorial(y)   
        response.write "The value of f is " + Cstr(f)
    End Function 
    
    Function Factorial(n)
        if n = 1 then
            Factorial = 1 'when factorial starts to be returned.
        else
            Factorial = n * Factorial(n - 1) ' Still call next factorial
        end if
    End Function 
    </script>
    <body>
    This page contains VBScript.
    <br> 
    <% DoSomething() %>
    </body>
    </html>
  4. On the File menu, click Save. You receive the Save As dialog box.
  5. Save the file as test.asp, in the c:\inetpub\wwwroot folder of your computer.
  6. In Microsoft Internet Explorer, type http://localhost/test.asp in the Address bar.
  7. Click Go. You receive the following text in the browser window:

    This page contains VBScript. The value of f is 720

  8. Click Start, and then point to All Programs.
  9. Point to Microsoft Visual Studio 6.0, and then click Microsoft Visual InterDev 6.0.
  10. In the New Project dialog box, click Cancel.
  11. On the Debug menu, click Processes. You see the behavior that is mentioned in the "Symptoms" section.

    Note In the Processes dialog box, you cannot find the word "Script" under the Languages column.


REFERENCES

For more information, visit the following Microsoft Developer Network (MSDN) Web sites:

Error: Unable to start debugging on the Web server
http://msdn2.microsoft.com/en-us/library/dwesw3ee(vs.71).aspx


How to enable remote debugging on Windows XP Service Pack 2
http://msdn2.microsoft.com/en-us/library/ms997643.aspx


For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

258929 HOWTO: Debug ASP applications manually against Windows 2000 Web Server


Keywords: kbwebbrowser kbscript kbdll kbweb kbinetdev kbdebug kbbrowsing kbprb KB837316