Cannot Step into Server Side Code in Web Service in IIS

JayC 1 Reputation point
2021-10-22T16:45:03.77+00:00

I am trying to debug an old ASP.NET program that was handed to me. But I find that I cannot step into server side code (web services) running in IIS.

I am using Visual Studio 2008 in Windows 10 with .NET 2.x. Both Visual Studio and IIS are running from the same desktop computer (my PC).

Previously in an older version of the ASP.NET program that ran in Windows-XP using Visual Studio 2003, I could step into the server side code by attaching to the process "aspnet_wp.exe". In this newer IIS, aspnet_wp.exe is no more. I am not sure what has replaced it. I assume it is "w3wp.exe". Unfortunately, I still cannot step into server side code when I attach to w3wp.exe. I have also tried attached to "aspnet_state.exe"; but no difference. Which process that I am supposed to attach to?

One strange thing is that Visual Studio used to prompt me to attach to a process (forgot which process) when I was stepping through the program last week. I don't remember if I was able to step into server side code or not at that time. But now Visual Studio has stopped prompting me. How do I ask Visual Studio to resume prompting me to attach to a process?

Yes, the "debug" option in Web.config in both the client side and server side programs are "true", like this:
<compilation defaultLanguage="c#" debug="true" />

Please let me know if there is anything else that I can try. Thanks.

JayC

Community Center Not monitored
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2021-10-25T06:46:21.437+00:00

    Hi JayC,

    Welcome to Microsoft Q&A!

    The Visual Studio 2008 has ended for support. It is recommended to install and use a newer version of Visual Studio.

    Thanks for your understanding.

    Sincerely,
    Anna
    *
    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.