473,405 Members | 2,272 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

How do I debug a web site with VS2005?

Hello,

Sorry if this is a FAQ, but I couldn't find an answer by searching.

I have been using VWB Express for a while, and have just installed
VS2005 Professional. I tried to open an existing web site as an IIS
project instead of a file-based one. I want to debug it in VS via IIS,
using the correct host header name.

Anyway, when I hit f5, I got a message saying... "Unable to start
debugging on the web server. Logon failure: unknown user name or bad
password. See help for more information."

I am running IIS6 on Windows 2003 Server, I am logged in as
Administrator, and the web site has integrated Windows authentication
set. VS2005 is installed on the same machine as IIS.

Any ideas what's going wrong? I'm sure this is really simple, but I
can't find an answer.

--
Alan Silver
(anything added below this line is nothing to do with me)
Jun 27 '06 #1
3 1570
Hi Alan,

You may need to switch anonymous access off for that. Worth a try.

Ken
Microsoft MVP [ASP.NET]
"Alan Silver" <al*********@nospam.thanx.invalid> wrote in message
news:z1**************@nospamthankyou.spam...
Hello,

Sorry if this is a FAQ, but I couldn't find an answer by searching.

I have been using VWB Express for a while, and have just installed VS2005
Professional. I tried to open an existing web site as an IIS project
instead of a file-based one. I want to debug it in VS via IIS, using the
correct host header name.

Anyway, when I hit f5, I got a message saying... "Unable to start
debugging on the web server. Logon failure: unknown user name or bad
password. See help for more information."

I am running IIS6 on Windows 2003 Server, I am logged in as Administrator,
and the web site has integrated Windows authentication set. VS2005 is
installed on the same machine as IIS.

Any ideas what's going wrong? I'm sure this is really simple, but I can't
find an answer.

--
Alan Silver
(anything added below this line is nothing to do with me)

Jun 28 '06 #2
In article <uS**************@TK2MSFTNGP02.phx.gbl>, "Ken Cox [Microsoft
MVP]" <BA**********@newsgroups.nospam> writes
Hi Alan,

You may need to switch anonymous access off for that. Worth a try.
Thanks, but it didn't help. I'm a bit puzzled why a fresh installation
of VS shouldn't be able to debug. Shouldn't it be set up automatically?

Any other ideas? Thanks again
Ken
Microsoft MVP [ASP.NET]
"Alan Silver" <al*********@nospam.thanx.invalid> wrote in message
news:z1**************@nospamthankyou.spam...
Hello,

Sorry if this is a FAQ, but I couldn't find an answer by searching.

I have been using VWB Express for a while, and have just installed VS2005
Professional. I tried to open an existing web site as an IIS project
instead of a file-based one. I want to debug it in VS via IIS, using the
correct host header name.

Anyway, when I hit f5, I got a message saying... "Unable to start
debugging on the web server. Logon failure: unknown user name or bad
password. See help for more information."

I am running IIS6 on Windows 2003 Server, I am logged in as Administrator,
and the web site has integrated Windows authentication set. VS2005 is
installed on the same machine as IIS.

Any ideas what's going wrong? I'm sure this is really simple, but I can't
find an answer.

--
Alan Silver
(anything added below this line is nothing to do with me)



--
Alan Silver
(anything added below this line is nothing to do with me)
Jun 28 '06 #3
In article <z1**************@nospamthankyou.spam>, Alan Silver
<al*********@nospam.thanx.invalid> writes
Sorry if this is a FAQ, but I couldn't find an answer by searching.


OK, having done yet another search, I found an answer. Hope this is of
some use to someone...

According to KB article 896861, which describes this problem...

"This issue occurs if you install Microsoft Windows XP Service Pack 2
(SP2) or Microsoft Windows Server 2003 Service Pack 1 (SP1). Windows XP
SP2 and Windows Server 2003 SP1 include a loopback check security
feature that is designed to help prevent reflection attacks on your
computer. Therefore, authentication fails if the FQDN or the custom host
header that you use does not match the local computer name."

They suggested two methods to solve the problem, one to disable the
security check, and one to add each individual host header into the
registry. The second would be a pain as I work with multiple host
headers. However, the first method suggested worked fine for me. I did
the registry change, rebooted and (subject to the one issue described
below), it worked fine.

I should point out that my machine is a development machine, not
publicly accessible from the Internet and protected by a firewall. I
would not recommend this solution on a production server, or one
available to the Internet.

The only other problem I had was that when I tried debugging, I got an
error that the remote debugging monitor was not running. I started it
manually from the VS tool submenu and debugging worked. This was
obviously not an optimal solution, as I would have had to start this
tool up every time I started VS, but looking in the help for the remote
debug tool told me that it could be started as a service. You do this by
running the remote debug configuration tool (next entry below the tool
itself in the VS tool submenu). I left it running as LocalSystem, which
worked fine.

Hope this is of use to someone

--
Alan Silver
(anything added below this line is nothing to do with me)
Jun 28 '06 #4

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

Similar topics

6
by: Brad | last post by:
I have a win2003 server workstation with multiple webs, each web has it's own ip address. In VS2005, if I select to open an existing web site, select Local IIS, the dialog correctly displays a...
1
by: Epetruk | last post by:
Hello, In VS2003, I used to have two solutions - a debug and release solution. Each solution had a webservice project and several other class library projects. The webservice project...
1
by: WT | last post by:
Hello, Using .net 2 and vs2005, I need to debug a component part of a web site, this component need a .NET 2 web site to be ran and the web site runs under IIS, using a special port number. I...
46
by: Ian Boyd | last post by:
IIS5, on a Windows 2000 Server machine. Debeg.WriteLine "Hello, world!" How can i view it?
10
by: Ole | last post by:
Hi, Using VS2005 and a windows CE 5.0 device running CF2. Suddenly I can't debug my C# program from VS2005 - when setting a breakpoint I only see a ring instead of the normal red dot and when...
2
by: Dinh Bao Tuyen | last post by:
Hi everyone, I can't debug javascript in VS 2005. In my VS2005, I can't find Script Explorer in menu. Can u help me???
3
by: zhouchengly | last post by:
I test a stl sort function in vs2005 and find the efficiency of debug to release version is about 1000:1, it suprise me and I'm curious what cause it.
5
by: moondaddy | last post by:
I have a .net 2.0 winforms app that calls a web service which creates creates a GUID and caches it, then passes the GUID back to the winform. then it opens a aspx page and passes the GUID as a...
5
by: =?Utf-8?B?SGFpcmxpcERvZzU4?= | last post by:
I have a component that was developed in VS2003 that I need to debug in a VS2005 application. Basic steps are: Build the component for Debug in VS2003. Set the following VS2003 project...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.