vs 2008 sp1 - Unable to start debugging on web server. An authentication error occurred...

因为一直是连接远程开发,其实个人很少用到调试。
准确得讲,也不是没用到调试,而是把功能块分细之后,每个模块都单独测试了,可以保证很好的正确性。

但是今天碰到一个问题,需要联合调和。

 

问题就如题目:

始终提示身份验证通不过。以前未装sp1时,好像没这个问题,因为用这个调试少,记不清了。

我用下面的方法一就解决问题了。

(请注意,我使用也是IE8,近段时间,很多朋友说装了IE8无法调试,其实没这回事。我在IE8下,调试的很好。)

Method 1: Specify host names

Note We recommend that you use this method.

To specify the host names that are mapped to the loopback address and can connect to Web sites on your computer, follow these steps:

  1. Click Start, click Run, type regedit, and then click OK.
  2. In Registry Editor, locate and then click the following registry key:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0
  3. Right-click MSV1_0, point to New, and then click Multi-String Value.
  4. Type BackConnectionHostNames, and then press ENTER.
  5. Right-click BackConnectionHostNames, and then click Modify.
  6. In the Value data box, type the host name or the host names for the sites that are on the local computer, and then click OK.
  7. Quit Registry Editor, and then restart the IISAdmin service.

Method 2: Disable the loopback check

Follow these steps:

  1. Click Start, click Run, type regedit, and then click OK.
  2. In Registry Editor, locate and then click the following registry key:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa
  3. Right-click Lsa, point to New, and then click DWORD Value.
  4. Type DisableLoopbackCheck, and then press ENTER.
  5. Right-click DisableLoopbackCheck, and then click Modify.
  6. In the Value data box, type 1, and then click OK.
  7. Quit Registry Editor, and then restart your computer

方法 1:  

指定主机名
要指定主机名, 映射到环回地址并可连接到 Web 站点上, 请按照下列步骤:1. 单击 开始 , 单击 运行 , 类型 regedit然后单击 确定 。
2. 中注册表编辑器, 找到并单击以下注册表项:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0
3. 右击 MSV1_0 , 指向 新建 , 然后再单击 多字符串值 。
4. 类型 BackConnectionHostNames然后按 Enter。
5. 右击 BackConnectionHostNames , 然后单击 修改 。
6. 在 数值数据 框中, 键入主机名或主机名为站点位于本地计算机, 然后单击 确定 。
7. 退出注册表编辑器, 并重新启动 IISAdmin 服务。

 

方法 2:

禁用环回检查
请遵循以下步骤:1. 单击 开始 , 单击 运行 , 类型 regedit然后单击 确定 。
2. 中注册表编辑器, 找到并单击以下注册表项:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa
3. 右击 Lsa , 指向 新建 , 然后单击 DWORD 值 。
4. 类型 DisableLoopbackCheck然后按 Enter。
5. 右击 DisableLoopbackCheck , 然后单击 修改 。
6. 在 数值数据 框中, 键入 1然后单击 确定 。
7. 退出注册表编辑器, 并重新启动计算机。

 

来自:http://support.microsoft.com/kb/896861/en-us

参考:

http://social.microsoft.com/Forums/zh-CN/vstudiozhchs/thread/39f1b7eb-4e44-43f0-a567-8bd342e9c92e/

http://social.microsoft.com/Forums/zh-CN/vstudiozhchs/thread/8a042a1b-61a8-4bdb-9c3c-b6eb5f21a335/

http://www.realtechnology.com/RTBlog/tabid/59/EntryID/27/Default.aspx

 

posted @ 2009-03-26 21:02  无尽思绪  阅读(2201)  评论(0编辑  收藏  举报