Debugging ASP.NET Using IIS

I set up debugging in Visual Studio 2008 for IIS instead of the embedded server, so I can run URL rewriting during development (using IIRF).

It took some time to get to work (changing permissions, reinstalling the .NET framework), but it worked.

I turned off my machine, and now, when it returns to the debugger, it will not start. I am using Parallels with WinXP on iMac.

"Cannot start debugging on the Internet server. Failed to start ASP.NET debugging. Additional information may be available when the project starts without debugging."

I read a whole bunch of posts on SO, and also searched for a topic, but none of them give a working answer.

Has anyone come across this and know how to make it work?

Thanks.

+4
source share
6 answers

So, after a lot of experiments, I managed to find a problem, well, sort of.

The main problem was that Keep-Alives were not included, which in turn prevented authentication from working properly. Thanks to this, the debugger really works. But. It will only work if I start debugging with the selected .aspx page. If I start debugging with the selected .cs page, it will not.

Strange, but at least it works!

+1
source

Make sure you enable Windows authentication for your site in IIS.

In the MMC IIS snap-in, right-click on your website, select "Properties", select the "Document Security" tab, click "Change ..." in the "Anonymous Access and Authentication" field, and make sure that "Integrated Windows authentication. "

+2
source

Try manually connecting the VS debugger to the w3svc.exe process.

+1
source

Make sure your IIS website is not tied to any IP address. In VS 2008, the problem is related to the associated IP addresses.

0
source

I had this problem and this was because my application pool in IIS 7 was "classic" and not "integrated" using the .net 4 infrastructure.

0
source

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

Also, if you are not a member of the Administrators group, you usually get his error.

You tried to debug with the embedded web server>

0
source

All Articles