BrianPeek.com

A Compendium of Random Uselessness
in Search

Vista RC1 and Visual Studio Debugging

I have installed a Vista RC1 and Office 2007 Beta 2 on a new partition and am attempting to use it as my primary OS.  So far, so good.  It has come a long way since the first builds I started testing.  There's certainly more work to be done, but it's looking more and more like a final product.

On a tangent, symlinks are fantastic.  I know, welcome to UNIX circa 1985.  I am able to symlink my Firefox profile directory, Outlook config and .pst files, and a variety of other things from my XP parition to the Vista parition to share the data easily between the two operating systems.

But, I post to note a few quirks with Visual Studio 2005 and debugging web applications.  By default, I was getting lots of errors about authentication, not being able to debug, and a host of other things.  The fix was quite simple.

1) In the "Internet Options" control panel, go to the Security tab.  Add "http://localhost" to your list of "Trusted Sites"
2) Again, for "Trusted Sites", clilck the "Custom Level..." button.  Change the value of User Authentication to "Automatic login with current username and password".
3) In the new IIS manager, ensure that the web application directory is both:
    a) in the "Classic .NET AppPool".
    b) has "Windows Authentication" enabled in the Authentication section.

Voila.  Debugging without issue on the server.

YMMV, of course.  Note that I'm running with <gasp!> UAC turned off.
Published Sep 09 2006, 01:29 AM by Brian Peek
Filed under: ,

Comments

 

Dan Potter said:

Vista has symlinks?! Sold!!! ;)
September 9, 2006 12:48 PM
 

ian darke said:

Thanks!!!.. I've been trying to get debugging working for hours to no avail. Switching to the Classic .NET AppPool was the last piece of the puzzle for me.
October 13, 2006 8:31 PM
 

Derrick Brundage said:

Thank you!  I've wasted several hours this week trying to get my VS 2005 web application working under Vista RC 2.  

Your instructions finally enabled me to get the application running properly.  Now I can enjoy my weekend and feel like I accomplished something.

October 13, 2006 10:59 PM
 

Tim Marshall said:

You rule!!!  That last step about changing the apppool just ended 4 hours of misery working with the debugger!!!

Thank You!
November 16, 2006 5:01 PM
 

Valentin Billotte said:

I love you :)
never thought about changing the apppool

vote Brian for President !
December 7, 2006 5:38 AM
 

Mflagstad said:

ok - What version of IIS are you using - I'm having a heck of a time here. We have VS 2003, VS 2005, IIS 5.1 - I can run my 03 apps just fine, inlcuding debugging. I converted an 03 application to 05 and I am getting all sorts of errors. Any suggestions?
January 10, 2007 5:41 PM
 

Brian Peek said:

This is all based on IIS7 in Vista.  I'm not sure as to your problem with 5.1 and VS2005...any specific errors?  Feel free to post up in the forum to make replying a bit easier
January 10, 2007 11:43 PM
 

Sunil said:

Thnx!! worked for me!
January 12, 2007 3:32 PM
 

Morten said:

I'm still looking for at way to make this work WITHOUT running in the Classic .NET Pool.
January 22, 2007 12:04 PM
 

Todd said:

Thanks Brian.

This has really help.  Nice job with the details.

March 30, 2007 11:54 AM
 

Neil G said:

You are a GOD!

2 days of googeling(and hair pulling) , and it was the app pool!

Why isnt this mentioned elsewhere??????

April 12, 2007 6:54 AM
 

Skip said:

Of COURSE it's in the right-click-Advanced Settings-Application Pool-dropdown (whatever the hell that means), how stupid of me not to have realized it with such an intuitive and well-documented application!  Thx1M for the tip--now maybe I can actually write some code.

May 11, 2007 4:26 PM
 

Mathieu said:

Brian,

Excellent solution! the apppool did the trick for me too.

cheers,

matheiu

June 21, 2007 7:50 AM
 

jollygreenguy said:

Thank you so much!! Changing the Internet Explorer options worked perfect for me!!

John

August 15, 2007 4:23 PM
 

Shawn said:

Gotta add on to the praise.  This has been four hours of hell... fixed by reading one very short but informative blog post.  Thanks for sharing this information.  I owe you one.

August 27, 2007 10:56 PM
 

Damian said:

Thanks a lot Brian. That worked.

September 8, 2007 7:42 PM
 

Mark said:

Brian, it worked a treat, thank you very much!

August 1, 2008 10:26 PM

Leave a Comment

(required)  
(optional)
(required)  
Add

About Brian Peek

Brian is a Microsoft C# MVP who has been actively developing in .NET since its early betas in 2000, and who has been developing solutions using Microsoft technologies and platforms for even longer. Along with .NET, Brian is particularly skilled in the languages of C, C++ and assembly language for a variety of CPUs. He is also well-versed in a wide variety of technologies including web development, document imaging, GIS, graphics, game development, and hardware interfacing. Brian has a strong background in developing applications for the health-care industry, as well as developing solutions for portable devices, such as tablet PCs and PDAs. Additionally, Brian has co-authored the book "Debugging ASP.NET" published by New Riders, and is currently co-authoring a book titled "10 Coding4Fun Projects with .NET for Programmers, Hobbyists, and Game Developers" to be published by O'Reilly in late 2008. Brian also writes for MSDN's Coding4Fun website, contributing articles on a monthly basis.
Copyright (C) 2008 Brian Peek
Powered by Community Server (Commercial Edition), by Telligent Systems