PC Review


Reply
Thread Tools Rate Thread

Debugging fails on Vista for Localhost

 
 
John Kotuby
Guest
Posts: n/a
 
      6th Jan 2008
Hi all,
I need to use debugging on the LocalHost on my Vista Premious machine using
VS2005 and ASP.NET 2.0 so that all my images resolve properly.
I am able to acomplish this type of debugging on my older Windows XP machine
with no problem whatsoever, using the default IIS settings and copying to
entire website to excatly the same locaion on the C drive. Thank goodness I
did not get rid of my older development machine.

"Debugging failed because Windows Integrated authentication is not enabled."
I have done a number of Google searches on this topic and none of the
information I have found so far has helped.

When I go into Help from within IIS Manager on my Vista machine it points me
to a technet article regarding Windows Authentication on IIS 7.

----------------------------------------------
1.
Open IIS Manager and navigate to the level you want to manage. For
information about opening IIS Manager, see IIS 7.0: Open IIS Manager. For
information about navigating to locations in the UI, see IIS 7.0: Navigation
in IIS Manager.

2.
In Features View, double-click Authentication.

3.
On the Authentication page, select Windows Authentication.

4.
In the Actions pane, click Enable to use Windows authentication.

Note:
Optionally, you can disable Kernel-mode authentication by clicking Advanced
Settings. As a best practice, you should not disable this setting if you use
Kerberos authentication and a custom identity on the application pool.

Command Line
To enable or disable Windows authentication, use the following syntax:

appcmd set config /section:windowsAuthentication /enabled:true | false

By default, IIS sets the enabled attribute to false, which disables Windows
authentication. If you set the attribute to true, you enable Windows
authentication. For example, to enable Windows authentication, type the
following at the command prompt, and then press ENTER:

appcmd set config /section:windowsAuthentication /enabled:true


-----------------------------------

Well when I open Authenication in IIS manager I only get 3 choices:

Anonymous Authentication
Forms Authentication
ASP.NET Impersonation

When I go to edit Anonymous Authentication, as other documentaion suggested,
I get the choices of :
Specific User
Application Pool Identity

I have tried the command line solution copied and pasted from the article
itself, and I am told "Windows cannot find appcmd" .
I did a search with the Vista search utility on the entire C drive and it
did not find any form of "appcmd ".

I have changed a setting in Web.config (which by the way needs no changing
to debug on my XP machine.
---------------------------
<system.webServer>
<validation validateIntegratedModeConfiguration="true"/>
-----------------------

However, leaving the value to "false" allows debugging on my XP machine with
no problem.

I need to be able to debug on LocalHost on my Vista machine. BTW, the
website itself runs fine from http://localhost when not trying to run in
debug mode.

Lastly I have just gone thru an entire Vista upgrade re-intstall over my
exisiting Vista install because w3p.exe was not being allowed to access some
registry entries and the only way I could find to fix a corrupted .NET 2.o
franework install was to re-install Vista entirely.
Yes, I applied all the upgrades and service packs necessary as determined by
Micorosoft Update.

Vista has been a real pain development wise ever since I installed it.

Can anyone help with this?

Thanks to all....


 
Reply With Quote
 
 
 
 
John Kotuby
Guest
Posts: n/a
 
      6th Jan 2008
This post by Mike Volodarsky on his blog has helped me out greatly....
http://mvolo.com/blogs/serverside/ar...IS7-Vista.aspx

Why can't MSDN documentation even come close to being this good?
I guess MS would rather sell their developer help for ridiculous hourly
rates.
It's a great source of income.
It reminds me of an old Dilbert cartoon. Pointy-head remarks something to
the effect that "Our documentation is so poor that we have started charging
for technical support. We didn't plan it that way. It all came together when
I realized I hate our customers."

"John Kotuby" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi all,
> I need to use debugging on the LocalHost on my Vista Premious machine
> using VS2005 and ASP.NET 2.0 so that all my images resolve properly.
> I am able to acomplish this type of debugging on my older Windows XP
> machine with no problem whatsoever, using the default IIS settings and
> copying to entire website to excatly the same locaion on the C drive.
> Thank goodness I did not get rid of my older development machine.
>
> "Debugging failed because Windows Integrated authentication is not
> enabled."
> I have done a number of Google searches on this topic and none of the
> information I have found so far has helped.
>
> When I go into Help from within IIS Manager on my Vista machine it points
> me to a technet article regarding Windows Authentication on IIS 7.
>
> ----------------------------------------------
> 1.
> Open IIS Manager and navigate to the level you want to manage. For
> information about opening IIS Manager, see IIS 7.0: Open IIS Manager. For
> information about navigating to locations in the UI, see IIS 7.0:
> Navigation in IIS Manager.
>
> 2.
> In Features View, double-click Authentication.
>
> 3.
> On the Authentication page, select Windows Authentication.
>
> 4.
> In the Actions pane, click Enable to use Windows authentication.
>
> Note:
> Optionally, you can disable Kernel-mode authentication by clicking
> Advanced Settings. As a best practice, you should not disable this setting
> if you use Kerberos authentication and a custom identity on the
> application pool.
>
> Command Line
> To enable or disable Windows authentication, use the following syntax:
>
> appcmd set config /section:windowsAuthentication /enabled:true | false
>
> By default, IIS sets the enabled attribute to false, which disables
> Windows authentication. If you set the attribute to true, you enable
> Windows authentication. For example, to enable Windows authentication,
> type the following at the command prompt, and then press ENTER:
>
> appcmd set config /section:windowsAuthentication /enabled:true
>
>
> -----------------------------------
>
> Well when I open Authenication in IIS manager I only get 3 choices:
>
> Anonymous Authentication
> Forms Authentication
> ASP.NET Impersonation
>
> When I go to edit Anonymous Authentication, as other documentaion
> suggested, I get the choices of :
> Specific User
> Application Pool Identity
>
> I have tried the command line solution copied and pasted from the article
> itself, and I am told "Windows cannot find appcmd" .
> I did a search with the Vista search utility on the entire C drive and it
> did not find any form of "appcmd ".
>
> I have changed a setting in Web.config (which by the way needs no changing
> to debug on my XP machine.
> ---------------------------
> <system.webServer>
> <validation validateIntegratedModeConfiguration="true"/>
> -----------------------
>
> However, leaving the value to "false" allows debugging on my XP machine
> with no problem.
>
> I need to be able to debug on LocalHost on my Vista machine. BTW, the
> website itself runs fine from http://localhost when not trying to run in
> debug mode.
>
> Lastly I have just gone thru an entire Vista upgrade re-intstall over my
> exisiting Vista install because w3p.exe was not being allowed to access
> some registry entries and the only way I could find to fix a corrupted
> .NET 2.o franework install was to re-install Vista entirely.
> Yes, I applied all the upgrades and service packs necessary as determined
> by Micorosoft Update.
>
> Vista has been a real pain development wise ever since I installed it.
>
> Can anyone help with this?
>
> Thanks to all....
>
>


 
Reply With Quote
 
John Kotuby
Guest
Posts: n/a
 
      6th Jan 2008
Another update. In IIS Manager I had to change from the "Default AppPool" to
the "Classic .NET AppPool" in the advanced settings for the web application
as outlined in this article:
http://www.thousandtyone.com/blog/Ca...ory,Vista.aspx

All of this is supposed to be fixed in the Vista SP1 service pack.

Hope everyone had a good holiday season. May the New Year be enjoyable and
prosperous to all.

"John Kotuby" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> This post by Mike Volodarsky on his blog has helped me out greatly....
> http://mvolo.com/blogs/serverside/ar...IS7-Vista.aspx
>
> Why can't MSDN documentation even come close to being this good?
> I guess MS would rather sell their developer help for ridiculous hourly
> rates.
> It's a great source of income.
> It reminds me of an old Dilbert cartoon. Pointy-head remarks something to
> the effect that "Our documentation is so poor that we have started
> charging for technical support. We didn't plan it that way. It all came
> together when I realized I hate our customers."
>
> "John Kotuby" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Hi all,
>> I need to use debugging on the LocalHost on my Vista Premious machine
>> using VS2005 and ASP.NET 2.0 so that all my images resolve properly.
>> I am able to acomplish this type of debugging on my older Windows XP
>> machine with no problem whatsoever, using the default IIS settings and
>> copying to entire website to excatly the same locaion on the C drive.
>> Thank goodness I did not get rid of my older development machine.
>>
>> "Debugging failed because Windows Integrated authentication is not
>> enabled."
>> I have done a number of Google searches on this topic and none of the
>> information I have found so far has helped.
>>
>> When I go into Help from within IIS Manager on my Vista machine it points
>> me to a technet article regarding Windows Authentication on IIS 7.
>>
>> ----------------------------------------------
>> 1.
>> Open IIS Manager and navigate to the level you want to manage. For
>> information about opening IIS Manager, see IIS 7.0: Open IIS Manager. For
>> information about navigating to locations in the UI, see IIS 7.0:
>> Navigation in IIS Manager.
>>
>> 2.
>> In Features View, double-click Authentication.
>>
>> 3.
>> On the Authentication page, select Windows Authentication.
>>
>> 4.
>> In the Actions pane, click Enable to use Windows authentication.
>>
>> Note:
>> Optionally, you can disable Kernel-mode authentication by clicking
>> Advanced Settings. As a best practice, you should not disable this
>> setting if you use Kerberos authentication and a custom identity on the
>> application pool.
>>
>> Command Line
>> To enable or disable Windows authentication, use the following syntax:
>>
>> appcmd set config /section:windowsAuthentication /enabled:true | false
>>
>> By default, IIS sets the enabled attribute to false, which disables
>> Windows authentication. If you set the attribute to true, you enable
>> Windows authentication. For example, to enable Windows authentication,
>> type the following at the command prompt, and then press ENTER:
>>
>> appcmd set config /section:windowsAuthentication /enabled:true
>>
>>
>> -----------------------------------
>>
>> Well when I open Authenication in IIS manager I only get 3 choices:
>>
>> Anonymous Authentication
>> Forms Authentication
>> ASP.NET Impersonation
>>
>> When I go to edit Anonymous Authentication, as other documentaion
>> suggested, I get the choices of :
>> Specific User
>> Application Pool Identity
>>
>> I have tried the command line solution copied and pasted from the article
>> itself, and I am told "Windows cannot find appcmd" .
>> I did a search with the Vista search utility on the entire C drive and it
>> did not find any form of "appcmd ".
>>
>> I have changed a setting in Web.config (which by the way needs no
>> changing to debug on my XP machine.
>> ---------------------------
>> <system.webServer>
>> <validation validateIntegratedModeConfiguration="true"/>
>> -----------------------
>>
>> However, leaving the value to "false" allows debugging on my XP machine
>> with no problem.
>>
>> I need to be able to debug on LocalHost on my Vista machine. BTW, the
>> website itself runs fine from http://localhost when not trying to run in
>> debug mode.
>>
>> Lastly I have just gone thru an entire Vista upgrade re-intstall over my
>> exisiting Vista install because w3p.exe was not being allowed to access
>> some registry entries and the only way I could find to fix a corrupted
>> .NET 2.o franework install was to re-install Vista entirely.
>> Yes, I applied all the upgrades and service packs necessary as determined
>> by Micorosoft Update.
>>
>> Vista has been a real pain development wise ever since I installed it.
>>
>> Can anyone help with this?
>>
>> Thanks to all....
>>
>>

>


 
Reply With Quote
 
Mark Rae [MVP]
Guest
Posts: n/a
 
      7th Jan 2008
"John Kotuby" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...

> Another update. In IIS Manager I had to change from the "Default AppPool"
> to the "Classic .NET AppPool" in the advanced settings for the web
> application as outlined in this article:
> http://www.thousandtyone.com/blog/Ca...ory,Vista.aspx
>
> All of this is supposed to be fixed in the Vista SP1 service pack.


The app pool issue is fixed in Visual Studio.NET 2008, even without Vista
SP1...

At least, none of my VS.NET 2008 web apps need to run in the Classic pool
any more...


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Debugging no localhost connections with Visual Studio 2005 SammyBar Microsoft ASP .NET 1 25th Sep 2006 09:23 PM
newbie: debugging on server (not localhost) Jeff Microsoft ASP .NET 0 22nd Jul 2005 01:23 PM
LocalHost ping fails after removing spyware =?Utf-8?B?SmFzb24gQmVubmV0dA==?= Windows XP Networking 6 24th Apr 2005 11:29 PM
IE fails to authenticate on localhost when url is a FQDN =?Utf-8?B?TGF4bWlrYW50aA==?= Windows XP Security 0 20th Dec 2004 12:05 PM
Debugging on device fails Oliver Sturm Microsoft Dot NET Compact Framework 0 7th Mar 2004 04:15 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:47 PM.