question

JayC-3838 avatar image
0 Votes"
JayC-3838 asked AnnaXiu-MSFT edited

Cannot Step into Server Side Code in Web Service in IIS

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

not-supported
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

AnnaXiu-MSFT avatar image
0 Votes"
AnnaXiu-MSFT answered

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.



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.