Debugging IIS 7 extensions in Windows 7

I came across some curious behavior when trying to debug an IIS extension that I’m working on. When I went to select “InetMgr.exe” as the startup program, it wasn’t there. I checked the folder using Windows Explorer and, sure enough, there it was. Even entering the path manually resulted in “The external program cannot be found”.

So, what was the problem? Well, as far as I can tell, it appears that because InetMgr.exe is an auto-elevated process it is only accessible to other auto-elevated processes. This is quite possibly a post RC solution to the flaw in UAC found during the betas, though I’m just speculating.

Luckily, with a bit of experimenting, I was able to find a solution. By enabling remote debugging (“Use remote machine”) and setting the value to localhost, I was able to circumvent whatever was blocking the call. See the below screenshot for clarification.


Debug settings for InetMgr.exe

I am now happily debugging my extension without hassles.

Advertisement
This entry was posted in Uncategorized. Bookmark the permalink.

2 Responses to Debugging IIS 7 extensions in Windows 7

  1. Spencer says:

    Could it possibly be b/c you weren’t running VS as an administrator?

  2. Richard says:

    Unfortunately, no. You have to run as an administrator, even with the workaround.

Leave a Reply

Fill in your details below or click an icon to log in:

Gravatar
WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s