4

I've set up debugging in Visual Studio 2008 to IIS instead of the built in server so I can run url rewriting while developing (using IIRF).

It took a while to get to work (changing permissions, reinstalling the .NET framework) but it was working.

I turned off my machine, and now that it's back on the debugger won't start. I'm using Parallels with WinXP on an iMac.

"Unable to start debugging on the web server. Could not start ASP.NET debugging. More information may be available by starting the project without debugging"

I read a whole bunch of posts on SO as well as googled the subject but none seem to provide a working answer.

Has anyone encountered this and knows how to get it to work?

Thanks.

6
  • Try to be more specific, what is the exact error message you receive?
    – John Lemp
    Dec 18, 2009 at 15:51
  • Added error details to main question. It's quite generic...
    – Ariel
    Dec 18, 2009 at 16:10
  • Did you check if the restart reverted the configurations that you made ?, just to make sure. Thanks Dec 23, 2009 at 6:22
  • I went through it all and it looks good. Can you think of anything specific I should be gunning for?
    – Ariel
    Dec 23, 2009 at 16:34
  • What's your IIS version? Jan 11, 2010 at 17:33

6 Answers 6

2

Make sure you've enabled Windows authentication for your site in IIS.

In the IIS MMC snap-in, right-click on your web site, choose "Properties", select the "Document Security" tab, click on "Edit..." in the "Anonymous access and authentication control" box, and make sure that "Integrated Windows authentication" is selected.

1
  • Yep, it's enabled. The configuration was working but stopped after a standard restart.
    – Ariel
    Dec 18, 2009 at 16:35
1

Try manual attachment of the VS debugger to the w3svc.exe process.

1
  • Indeed, but it's better than no debug at all. Jan 12, 2010 at 0:51
1

So after a whole lot of experimenting I managed to find the issue, well kind of.

The main issue was that Keep-Alives were not enabled, which in turn didn't allow the authentication to work properly. With that enabled the debugger actually works. But. It will only work if I start debugging with a .aspx page selected. If I start debugging with a .cs page selected it wont.

Strange, but at least it works!

0

Make sure your IIS website is not bound to any IP address. VS 2008 has a problem attaching to bound IPs.

0
0

I had this problem, and it was because my Application pool in IIS 7 was "Classic" instead of "integrated", using the .net 4 framework.

0
0

Some times if debug element of compilation element on the web.config is set to false, that is the error you get.

Also if you are not a member of the Administrators group you tend to get his error.

Have you tried to debug with the built-in web server>

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.