473,689 Members | 2,839 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

vs2005 debugging on ws2k3 server

I am almost at the end of my rope - I have to go through this process
everytime a new version of studio is released or it is installed on a new
machine - what a (^%&$^& pain.

I am trying to debug a web app from within vs.net 2005 locally on windows
2003 server
I just cannot get debugging to work anywhere other than localhost
I completely uninstalled the ie enhanced security
I've been through all of the doc's i can google

I get the error "Unable to start debugging on the web server. Logon failure
: unknown user name or bad password."
This has to be a bogus message as the user name and password are known and
good for localhost so they must be for any site on the local machine.

As I was going through the docs on this issue i noticed that this machine
has no Debug Users or VSDevelopers groups setup, so I added them and added
NETWORK SERVICES and my user account - to no avail. Should these accounts
have been there or are they no longer used with 2005 ?

Gerry

Dec 22 '05 #1
6 1814
Did you try manually attaching the process and see if that works?
Did you try using FileSystem to create new projects and check if you are
able to debug that?
Did you take FileMon/Regmon logs to find out if there are any access denied
messages in the log files while you are trying to debug?
Did you verify that your apps are opening in Local Intranet and if the
Internet Settings for security of Local Intranet has -> Automatic logon with
current username and password selected??
What about the IISLogs? Can you paste the entries after you create a new app
and try to debug it?

Supposedly, 2005 debugging should be more smooth, unless there are any
installation issues!

Hope that helps... For more checks... Here are a couple of good articles
that you might use to assist you in diagnosing ASP.NET debugging issues:

306172 INFO: Common Errors When You Debug ASP.NET Applications in Visual
Studio
http://support.microsoft.com/?id=306172

The VS7 Debugger doesnt work. What can I do?
http://www.gotdotnet.com/team/csharp...erproblems.doc

--
Thanks,
Rahul Soni

[A problem well stated is a problem half solved!!]


"gerry" wrote:
I am almost at the end of my rope - I have to go through this process
everytime a new version of studio is released or it is installed on a new
machine - what a (^%&$^& pain.

I am trying to debug a web app from within vs.net 2005 locally on windows
2003 server
I just cannot get debugging to work anywhere other than localhost
I completely uninstalled the ie enhanced security
I've been through all of the doc's i can google

I get the error "Unable to start debugging on the web server. Logon failure
: unknown user name or bad password."
This has to be a bogus message as the user name and password are known and
good for localhost so they must be for any site on the local machine.

As I was going through the docs on this issue i noticed that this machine
has no Debug Users or VSDevelopers groups setup, so I added them and added
NETWORK SERVICES and my user account - to no avail. Should these accounts
have been there or are they no longer used with 2005 ?

Gerry

Dec 22 '05 #2
Hi Rahul,
thanks fopr you reply , please see my responses inline below.

I turned on logon failure audit and found that the account logon that is
failing is my own.
I am an admin on the machine as well as a domain admin.

Based on another reference I found I also turned on kerberos logging and
find that this is a kerberos error KDC_ERR_S_PRINC IPAL_UNKNOWN
So I guess that now I will be spending another hair pulling day trying to
decipher this kerberos glop.
I am thinking that maybe this has something to do with this being a 2003
server on a 2000 domain.

But then again , why does this work for localhost ?

Gerry
"Rahul Soni" <Ra*******@disc ussions.microso ft.com> wrote in message
news:D0******** *************** ***********@mic rosoft.com...
Did you try manually attaching the process and see if that works?
yes I can debug fine after manually attaching.
Did you try using FileSystem to create new projects and check if you are
able to debug that?
yes file system based sites seem to work fine.
Did you take FileMon/Regmon logs to find out if there are any access denied messages in the log files while you are trying to debug?
neither show any errors at all.
Did you verify that your apps are opening in Local Intranet and if the
Internet Settings for security of Local Intranet has -> Automatic logon with current username and password selected??
by default this site is in the internet zone although I would have thought
it should be intranet as it is a local domain ie. http://dev.mydomain.com
I set the setting is as stated for both internet & intranet
adding the site to the intranet zone made no difference
What about the IISLogs? Can you paste the entries after you create a new app and try to debug it?
nada - no entries in any log files anywhere that I can find.
there are the expected entries if I start without debugging
but nothing if I try to debug.

Supposedly, 2005 debugging should be more smooth, unless there are any
installation issues!

Hope that helps... For more checks... Here are a couple of good articles
that you might use to assist you in diagnosing ASP.NET debugging issues:

306172 INFO: Common Errors When You Debug ASP.NET Applications in Visual
Studio
http://support.microsoft.com/?id=306172

The VS7 Debugger doesnt work. What can I do?
http://www.gotdotnet.com/team/csharp...lvedebuggerpro
blems.doc
--
Thanks,
Rahul Soni

[A problem well stated is a problem half solved!!]


"gerry" wrote:
I am almost at the end of my rope - I have to go through this process
everytime a new version of studio is released or it is installed on a new machine - what a (^%&$^& pain.

I am trying to debug a web app from within vs.net 2005 locally on windows 2003 server
I just cannot get debugging to work anywhere other than localhost
I completely uninstalled the ie enhanced security
I've been through all of the doc's i can google

I get the error "Unable to start debugging on the web server. Logon failure : unknown user name or bad password."
This has to be a bogus message as the user name and password are known and good for localhost so they must be for any site on the local machine.

As I was going through the docs on this issue i noticed that this machine has no Debug Users or VSDevelopers groups setup, so I added them and added NETWORK SERVICES and my user account - to no avail. Should these accounts have been there or are they no longer used with 2005 ?

Gerry

Dec 22 '05 #3
By default this site is in the internet zone although I would have thought it
should be intranet as it is a local domain ie. http://dev.mydomain.com I set
the setting is as stated for both internet & intranet adding the site to the
intranet zone made no difference

---> The sites typically show in the Internet Zone because it has two dots
in the name. Can you try removing one of the dots for testing purposes and
see if that helps?

What about the IISLogs? Can you paste the entries after you create a new app
and try to debug it?

nada - no entries in any log files anywhere that I can find. there are the
expected etries if I start without debugging but nothing if I try to debug.

---> Well, that doesn't look good. There should be some entries with debug
verb sent and some error codes showing up. Search for the word "debug" in
your IISLogs and you should find them. If you don't see "debug" verbs being
sent at all check your IIS Settings. As a thumbrule, there has to be DEBUG
verb in your IISLogs when you try to debug any app.

HTH,
--
Thanks,
Rahul Soni

[A problem well stated is a problem half solved!!]

Dec 22 '05 #4
this is definitely a kerberos related problem - here are the event log items
recorded when I try to debug :

Security
Date: 12/23/2005
Source: Security
Time: 9:15:33 AM
Category: Logon/Logoff
Type: Failure Aud
EventID: 537
User: NT AUTHORITY\SYSTE M
Computer: MYPC

Logon Failure:
Reason: An error occurred during logon
User Name: gerry
Domain: MYDOMAIN
Logon Type: 3
Logon Process: čuZ
Authentication Package: NTLM
Workstation Name: MYPC
Status code: 0xC000006D
Substatus code: 0x0
Caller User Name: -
Caller Domain: -
Caller Logon ID: -
Caller Process ID: -
Transited Services: -
Source Network Address: 10.0.0.30
Source Port: 0
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.

System
Date: 12/23/2005
Source: Kerberos
Time: 9:15:33 AM
Category: None
Type: Error
EventID: 3
User: N/A
Computer: MYPC

A Kerberos Error Message was received:
on logon session
Client Time:
Server Time: 14:15:33.0000 12/23/2005 Z
Error Code: 0x7 KDC_ERR_S_PRINC IPAL_UNKNOWN
Extended Error:
Client Realm:
Client Name:
Server Realm: MYDOMAIN.CA
Server Name: krbtgt/MYDOMAIN.CA
Target Name: cifs/te************* ******@MYDOMAIN .CA
Error Text:
File: 9
Line: ae0
Error Data is in record data.

For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.

I have looked into this and am just baffled by the whole kerberos thing.
I don't have time to waste screwing with this so I have decided to open my
http web site as a file based site in vs that way i can debug in vs and test
across the network as well.

Gerry


"Rahul Soni" <Ra*******@disc ussions.microso ft.com> wrote in message
news:8F******** *************** ***********@mic rosoft.com...
By default this site is in the internet zone although I would have thought it should be intranet as it is a local domain ie. http://dev.mydomain.com I set the setting is as stated for both internet & intranet adding the site to the intranet zone made no difference

---> The sites typically show in the Internet Zone because it has two dots
in the name. Can you try removing one of the dots for testing purposes and
see if that helps?
I just manually added the site to the intranet zone - no effect.

What about the IISLogs? Can you paste the entries after you create a new app and try to debug it?

nada - no entries in any log files anywhere that I can find. there are the
expected etries if I start without debugging but nothing if I try to debug.
---> Well, that doesn't look good. There should be some entries with debug
verb sent and some error codes showing up. Search for the word "debug" in
your IISLogs and you should find them. If you don't see "debug" verbs being sent at all check your IIS Settings. As a thumbrule, there has to be DEBUG
verb in your IISLogs when you try to debug any app.
well you are assuming that a request is being sent to IIS.
it looks to me like the process is never even getting to the point of
actually sending any type of request to IIS.

HTH,
--
Thanks,
Rahul Soni

[A problem well stated is a problem half solved!!]

Dec 23 '05 #5
Hmm, yes you are right. It is indeed because of the Kerberos tickets.

Another couple of things to check and if it doesn't work, u may proceed with
what you decided...

1) http://support.microsoft.com/?id=215383

First follow the above article and if that doesn't help you can try the
following as well...

2) In your Internet Explorer settings.... Go to the Advanced tab and uncheck
"Enable Integrated Windows Authentication (requires restart)"

Restart your IDE and try debugging again.

Also, if you could just share the IISLogs containing the debug verbs I would
have got ample clues to figure out what went wrong. Let me have those if
possible...

--
Thanks,
Rahul Soni

[A problem well stated is a problem half solved!!]


"gerry" wrote:
this is definitely a kerberos related problem - here are the event log items
recorded when I try to debug :

Security
Date: 12/23/2005
Source: Security
Time: 9:15:33 AM
Category: Logon/Logoff
Type: Failure Aud
EventID: 537
User: NT AUTHORITY\SYSTE M
Computer: MYPC

Logon Failure:
Reason: An error occurred during logon
User Name: gerry
Domain: MYDOMAIN
Logon Type: 3
Logon Process: èuZ
Authentication Package: NTLM
Workstation Name: MYPC
Status code: 0xC000006D
Substatus code: 0x0
Caller User Name: -
Caller Domain: -
Caller Logon ID: -
Caller Process ID: -
Transited Services: -
Source Network Address: 10.0.0.30
Source Port: 0
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.

System
Date: 12/23/2005
Source: Kerberos
Time: 9:15:33 AM
Category: None
Type: Error
EventID: 3
User: N/A
Computer: MYPC

A Kerberos Error Message was received:
on logon session
Client Time:
Server Time: 14:15:33.0000 12/23/2005 Z
Error Code: 0x7 KDC_ERR_S_PRINC IPAL_UNKNOWN
Extended Error:
Client Realm:
Client Name:
Server Realm: MYDOMAIN.CA
Server Name: krbtgt/MYDOMAIN.CA
Target Name: cifs/te************* ******@MYDOMAIN .CA
Error Text:
File: 9
Line: ae0
Error Data is in record data.

For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.

I have looked into this and am just baffled by the whole kerberos thing.
I don't have time to waste screwing with this so I have decided to open my
http web site as a file based site in vs that way i can debug in vs and test
across the network as well.

Gerry


"Rahul Soni" <Ra*******@disc ussions.microso ft.com> wrote in message
news:8F******** *************** ***********@mic rosoft.com...
By default this site is in the internet zone although I would have thought

it
should be intranet as it is a local domain ie. http://dev.mydomain.com I

set
the setting is as stated for both internet & intranet adding the site to

the
intranet zone made no difference

---> The sites typically show in the Internet Zone because it has two dots
in the name. Can you try removing one of the dots for testing purposes and
see if that helps?


I just manually added the site to the intranet zone - no effect.

What about the IISLogs? Can you paste the entries after you create a new

app
and try to debug it?

nada - no entries in any log files anywhere that I can find. there are the
expected etries if I start without debugging but nothing if I try to

debug.

---> Well, that doesn't look good. There should be some entries with debug
verb sent and some error codes showing up. Search for the word "debug" in
your IISLogs and you should find them. If you don't see "debug" verbs

being
sent at all check your IIS Settings. As a thumbrule, there has to be DEBUG
verb in your IISLogs when you try to debug any app.


well you are assuming that a request is being sent to IIS.
it looks to me like the process is never even getting to the point of
actually sending any type of request to IIS.

HTH,
--
Thanks,
Rahul Soni

[A problem well stated is a problem half solved!!]


Dec 23 '05 #6
Hi Rahul ,

neither suggestion has had any effect.

I can't share the IIS logs with you , as I stated earlier , there are no
entries in the iis logs when this error occurs.
If I "Start Without Debugging" then things work as they should and i get IIS
log entries
If I "Start Debugging" then I get the error dialog and there are no IIS log
entries whatsoever.

Gerry
"Rahul Soni" <Ra*******@disc ussions.microso ft.com> wrote in message
news:D8******** *************** ***********@mic rosoft.com...
Hmm, yes you are right. It is indeed because of the Kerberos tickets.

Another couple of things to check and if it doesn't work, u may proceed with what you decided...

1) http://support.microsoft.com/?id=215383

First follow the above article and if that doesn't help you can try the
following as well...

2) In your Internet Explorer settings.... Go to the Advanced tab and uncheck "Enable Integrated Windows Authentication (requires restart)"

Restart your IDE and try debugging again.

Also, if you could just share the IISLogs containing the debug verbs I would have got ample clues to figure out what went wrong. Let me have those if
possible...

--
Thanks,
Rahul Soni

[A problem well stated is a problem half solved!!]


"gerry" wrote:
this is definitely a kerberos related problem - here are the event log items recorded when I try to debug :

Security
Date: 12/23/2005
Source: Security
Time: 9:15:33 AM
Category: Logon/Logoff
Type: Failure Aud
EventID: 537
User: NT AUTHORITY\SYSTE M
Computer: MYPC

Logon Failure:
Reason: An error occurred during logon
User Name: gerry
Domain: MYDOMAIN
Logon Type: 3
Logon Process: čuZ
Authentication Package: NTLM
Workstation Name: MYPC
Status code: 0xC000006D
Substatus code: 0x0
Caller User Name: -
Caller Domain: -
Caller Logon ID: -
Caller Process ID: -
Transited Services: -
Source Network Address: 10.0.0.30
Source Port: 0
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.

System
Date: 12/23/2005
Source: Kerberos
Time: 9:15:33 AM
Category: None
Type: Error
EventID: 3
User: N/A
Computer: MYPC

A Kerberos Error Message was received:
on logon session
Client Time:
Server Time: 14:15:33.0000 12/23/2005 Z
Error Code: 0x7 KDC_ERR_S_PRINC IPAL_UNKNOWN
Extended Error:
Client Realm:
Client Name:
Server Realm: MYDOMAIN.CA
Server Name: krbtgt/MYDOMAIN.CA
Target Name: cifs/te************* ******@MYDOMAIN .CA
Error Text:
File: 9
Line: ae0
Error Data is in record data.

For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.

I have looked into this and am just baffled by the whole kerberos thing.
I don't have time to waste screwing with this so I have decided to open my http web site as a file based site in vs that way i can debug in vs and test across the network as well.

Gerry


"Rahul Soni" <Ra*******@disc ussions.microso ft.com> wrote in message
news:8F******** *************** ***********@mic rosoft.com...
By default this site is in the internet zone although I would have thought
it
should be intranet as it is a local domain ie.
http://dev.mydomain.com I set
the setting is as stated for both internet & intranet adding the site
to the
intranet zone made no difference

---> The sites typically show in the Internet Zone because it has two
dots in the name. Can you try removing one of the dots for testing purposes and see if that helps?


I just manually added the site to the intranet zone - no effect.

What about the IISLogs? Can you paste the entries after you create a new app
and try to debug it?

nada - no entries in any log files anywhere that I can find. there are

the expected etries if I start without debugging but nothing if I try to

debug.

---> Well, that doesn't look good. There should be some entries with debug verb sent and some error codes showing up. Search for the word "debug" in your IISLogs and you should find them. If you don't see "debug" verbs

being
sent at all check your IIS Settings. As a thumbrule, there has to be DEBUG verb in your IISLogs when you try to debug any app.


well you are assuming that a request is being sent to IIS.
it looks to me like the process is never even getting to the point of
actually sending any type of request to IIS.

HTH,
--
Thanks,
Rahul Soni

[A problem well stated is a problem half solved!!]


Dec 23 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
2111
by: Andrew Kidd | last post by:
I see this when I'm stepping through in the debugger ... just thought I'd ask, and I just know it's going to be one of those "Doh" moments, but it's got me foxed just now.
0
924
by: Richard | last post by:
When I run my web project in VS2005, the built-in development server pops up a bubble on the task bar showing which port is being used. No problem, except that it stays on the task bar even after I stop debugging. I've noticed this causes problems when I stop debugging, change data in SS2005, and then rerun the project: the updated data isn't refreshed on the web form. Before I change the data, I have to right-click on the bubble and choose...
3
2289
by: Doug | last post by:
I'm having problems w/ the VS2005 debugger with C#. It blows past any breakpoints in even the simplest "Hello World" console application. I can't do any step-by-step debugging. I've provided the code and debugging output later in this post. I've seen a number of threads with similar problems that I'll address below. The one that's the largest concern is this one, which talks about the same problem trying to use the debugger with SQL...
3
1400
by: ohnoonho | last post by:
Hello, I posted this in the C# group but thought maybe the better place would be here since it is happening with website projects so please forgive any cross posting. In my website projects I can set a breakpoint, run the app, the breakpoint gets hit, and I can step through or check some variables or what not, and if I hit stop it appears that the rest of the method (and any calling method) continues to execute. I know this because...
4
1783
by: Peter Sutcliffe | last post by:
In VS2003 I had a class library project that I started via a URL and I had ASP.NET debugging enabled to allow me to debug the web pages code behind in my project. I have moved the app to VS2005 and I no longer have that option (Enable ASP.NET debugging checkbox on the project properties Debug Tab). I can still debug the app by attaching to the aspnet_wp.exe process. However, is there another way to do it - has this option been moved...
3
3673
by: David Prentice | last post by:
I am having dificulty debugging an ASP.NET Ajax (Novemver CTP) app on windows vista RTM. I have found the following interesting facts but cannot join the dots . . If my application is configured to run in the Classic .NET App pool, when I hit F5 in visual Studio 2005 I can successfully debug my application, however partial rendering using an update panel does not work (I have discovered that the script resource handler is causing a...
0
1115
by: Jason Huang | last post by:
Hi, I have IIS6+.Net Framwork2.0 on my Windows 2003 Server, this is my web server. I can edit the web server files in my Windows XP SP2 running the VS2005, however, when I start debugging, the Microsoft Visual Studio gave me an error saying the MSVSMON.EXE is not turned on the remote computer. My question is where do I config the VS2005 Remote Debugger? In my Windows XP or my Windows Server 2003? Thanks for help.
8
1972
by: =?Utf-8?B?UGV0ZXJX?= | last post by:
I install Visual Studio 2005 Pro on Vista. I open and migrate a 2003 web project to 2005. I attempt to browse an aspx file from the Solution Exploer. It displays a blank html page. I create a master page with 3 content placeholders. I create a WebForm that uses the master and then browse it to have a look. I get an empty html page. I change from the IIS to the internal server. No change. Only displays blank page.
0
1518
by: fred64 | last post by:
Hello , I fought very hard and succeed to do a remote debug from a client with VS2003 on XP HOME to a Server with XP PRO. This is on a Workgroup : I created same user/pwd with admin rights for client & Server. Also modified the DCOM security to allow remote access to Anonymous login and - finally- on the SERVER (client is XP home and doesn't include secpol.msc) , changed the Security policy "network access : Sharing
0
8528
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9076
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8947
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8786
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6454
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4321
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4547
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2965
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
1952
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.